Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to disable in Nuxt? #170

Open
dietler opened this issue Oct 19, 2023 · 1 comment
Open

Is it possible to disable in Nuxt? #170

dietler opened this issue Oct 19, 2023 · 1 comment

Comments

@dietler
Copy link

dietler commented Oct 19, 2023

Following the logic to change the duration I tried both:
v-auto-animate="{ duration: 100, enable: false }"
and
v-auto-animate="{ duration: 100, disable: true }"
but neither of those seem to work.

I am trying to programmatically disable the auto-animate at the start of a certain function on the page and then re-enable it once that function runs. If passing in the attribute enable or disable isn't possible, is there another way to do this in Nuxt without falling back to the Vue package and using a plugin to have more control?

@justin-schroeder
Copy link
Member

You cannot enable/disable animations this way (you can change the duration though).

To get the animation controller use the composable rather than the directive 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants