jlmakes / scrollreveal

Animate elements as they scroll into view.
https://scrollrevealjs.org/
22.34k stars 2.26k forks source link

window not found #410

Closed strin closed 6 years ago

strin commented 6 years ago

When compiling for server side rendering with gatsby (https://www.gatsbyjs.org/docs/debugging-html-builds/), the scrollreveal package throws "window not found error".

jlmakes commented 6 years ago

I'm not familiar with Gatsby. Any idea how other DOM libraries are solving this? The advice I've given before is to import DOM libraries using <script> tags, and defer to the client. (#304)