feat: update
This commit is contained in:
@@ -6,7 +6,7 @@ import SvgIcon from '@/components/SvgIcon/SvgIcon.tsx'
|
|||||||
const HomeIndex: React.FC = () => {
|
const HomeIndex: React.FC = () => {
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
document.body.classList.add('body')
|
document.body.classList.add('body')
|
||||||
setTimeout(() => {
|
window.onload = function () {
|
||||||
if (!CSS.supports('animation-timeline: scroll()')) {
|
if (!CSS.supports('animation-timeline: scroll()')) {
|
||||||
// const SPAN = 'max(45vw, 260px)';
|
// const SPAN = 'max(45vw, 260px)';
|
||||||
const CONFIG = [
|
const CONFIG = [
|
||||||
@@ -190,7 +190,7 @@ const HomeIndex: React.FC = () => {
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}, 1000)
|
}
|
||||||
|
|
||||||
return () => {
|
return () => {
|
||||||
document.body.classList.remove('body')
|
document.body.classList.remove('body')
|
||||||
|
Reference in New Issue
Block a user