Universal Smooth Scroll 5.1.0
·
280 commits
to master
since this release
Version 5.1.0 is out !
New Features
- the new
getScrollXDirectionfunction allows you to retrieve the direction of a scroll-animation on the x-axis of a container - the new
getScrollYDirectionfunction allows you to retrieve the direction of a scroll-animation on the y-axis of a container - the new
stopScrollingAllfunction allows you to stop all the current scroll-animations on both the x and y axes of all the containers - the new
CUSTOM_CUBIC_HERMITE_SPLINEease function of theuniversalsmoothscroll-ease-functionlibrary allows you to specify a canonical cubic hermite spline as the easing pattern of a scroll-animation. - the new
CUSTOM_BEZIER_CURVEease function of theuniversalsmoothscroll-ease-functionlibrary allows you to specify a n-th degree bezier curve as the easing pattern of a scroll-animation. - the new
bouncesNumberparameter ofEASE_IN_BOUNCE,EASE_OUT_BOUNCEandEASE_IN_OUT_BOUNCEof theuniversalsmoothscroll-ease-functionlibrary allows you to freely choose the number of bounces of these ease functions. - greatly improved the API memory management
- bugfixes and performance improvements
Changes compared to the previous version
- the error messages can now show up to 40 character instead of 30
- the error messages are now much more informative
- the stack trace of error and warning messages is now collapsed by default
- a warning message is now emitted if the API is requested to scroll a container that is not scrollable on that axis
- the
_CUSTOM_BOUNCEinternal function of theuniversalsmoothscroll-ease-functionlibrary has been repurposed according to the newCUSTOM_CUBIC_HERMITE_SPLINEease function
IMPORTANT NOTE
On NPM this version is tagged as 5.1.0-s, but it's the same version.
For any bug or feature request don't hesitate to contact me.
Have a nice day :)