Skip to content

Is it possible to set default options, that will be used in every instance? #216

@stefanobartoletti

Description

@stefanobartoletti

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions