Closed chrisvidal closed 2 years ago
when I check the values given by percentage
in the outside
callback, it returns -Infinity
my code creates about 20 basicScroll instances. Some are starting, some are not. No error, and no idea what is going on. What could be basisScroll sensitive to?
The code itself looks fine. Maybe the elements / some elements are hidden or not rendered and scalingBlock[i].getBoundingClientRect()
returns invalid positions?
I figured it out. In my page, there are dynamic sections that are build after the basicScroll instances were created, which mixed up all the positionning.
Having a lot of issue with the lib. Some instance do not start, it is quite random.
I have code like
and only the first DOM element with the cs class
scale-block
is animated.what could be causing the issue?