ndelvalle / v-blur

⬜️ Vue directive to blur an element dynamically

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Make it more configurable

nickmessing opened this issue · comments

I'd suggest adding some way to specify duration and easing as "options", maybe you can accept "options" object in v-blur something like v-blur="{durationg: 0.5, easing: 'ease-in-out', blurred: true}"?

Yeah, good idea, I should make all attributes configurable 🙂. Maybe have some defaults declared on setup time, and let the user modify them again when using it like you suggested.

I made opacity, filter and transition configurable, I thought there was no need of adding duration and easing having the transition property available 🙂.