Clean

bound function

Reverses the effects of a reveal() call, removing the styles and event listeners from target element(s).

Signature

function (target)

Target

stringCSS selector, matching 1 or more elements.
nodeSingle DOM node.
nodeListCollection of DOM nodes.
Array<node>Array of of DOM nodes.

Usage

ScrollReveal().clean('.items');

By default, this method is called automatically after each reveal animation (with the revealed element), just after the options.afterReveal callback.

You can disable this behavior with options.cleanup false