Skip to content

Universal Smooth Scroll 5.1.0

Choose a tag to compare

@CristianDavideConte CristianDavideConte released this 06 May 15:47
· 280 commits to master since this release
44cd4e0

Version 5.1.0 is out !

New Features

  • the new getScrollXDirection function allows you to retrieve the direction of a scroll-animation on the x-axis of a container
  • the new getScrollYDirection function allows you to retrieve the direction of a scroll-animation on the y-axis of a container
  • the new stopScrollingAll function 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_SPLINE ease function of the universalsmoothscroll-ease-function library allows you to specify a canonical cubic hermite spline as the easing pattern of a scroll-animation.
  • the new CUSTOM_BEZIER_CURVE ease function of the universalsmoothscroll-ease-function library allows you to specify a n-th degree bezier curve as the easing pattern of a scroll-animation.
  • the new bouncesNumber parameter of EASE_IN_BOUNCE, EASE_OUT_BOUNCE and EASE_IN_OUT_BOUNCE of the universalsmoothscroll-ease-function library 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_BOUNCE internal function of the universalsmoothscroll-ease-function library has been repurposed according to the new CUSTOM_CUBIC_HERMITE_SPLINE ease 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 :)

Cristian Davide Conte