tserkov / vue-scroll-reveal

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

SSR with Nuxt #13

Closed mesqueeb closed 6 years ago

mesqueeb commented 6 years ago

The docs say:

"If using as a plugin with Nuxt be sure to disable server side rendering in nuxt.config.js."

Will this mean that all content which is wrapped with v-scroll-reveal will not be server side rendered?

tserkov commented 6 years ago

That tip was provided by a contributor who used this library in Nuxt (see issue #3 and PR #8), so I can't speak to it's effect. I would personally hope that disabling just this library from SSR would only disable the reveal logic, not necessarily the (non-)rending of the element(s).

But, please, give it a try in your environment and let me know what you discover!

mesqueeb commented 6 years ago

@tserkov It seems the content is properly loaded with pre-rendered content, even though ssr is disabled just for the plugin. Congratulations on the great wrapper you wrote! You rock!