If you’ve used AI to add animation to your websites or UI components, you’ve probably found it to be pretty quick and easy to do. With the right agent skills, you can achieve smooth, snappy animations, even with accessibility built in while you’re at it.
Some great resources for this are:
- Emil Kowalski’s Skills for Designers and Engineers
- Motion AI Kit, animation best practices for coding agents.
- Vercel’s Web Interface Guidelines, including animation performance and accessibility.
- Motion Primitives, reusable animated UI components with source code.
- Codrops Demos, tell your agent to browse these for inspiration.
But why stop there? The age of agentic coding has made the extremely ambitious suddenly achievable.
In the heyday of Flash, it seemed like the possibilities were limitless. We had custom vector art, shape tweening, stages for nested timeline composition, programmatic physics, multimedia syncing, motion paths, and the list goes on. We also made web experiences that were completely inaccessible and would blow up the fan on your computer.
What if we could bring back the fun of the Flash glory days, but also be accessible and performant?
To explore this concept, I decided to go completely over the top and built a website called Animaxxing.com. Its animate-all-the-things approach features multiple themes, design system swapping, particle animations, wild hover effects, conceptual redesigns of popular websites, scroll-triggered animations and more.
I got carried away.
By pushing the envelope to explore what is possible, my approach to animation on the web has changed. I packaged everything I learned into a set of agent skills for “Animaxxing”. Now the only limits are my imagination and the ability to teach my agents to create the experience that I want.
In this article, we’ll follow one route through a demo site from start to finish: the prompts I wrote, what the skills handled on their own, and where I had to step in.
Tools & Techniques
I chose to create this demo with Next.js because animating page transitions in Next.js is notoriously tricky. It is definitely not a requirement! These techniques also cover Astro, Nuxt, SvelteKit, React Router, TanStack Router… all the way to vanilla JS.
We are going to use GSAP for animation, with the official GSAP agent skills and the Animaxxing skills on top to take this to the next level.
Before we continue, I want to make it clear that it is perfectly fine to build static websites. It is usually better to go with less-is-more when it comes to animation. People do NOT want to have scroll animations on their banking websites!
That said, the web is a big place and there’s plenty of room for fun, expressive sites that tell a story, create a vibe or are just imaginative and fun.
Concept
We are going to build an interactive exhibit of all the different ways you can animate elements on a web page today. We are going to call it the Museum of Motion, and we are going to use all our new animation agent skills to do it (and write new ones along the way).
The Design
After iterating on a few different ideas and directions, we landed on a static poster design with a saturated cobalt background using a bold Archivo font face. Here is the design with its headline words frozen mid-effect.

