function
options.afterReset
is a function that fires upon reset completion.
This callback can only be triggered if options.reset
is true
.
{ afterReset: function (el) {} }
node | The HTML element that has just completed its reset. |
function myCallback (el) {
el.classList.remove('is-animating');
}
ScrollReveal().reveal('#example', { afterReset: myCallback });