diff --git a/components/NotionPage.js b/components/NotionPage.js index d1a1a8be..fe75ff7b 100644 --- a/components/NotionPage.js +++ b/components/NotionPage.js @@ -2,7 +2,6 @@ import { NotionRenderer } from 'react-notion-x' import dynamic from 'next/dynamic' import mediumZoom from 'medium-zoom' import React from 'react' -import anime from 'animejs' const Code = dynamic(() => import('react-notion-x/build/third-party/code').then((m) => m.Code), { ssr: false } @@ -34,17 +33,6 @@ const NotionPage = ({ post }) => { }) const zoomRef = React.useRef(zoom ? zoom.clone() : null) - React.useEffect(() => { - anime({ - targets: 'div:not(.notion-viewport)', // 动效不能加载图片缩放遮罩上。 - keyframes: [ - { translateY: 40 }, - { translateY: 0 } - ], - duration: 3000, - easing: 'easeInOutSine' - }) - }, []) setTimeout(() => { if (typeof document !== 'undefined') { diff --git a/styles/globals.css b/styles/globals.css index 0ab1b7be..feb5f75e 100644 --- a/styles/globals.css +++ b/styles/globals.css @@ -151,6 +151,6 @@ nav { position: fixed; left: 0; top: 0; - z-index: 50; + z-index: 1000; pointer-events: none; } diff --git a/themes/hexo/LayoutBase.js b/themes/hexo/LayoutBase.js index 56a975e0..c8ca3f8a 100644 --- a/themes/hexo/LayoutBase.js +++ b/themes/hexo/LayoutBase.js @@ -59,10 +59,10 @@ const LayoutBase = props => { {headerSlot} -
+
{onLoading ? : children} diff --git a/themes/hexo/components/MenuList.js b/themes/hexo/components/MenuList.js index c8103624..3f16a2ff 100644 --- a/themes/hexo/components/MenuList.js +++ b/themes/hexo/components/MenuList.js @@ -21,7 +21,7 @@ const MenuList = (props) => { links = links.concat(customNav) } - return