forked from crowetic/commerce
Delay, and lazily load Marquees
This commit is contained in:
parent
cc72658c99
commit
5bbcef00a7
@ -27,7 +27,7 @@ const Maquee: FC<Props> = ({
|
|||||||
triggerOnce: true,
|
triggerOnce: true,
|
||||||
rootMargin: '200px 0px',
|
rootMargin: '200px 0px',
|
||||||
})
|
})
|
||||||
console.log(inView)
|
|
||||||
return (
|
return (
|
||||||
<div className={rootClassName} ref={ref}>
|
<div className={rootClassName} ref={ref}>
|
||||||
{inView ? (
|
{inView ? (
|
||||||
|
Loading…
x
Reference in New Issue
Block a user