After Reveal

function

options.afterReveal is a function that fires upon reveal completion.

Default Value

{ afterReveal: function (el) {} }

El

nodeThe HTML element that has just completed its reveal.

Usage

function myCallback (el) {
    el.classList.remove('is-animating');
    el.classList.add('is-visible');
}

ScrollReveal().reveal('#example', { afterReveal: myCallback });