tserkov/vue-scroll-reveal

Configure Scroll-Reveal?

abattenburg opened this issue · 2 comments

Thanks for the excellent library! Is there anyway to change scroll reveal defaults? For example the overall duration?

Absolutely! Just pass a valid ScrollReveal configuration object to the directive as a value, like so:

<section v-scroll-reveal="{ duration: 200 }">
  <h1>Tada!</h1>
</section>

If this doesn't answer your question, please feel free to re-open the issue.

Awesome, thanks for the simple example!