diff --git a/src/components/HomeIndex/index.tsx b/src/components/HomeIndex/index.tsx index 41b8862..1563688 100644 --- a/src/components/HomeIndex/index.tsx +++ b/src/components/HomeIndex/index.tsx @@ -6,7 +6,7 @@ import SvgIcon from '@/components/SvgIcon/SvgIcon.tsx' const HomeIndex: React.FC = () => { useEffect(() => { document.body.classList.add('body') - setTimeout(() => { + window.onload = function () { if (!CSS.supports('animation-timeline: scroll()')) { // const SPAN = 'max(45vw, 260px)'; const CONFIG = [ @@ -190,7 +190,7 @@ const HomeIndex: React.FC = () => { }, }) } - }, 1000) + } return () => { document.body.classList.remove('body')