Closed ran-codes closed 2 years ago
You can resolve this by setting an offset
:
<Scrollama offset={0.5}>
...
</Scrollama>
Thank you @rl627 for bringing this to our attention and @robhawkes for providing the answer. I'll change the documentation now!
Example code throws this error:
SyntaxError: Failed to construct 'IntersectionObserver': rootMargin must be specified in pixels or percent.