Releases: romainfb/scrollify-reveal
Releases · romainfb/scrollify-reveal
v1.0.0-beta
Adding basic functionality
Here are the available options:
- delay (number, default: 0): The delay in milliseconds before the animation starts after the element becomes visible.
- distance (string, default: '0px'): The vertical translation distance to apply to the element upon appearing.
- duration (string, default: '1000ms'): The animation duration.
- easing (string, default: 'cubic-bezier(0.5, 0, 0, 1)'): The timing function for the animation.
- zoom (number, default: 0.8): Set the initial value for the element's zoom effect upon appearing.
- hideOnExit (boolean, default: true): Enable or disable the element's disappearance when it exits the view.
- opacity (number, default: 1): Set the opacity of the element after it appears.
Basic usage
scrollifyReveal.reveal('.element', options);