5 free motion libraries your AI can use to make your site feel alive

These five free libraries let your AI add motion to your site, from confetti on a sign-up to headlines that get highlighted as you scroll.

By Matias Barragan Free guide 4 min read Updated

Five free motion libraries for your AI: tsParticles, Animate UI, Uiverse, Rough Notation and AutoAnimate.

How do you ask for motion?

Name the library, the part of the page and the moment it should move. "Make it pop" leaves your AI guessing. "Use tsParticles to fire confetti once when someone sends my contact form" gives it everything it needs.

Each part below has the install line your AI runs in your project folder and one request you can paste as it is or change to fit your site.

Step 1: tsParticles

tsParticles makes confetti, fireworks and moving particle backgrounds. It's MIT licensed and works on plain sites and with most frameworks.

npm install @tsparticles/confetti
Use tsParticles confetti to fire one short burst when someone sends my contact form. Only once per visit.

Step 2: Animate UI

Animate UI has animated backgrounds and buttons for React sites, like fireworks or soft moving bubbles behind your hero. It's free to use on your site; its license only stops you selling the components themselves.

npx shadcn@latest add @animate-ui/backgrounds-fireworks
Add the Animate UI fireworks background behind my homepage hero and keep the headline easy to read on top of it.

Step 3: Uiverse

Uiverse has over 3,000 community-made buttons, loaders, toggles and hover effects in plain CSS or Tailwind, all MIT licensed. There's nothing to install: open an element you like, copy its code and hand it to your AI.

Here is the code of a loader from Uiverse. Use it on my contact form button while the form sends, in my site's colors.

Step 4: Rough Notation

Rough Notation draws hand-drawn underlines, circles, boxes and highlights on your text and animates them in. It's tiny and MIT licensed.

npm install --save rough-notation
Use Rough Notation to highlight the key phrase in my homepage headline in yellow when it scrolls into view.

Step 5: AutoAnimate

AutoAnimate makes items slide into place when they are added, removed or moved, with one line of code. It works with React, Vue and plain JavaScript, and it's MIT licensed.

npm install @formkit/auto-animate
Use AutoAnimate on my FAQ list so answers slide open and closed smoothly.

What should you watch out for?

Animate UI is built for React sites styled with Tailwind CSS. The other four work on most sites your AI builds in code. If your site lives in a drag-and-drop site builder, your AI can't add these there.

Add one effect at a time and look at the page on your phone before you add the next. Too much motion makes a page slower and harder to read.

Ask your AI to respect the "reduce motion" setting, so visitors who turn motion off on their phone or computer get a still page.

Want your AI to set this up for you?

The Setup Kit is coming soon. Say what you're making, and your AI picks and installs the tools and instructions that project needs.

Join the waitlist
All guides