Transitions.dev: UI transitions for AI agents
Transitions.dev: Elevating UI Animations for AI Agents
Transitions.dev is a specialized library featuring a curated collection of the most critical UI transitions designed for modern web applications, with a particular focus on AI-driven interfaces.
Users can either manually copy and paste these animations or integrate them directly into their workflow using a coding agent via a specific skill.
🛠️ The Transition Library
The platform allows users to filter by Essential, AI Agents, Effects, and Texts. You can sort these by Oldest first Newest first.
📦 Component Transitions
Below is a detailed breakdown of the available animation effects:
| Category | Transition Name | Visual Behavior |
|---|---|---|
| Cards | Card Resize | A smooth, fluid adjustment of card dimensions. |
| Cards | Card Stack Hover | A spring-loaded "fan out" effect when hovering. |
| Numbers | Number Pop-in | Digits flip with a blur and staggered entry. |
| Numbers | Spinning Counter | Reel-style spinning digits that land on a value. |
| Text | State Swap | Text transitions via a blur effect. |
| Text | Text Reveal | Two lines rising with an offset stagger. |
| Text | Shimmer/Organic | Masked gradients or wavy glows sweeping across text. |
| Overlays | Modal/Panel | Scale-based opens or reveal transitions. |
| Overlays | Toast | Rises into view with a combination of fade, blur, and scale. |
| Interactive | Gooey Menu | A liquid-style split into a fan of action buttons. |
| Interactive | 3D Tilt | Pointer-based tilt with a simulated cursor glare. |
| Interactive | Dropdown Morph | A button that physically morphs into a menu surface. |
| Feedback | Success Check | A blur and rotate effect ending in a drawn stroke. |
| Feedback | Error Shake | A cubic-bezier shake animation upon validation failure. |
| Feedback | Spinner Check | A loading spinner that pops into a completed checkmark. |
🚀 AI-Specific Interaction Patterns
AI agents require unique feedback loops to signal "thinking" or "generating."
- Thinking States: A shimmering status line that cycles through different phases.
- Reasoning Stream: A scrolling feed of the agent's internal logic (two lines at a time).
- Streaming Text: Words that resolve through a soft cross-blur.
- Image Generation: A dot-noise placeholder that gradually resolves into a clear image.
🔬 Technical Deep Dive: Performance & Compositing
A critical part of the library involves optimizing how animations are rendered. There is a significant performance difference between repainting and compositing.
The Problem: Using
mask-positionfor animations does not trigger compositing; instead, it forces the browser to repaint the element. If that element is part of a displacement chain, the entire filter must be re-executed on the CPU every single frame.
The Performance Equation:
The Solution:
Instead of masking, use a "curtain" (a same-colored element) and move it using transform.
/* Avoid this for high-perf animations */
.bad-perf {
mask-position: 10% 20%; /* Triggers Repaint */
}
/* Do this instead */
.good-perf {
transform: translateX(100px); /* Triggers Compositing */
}
Note: The trade-off is that the wave effect moves with the band rather than rippling through a fixed spatial noise.
💎 Pro Features & Extras
For those seeking high-end polish, the Pro version offers:
- Pro Gradient Text: Orbiting color washes across letters.
- Smoky Dissolve: Elements that vanish into smoke.
- Image Shredding: Images that break apart and fall.
- Advanced Glows: Pro buttons with rim-based gradient glows.
🎓 Further Learning
The creator, Jakub Antalik, highly recommends the animation craft course by Emil Kowalski for those wanting to master these techniques.
"You can tell when an interface feels right." — Jakub Antalik
[Get Pro ] | [Take the Course ]