github inorganik/countUp.js v2.10.0
2.10.0

13 hours ago

This release modernizes the "scroll spy" mechanism to use an intersection observer instead of a window on-scroll handler. This also supports triggering animation when the target element becomes visible for other reasons like a modal opening or a parent div becoming visible, so several options have been renamed and old ones deprecated:

  • enableScrollSpy --> autoAnimate
  • scrollSpyDelay --> autoAnimateDelay
  • scrollSpyOnce --> autoAnimateOnce

In addition, an onDestroy() cleanup method was added.

Don't miss a new countUp.js release

NewReleases is sending notifications on new releases.