string
options.easing
controls how animations transition between their start and end values.
{ easing: 'cubic-bezier(0.5, 0, 0, 1)' }
Should be a valid CSS timing function, e.g:
'ease' |
'ease-in' |
'ease-in-out' |
'ease-out' |
'step-start' |
'step-end' |
'steps()' |
'cubic-bezier()' |
ScrollReveal().reveal('.smooth', { easing: 'ease-in' });
ScrollReveal().reveal('.choppy', { easing: 'steps(5)' });