formkit / auto-animate

A zero-config, drop-in animation utility that adds smooth transitions to your web app. You can use it with React, Vue, or any other JavaScript application.

Home Page:https://auto-animate.formkit.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Is it possible to disable in Nuxt?

dietler opened this issue · comments

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?

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 👍