function
options.afterReveal
is a function that fires upon reveal completion.
{ afterReveal: function (el) {} }
node | The HTML element that has just completed its reveal. |
function myCallback (el) {
el.classList.remove('is-animating');
el.classList.add('is-visible');
}
ScrollReveal().reveal('#example', { afterReveal: myCallback });