BASE

AutoAnimate

AutoAnimate

Development library / tool · Free

Smooth automatic element motion when elements are added, removed, or reordered in the DOM.

Also known as: formkit/auto-animate

Resource illustration: AutoAnimate

Open resource ↗

What you can use for free

AutoAnimate code is available free of charge for local and commercial projects, subject to its license.

Paid features and costs

This library does not require a paid plan. Development and hosting of the finished application are separate from the free code license.

Access and limitations

AutoAnimate code is available free of charge for local and commercial projects, subject to its license. This library does not require a paid plan. Development and hosting of the finished application are separate from the free code license.

Use cases

  • Reordering cards in a list
  • Smoothly revealing search results

Example workflow

A possible workflow; this is not a report of hands-on testing.

Reordering cards in a list with AutoAnimate.

Before you start

  • A working project using DOM; React/Vue/JavaScript, and a specific use case: reordering cards in a list.
  • A design, interface states, or dataset; target screens and accessibility requirements.

Steps

  1. Check the project's stack and version against the current AutoAnimate documentation; add the package or the required source component.
  2. Implement the selected workflow with the supplied data, adapting styles and states to the project.
  3. Check the result in the target environment, remove sample data, and retain the notices required by the license.

Check your result

  • The example works in the chosen tech stack, including target dimensions and input errors.
  • Dependency size, keyboard behavior, and reduced motion suit the task; license terms are met.

Choosing AutoAnimate

Reordering cards in a list

Choose this when

  • Reordering cards in a list
  • Smoothly revealing search results

Requirements

  • Pass the parent DOM element of the relevant list; in React, use stable unique keys.

Things to consider

  • Costs and limits of free use: This library does not require a paid plan. Development and hosting of the finished application are separate from the free code license.
  • Terms of use: MIT: permits commercial use, modification, and distribution of the code at no charge, provided the license text and copyright notice are retained.
  • Dynamic flex-grow width can interfere with expected measurements; the documentation recommends a more explicit width.

Frequently asked questions

What can you use for free in AutoAnimate?

AutoAnimate code is available free of charge for local and commercial projects, subject to its license.

What additional costs might arise with AutoAnimate?

This library does not require a paid plan. Development and hosting of the finished application are separate from the free code license.

What terms of use matter for AutoAnimate?

MIT: permits commercial use, modification, and distribution of the code at no charge, provided the license text and copyright notice are retained.

How do you get started with AutoAnimate?

Check the project's stack and version against the current AutoAnimate documentation; add the package or the required source component. Implement the selected workflow with the supplied data, adapting styles and states to the project. Check the result in the target environment, remove sample data, and retain the notices required by the license.

Why does changing a color or a deeply nested element not trigger AutoAnimate?

It observes additions, removals, and movement of the supplied parent's immediate children. For hover and other styling changes, the documentation recommends CSS transitions. The library respects prefers-reduced-motion; no motion with that setting is expected.

Related tasks and approaches

License

MIT: permits commercial use, modification, and distribution of the code at no charge, provided the license text and copyright notice are retained.

MIT — permissive license

You can use, modify, distribute, and sell the code, including in a closed-source commercial product. When sharing copies or substantial portions of the code, retain the license text and copyright notice. You do not need to open-source your entire project; the author provides no warranties.

License terms

Technologies and topics

  • DOM
  • React/Vue/JavaScript
  • UI

Sources

Other resources