I'm using this library in my NextJS project, and all the animated elements inside a scrolled div.
So I set scrollableParentSelector to the respective scrolled div.
Then I got this error:
Unhandled Runtime Error
TypeError: Cannot read properties of null (reading 'clientHeight')
Call Stack
ScrollAnimation.getVisibility
node_modules/react-animate-on-scroll/dist/scrollAnimation.min.js (127:0)
ScrollAnimation.handleScroll
node_modules/react-animate-on-scroll/dist/scrollAnimation.min.js (230:0)
invokeFunc
node_modules/lodash.throttle/index.js (160:0)
leadingEdge
node_modules/lodash.throttle/index.js (170:0)
HTMLDivElement.debounced
node_modules/lodash.throttle/index.js (235:0)
Any idea what's going on exactly?
I'm using this library in my NextJS project, and all the animated elements inside a scrolled div.
So I set scrollableParentSelector to the respective scrolled div.
Then I got this error:
Any idea what's going on exactly?