removed whit overlay

This commit is contained in:
CHIEFSOFT\ameye
2024-12-23 21:05:09 -05:00
parent 6a71850d86
commit 27feb5fe2b
+13 -13
View File
@@ -17,20 +17,20 @@ export default function Layout({ headerStyle, footerStyle, headTitle, breadcrumb
!isMobileMenu ? document.body.classList.add("wsactive") : document.body.classList.remove("wsactive") !isMobileMenu ? document.body.classList.add("wsactive") : document.body.classList.remove("wsactive")
} }
useEffect(() => { // useEffect(() => {
const WOW = require('wowjs') // const WOW = require('wowjs')
window.wow = new WOW.WOW({ // window.wow = new WOW.WOW({
live: false // live: false
}) // })
window.wow.init() // window.wow.init()
document.addEventListener("scroll", () => { // document.addEventListener("scroll", () => {
const scrollCheck = window.scrollY > 100 // const scrollCheck = window.scrollY > 100
if (scrollCheck !== scroll) { // if (scrollCheck !== scroll) {
setScroll(scrollCheck) // setScroll(scrollCheck)
} // }
}) // })
}, []) // }, [])
return ( return (
<> <>
<PageHead headTitle={headTitle} /> <PageHead headTitle={headTitle} />