tserkov / vue-scroll-reveal

A Vue directive to wrap @jlmake's excellent ScrollReveal library.
MIT License
163 stars 17 forks source link

scroll-reveal and pre-reendering #31

Closed maxmarcon closed 2 years ago

maxmarcon commented 4 years ago

Ok this is less of an issue and more of a question... Does scroll-reveal work with pre-rendering (or sever-side rendering)? I created a simple page that has some scroll-revealed elements. When I pre-render the page using https://github.com/chrisvfritz/prerender-spa-plugin and I scroll down to the elements they are not shown. No errors logged to the console either. Am I missing something and is there any hope to make it work? Thanks in advance for any answer!

tserkov commented 4 years ago

If you could provide me a minimal repo that reproduces the issue, I should be able to more accurately diagnose the issue.

maxmarcon commented 4 years ago

Hi @tserkov thanks for offering to help. I shared my project with you and created a branch that exemplifies the problem. Just follow the instructions in the README. If you have any questions let me know:

https://github.com/maxmarcon/newsletter/tree/prerendering

BUQIANHE commented 3 years ago

After refreshing the page, the scrolling content that needs to be displayed is hidden