Does not work with content loaded via ajax in the views. Also, if the height of the page is not recalculated when upload content. The demonstration here — https://youtu.be/Mrsi9MgPKSs

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

shevgeny created an issue. See original summary.

shevgeny’s picture

shevgeny’s picture

In your module, in the file scrollreveal.custom.js to write window.sr = new scrollReveal( config ); instead window.scrollReveal = new scrollReveal( config );

abramm’s picture

Status: Active » Needs review
FileSize
455 bytes

Attaching patch. Works for me.

The original code was re-writing the window.scrollReveal found at scrollReveal.js.

kovtunos’s picture

Added .once because the module applies styles several times to each element.