Repository navigation
8.0.0 - New animation engine
This release replaces the CSS transition with a JavaScript animation engine: the library now moves the image itself on every frame. The motion is smooth with a mouse wheel and on touch devices, iOS Safari included, where the previous versions stuttered.
💥 Breaking changes
- the
transitionoption is removed, usedelayand the neweasingoption instead (efa708e) - the library sets
transition: noneon the image, a CSS transition of your own on itstransformis overridden (1a2caae)
To migrate from 7.x:
- remove the
transitionoption, and any CSS transition of your own on the image - keep your
delay, it still sets how long the image takes to catch up - pick an
easingif needed:easeandease-outbecomesmooth(default),ease-in-outbecomesspring
✨ Features
- new JavaScript animation engine: the image is animated on every frame instead of with a CSS transition (1a2caae)
- add the
easingoption:smooth,spring,bounce(1a2caae)
⚡️ Improvements
- images finish their motion when they leave the screen (1a2caae)
- vanilla: no more IntersectionObserver, and no work at all when the page is idle (1a2caae)
- react: DOM reads are batched before writes in the shared frame loop (1a2caae)