After Reset

function

options.afterReset is a function that fires upon reset completion.

This callback can only be triggered if options.reset is true.

Default Value

{ afterReset: function (el) {} }

El

nodeThe HTML element that has just completed its reset.

Usage

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

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