Refresh skrollr on scroll and resize
Closed this issue · 0 comments
edoparearyee commented
If an element's position is moved while scrolling or resizing the browser's window currently the element will still be animated using the keyframes calculated for the elements old position.
Example: using margin-top: -100px
to move an element up the page will cause cause the data-bottom
attribute styles to be initialised when the bottom of the element is 100px above the viewport instead of on the bottom of the viewport.