These agent skills animate an existing design rather than restyle it.
To install the skills:
npx skills add https://github.com/greensock/gsap-skills && npx skills add https://github.com/johnpolacek/animaxxing-skills
Step 1: Personality
Before just jumping in and adding animation to your project, give some thought to establishing a personality and vibe to go for. Talk it through:
(a) Press: precise and decisive
Plain version: type lands like it was stamped. Fast, sure, no wobble.
Example: headline lines snap up from behind masks. The page leaves with a fast blue wipe.
Technical: entrances 0.3 to 0.5 s, sharp ease-out, no overshoot, tight staggers. Exits are faster than entrances.
(b) Kinetic poster: bold with some bounce
Plain version: the type is alive. Letters stretch, swell and settle.
Example: "page" pulses through weights. Exhibit names widen into place, then settle at normal width.
Technical: Archivo's width and weight axes do the work. Slight overshoot, springy settles.
(c) Gallery: calm and curated
Plain version: quiet, slow reveals, like walking into a museum room.
Example: lines fade up softly, one after another, and nothing rushes.
Technical: 0.8 to 1.2 s, smooth ease-in-out, long staggers, mostly fades and masks.
The agent recommended a, but I went with “b all the way”.
Create a short motion brief in your project (such as MOTION.md):
The type is alive. The site is a poster giving a performance: letters stretch, swell, and settle. Motion is bold, precise and a little springy.
You can see the full motion brief for the Museum of Motion here.
This step pays off in every prompt that follows. Instead of describing timing, easing, and personality each time, your agent will follow your motion brief. You’ll see how much it decides on its own when we get to the collection.
Step 2: The Hero
Brief in place, it is time to make something move. The hero is always a great place to start. If you nail that, the rest will follow.
We are animaxxing, so we’re going for the full treatment: every element gets an intro, a resting state, and an outro.
I like to start with a planning prompt:
let's do the hero animation on the landing page. we are animaxxing so every element gets an intro animation > static (or ambient animation) > outro
ask me any questions for max clarity
Doing Q&A with an agent can be fun, but I’ve found it also gets great results. In this case, the agent came back with four follow-ups. I answered each one, then started a fresh session to build from a fresh prompt without extra noise.
Here is the build prompt:
We're animaxxing, starting with the landing page hero. Follow MOTION.md. Leave the collection and the other pages static for now.
Every hero element gets an intro, a settled state, and an outro:
- Headline: each word performs the exhibit it is numbered with, then lands as clean, readable type. The frozen poses in the static markup are moments from these moves, not the end state. Each superscript number arrives after its word lands.
- Subhead, divider rule, and the exhibit list enter after the headline.
- Masthead: enters on first load only. It persists across pages, so it has no outro.
- Settled: a letter wave ripples through the headline every few seconds, with a visible pause control.
- Outro: plays when navigating to an exhibit or About, before the next page appears.
Ask me anything unclear before you build.
The agent did ask me a few more questions around some edge cases, then it did its thing.
Each headline word performs its own exhibit. “Every” drops in letter by letter. Next, “way” stretches wide while an underline sweeps under it, then “page” gains weight in a wave, “can” slides in, and “move.” rises from behind a mask. Finally, the subhead, rule, and exhibit list follow.
What the skills handled:
- No flash on load. The hero stays hidden until its animation is ready, but if the JavaScript is slow or blocked, the content shows anyway after a short deadline. Nobody ever gets stuck on a blank page.
- Fonts load before any text is split into letters, so nothing jumps when the real font arrives.
- Words that change width hold their space, so the headline never reflows mid-animation.
- The divider rule uses a plain ease instead of the bouncy signature curve, because an overshoot would push it past the edge of the page and cause sideways scrolling.
- Clicking a link mid-intro, double-clicking, and using the back button all behave. The back button skips the outro and goes straight to the next page’s intro.
- With reduced motion turned on, the hero simply appears at rest. No splitting, no wave.
- The wave pauses when it scrolls out of view, and your pause choice is remembered.
Nice, but Room for Improvement
The hero animation was pretty good as is, but I found plenty of small things to tweak and polish.
I shortened the delay before the wave animations start. I also made a separate cycling text label and pause button for the wave animation. I added a replay button to allow people to watch the intro animation again.
Step 3: The Content
Below the hero sits the main content, our collection of every exhibit in our museum of motion, each type of website animation listed by group, with the names running together like a paragraph.
This is where the motion brief earns its place. My whole prompt was one sentence, and the brief decided most of the rest: the group rules draw across, the names gain weight as they scroll in, and they widen on hover. The agent asked four questions to fill in the gaps: how names should enter, what happens when you click one, whether the footer wordmark should animate, and whether to add hover effects now. I clicked accept on all its recommendations.
Close Again, but Not Quite Right
The next day, I noticed something while hovering over names. When one widened, its neighbors jumped. Sometimes a whole name dropped down to the next line. I sent two screenshots and asked:
"on hover there is a layout shift why and how should we fix"
The agent wrote a test that hovered every name in the collection and checked whether any other name moved. At desktop width, hovering 31 of the 76 names moved something. Then it found the cause. To keep a widening name from pushing its neighbors, the code locked each name to its width just before the hover. But the lock rounded the width up. A name 276.6 pixels wide became 277. On a tightly packed line, that fraction of a pixel was enough to push the last name onto the next line, and everything after it jumped. Imagine how long it would take to track that down by hand. And how incredibly boring it would be.
The fix was to set the names up that way from the start, so hovering changes nothing about the layout, and to lock the exact width with no rounding. After the fix, the same test found zero moves, at seven screen widths.
That was good. This was better:
update our animaxxing skills to avoid layout shift and jank.
This loop works really well. A bug in one project becomes a skill fix so we never deal with it again. In this case, our animaxxing skills now include a hover effect that animates words without shifting the layout, plus a check that catches if anything moves.
Step 4: Navigation
In the old Flash days, you didn’t have to worry about page navigation. The whole site was a movie. Pages were just spots on your timeline and you could manage every frame as you saw fit.
The web doesn’t work like that. When a link is clicked, the router swaps in the new page right away, and the old page is gone before it can say goodbye. Visitors can also arrive on a page without clicking on a link, such as via the back button, a refresh or direct link.
The gsap-nextjs skill (part of the Animaxxing skills) handles this by giving every page and component the same cycle: mount, set a start pose, play intro, settle, play outro, hit the end pose, and only then leave the page. The rule to finish leaving before you start to arrive is what makes page transitions possible.
The skill also has rules for everything around that idea:
- Back and forward buttons skip the outro and go straight to the next page’s intro (nobody wants to wait on a page when going through history).
- On load, nothing flashes before its intro. If loading is slow or blocked, content appears anyway after a short deadline.
- An outro that stalls gives up after a moment, so navigation never gets stuck.
- A second click during an outro is ignored, so the first destination wins.
- With reduced motion, skip to the resting state.
Sometimes it is tempting to just try to one-shot everything with a prompt, but I find it is useful to start small and establish a pattern:
let's pick one exhibit and get it right, then apply to the rest later
We chose an exhibit and connected the pages. Click a name in the collection, the other names clear away, and your name flies into the new page to become its title. Once we got that working, all it takes is one more prompt to roll it out everywhere:
this is great. let's apply this to other ones
Before agents, this was extensive, tedious, repetitive work. With agents, it is set and forget (mostly).
Step 5: Iterating
The first version of the collection was a basic catalog where every effect the skills could build got its own exhibit. It read like a developer checklist.
There was a bit of fun in there, but there needed to be more.
"velocity skew is boring - remove."
"the parallax example could be more impressive"
"for physics, i was expecting like a box 2d style thing where stuff falls onto the bottom and bounces or whatever."
"Instead of Frame Sequence, do Timeline and make it a complex GSAP timeline that is interesting"
Parallax went from two layers sliding past each other to seven planes at seven speeds. Physics became a pile of shapes that fall and bounce, then gained dominoes you can push over. A plain pull interaction became a book where you turn the pages. Explode’s letters now fly in from every direction, tumbling in 3D.
Sometimes the fix is to remove things.
- Not fun to watch: Velocity skew, Smooth scroll, Scrubbed video, Preloader, Sound cues.
- Too similar: four ways to style a link hover became “Hover”. Press, shake, success, and error states became the “Feedback” exhibit.
- Better names: “Underline sweep” and “Scrubbed statement” described how the code worked. “Explode,” “Melt,” and “Turn” describe what you see.
It felt like something was missing though. Animations on their own are pretty cool, but using them in combination is where the magic happens. So I created a new section called “Vibes” with little mini sites, each with its own look, to showcase ways to use animations to evoke different feelings.
Real devices matter too. The agent checked every step at desktop and phone sizes, but when I tried it on my actual phone, I found things it missed. For example, one exhibit flashed its finished image before its reveal, and the browser’s cyan tap highlight made the design look off. For each case, I described what I saw (or provided a screenshot), then the agent found and fixed the issue, and usually added a test or skill update so it won’t happen again.
Accessibility
Both the GSAP and Animaxxing skills have accessibility included as a key consideration when creating animations.
Reduced motion. Visitors who set their device to reduce motion skip the animations and go straight to each element’s resting state. They will still see the poster exactly as designed because those styles are in the CSS.
No JavaScript. The server sends the finished page. If the JavaScript never arrives, the content is still there and readable. If it arrives late, the page displays after a short delay instead of waiting forever.
Keyboard. Every hover effect comes with a matching focus effect, so tabbing through the collection widens names just like a mouse does. Names that aren’t animated in yet are still in the tab order, so tabbing to one finishes its entrance immediately.
Touch. Hover effects never get stuck on a phone. Where an exhibit needs a cursor, a finger held on the screen stands in for it.
Controls. Anything that loops has a pause button, and the site remembers your choice. Loops also pause when they scroll out of view. The scrub bar on each exhibit is a native slider, so it works with a keyboard, finger, or screen reader.
WebGL. The effects that run on the GPU keep the real image in the page. If WebGL is missing, fails, or motion is reduced, you get the plain image instead of a blank box.
Wrap-Up
We followed the Museum of Motion build from static site, to a motion brief, to a hero animation all the way through the complete animation design for all of the content.
Agents greatly accelerated and improved the creation of the site, with our agent skills helping along the way:
- Page lifecycles: intros, outros, back button, interrupted clicks
- No flashes on load, and a safety net when JavaScript is slow
- Layout that holds still (no jank) while elements change width and weight
- Reduced motion, keyboard focus, and touch
- Testing their own work, and catching their own bugs
What still needs a human touch:
- Coming up with the right ideas
- Choosing a personality
- Design guidance
- Noticing when something felt off, boring, or flat
- Deciding when to improve the agent skills themselves
- Taste
The Flash era proved the web could be a playground. Now with AI agents and great tools like GSAP, we can get that playground back without leaving people out or melting anyone’s laptop. When it comes to making websites that move, you have everything you need to make all your big ideas and ambitions come to life.