vueuse / motion

🤹 Vue Composables putting your components in motion

Home Page:https://motion.vueuse.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

visible-once / visibleOnce Documentation (Directive Usage)

fabianbeier opened this issue · comments

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.

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?

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).