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 set default options, that will be used in every instance? #216

Open
stefanobartoletti opened this issue Sep 25, 2024 · 0 comments

Comments

@stefanobartoletti
Copy link

Right now, unless I am not mistaken, if I want to set different defaults than those already built-in, I have to pass these values whenever a new instance is called.

In example, when using Vue, I have to do this:

<!-- MyFirstComponent.vue -->
<ul v-auto-animate="{ duration: 500, easing: 'ease-out' }">
<!-- MySecondComponent.vue -->
<div v-auto-animate="{ duration: 500, easing: 'ease-out' }">

Is there a way, currently, to set these values as new defaults to not have to do this every time I need to use the directive?

And if not, could this be considered for a future addition?

Thanks!

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

1 participant