vueuse / motion

๐Ÿคน Vue Composables putting your components in motion
https://motion.vueuse.org
MIT License
2.13k stars 75 forks source link

fix(component): apply delay to visibility variants #184

Closed BobbieGoede closed 2 months ago

BobbieGoede commented 2 months ago

๐Ÿ”— Linked issue

โ“ Type of change

๐Ÿ“š Description

It looks like the delay prop was not applied to variants in the same way as it did for directives, this fixes that. I also refactored the logic slightly to avoid repetition as well as make it more consistent between component and directive, this also acts as preparation to add support for a duration prop which will work just like delay.

๐Ÿ“ Checklist