Noop

readonly boolean

When ScrollReveal is instantiated on unsupported or disabled browsers, a non-operational instance is created with a noop property that returns true

Usage

Let’s say we decide to disable all reveal animations on mobile browsers, e.g:

ScrollReveal({ mobile: false });

We may want to do something specific in our project when ScrollReveal is disabled, e.g:

if (ScrollReveal().noop) {
    console.log('ScrollReveal is non-operational!');
}