vueuse / motion

🤹 Vue Composables putting your components in motion
https://motion.vueuse.org
MIT License
2.37k stars 82 forks source link

visible-once / visibleOnce Documentation (Directive Usage) #154

Closed fabianbeier closed 9 months ago

fabianbeier commented 1 year ago

I had the problem that the element that i applied :visible-once="… to was not animating (Directive Usage). After reading some Issues here i tried to write :visibleOnce="… and it worked!

In the Docs it only states the kebab-case (visible-once). Is the camel-case the correct Version? If so I think it needs to be updated in the Docs.

brambekkers commented 10 months ago

Thanks for your comment. My eslint is always complaining about this not being hyphenated. Is there a possibility to make it work with visible-once?

BobbieGoede commented 9 months ago

The kebab-case usage has been fixed by #141 (but not published in a release yet), I think the pascalCase usage doesn't have to be documented (after fix release) as using kebab-case is in line with html attribute convention (see Vue docs on prop name casing).