tserkov / vue-scroll-reveal

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

How do we achieve "sr.reveal('.box', 50)" with vue-scroll-reveal #9

Closed leyume closed 6 years ago

leyume commented 6 years ago

Thank you for this vue plugin...

How do we achieve "sr.reveal('.box', 50)" with vue-scroll-reveal I see in your example you apply it to each elements. But if I want to specify severals classes or elements at once, like ".box" like the one in scrollrevealjs example, How do I get that?

tserkov commented 6 years ago

I just pushed 1.0.7, which exposes the reveal() method from Vue.$sr and this.$sr, which should allow you to do what you want for your use case.

leyume commented 6 years ago

Thank you @tserkov ... Working Excellently!