PygmySlowLoris / vue-ripple-directive

Material Ripple Effect as Vue Directive.
MIT License
287 stars 51 forks source link

Custom timing-function #20

Open ChrisRobston opened 6 years ago

ChrisRobston commented 6 years ago

Thank you guys for awesome package. All is perfect but I miss the last piece - custom timing function. Is it possible to overwrite it somehow, or may be it's even possible to add it as modifier?

gangsthub commented 6 years ago

You can override the "style.transition" property

https://github.com/PygmySlowLoris/vue-ripple-directive/blob/master/src/ripple.js#L49

in your options passed or globally to your Ripple instance.

Consider that (Ripple.transition) is the transition time.