Skip to content

[Feature request] Add a callback option when animation is completed #37

Closed

Description

@nghuuphuoc
No description provided.

Activity

  1. added
    enhancement
    on Jun 14, 2022
  2. vixducis commented on Nov 3, 2022

    @vixducis

    This would be great. Currently I'm having some issues combining auto animate with HTML5 drag and drop. As it seems like the library takes the element out of the flow the onDragLeave is triggered. Using a callback it's easy to workaround this, while right now, you have to use setTimeout.

  3. john-psina commented on May 29, 2024

    @john-psina

    Any updates on this?

    I'm using useElementBounding in my vue 3 project, and because of the autoAnimate animation, its logic breaks a bit. This would be easy to fix if there was some kind of callback or end-of-animation event

  4. justin-schroeder commented on Nov 22, 2026

    @justin-schroeder
    Member

    Landed in #255 ✨ — autoAnimate(el, { animations: { remain: false }, onAnimationEnd: (el, action) => {} }). Turn off just the animations you don't want (defaults stay for the rest), and get a callback when each one finishes. Works in every adapter; ships in the next release.

  5. justin-schroeder commented on Nov 23, 2026

    @justin-schroeder
    Member

    Out now in @formkit/auto-animate@0.11.0 🚢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

enhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions