CourseUX - UX Design Course
Back to Blog
UX - Visual Design

UI Animations: How to Create Them with 12 Examples

UI animations are the invisible language of the interface. Motion design principles, 12 use cases where they add value, and the tools you should know to build them in 2026.

CorsoUX8 min read
UI Animations: How to Create Them with 12 Examples

UI animations are the invisible language of the interface. When they're done well, you don't notice them: they guide your eye, confirm that something happened, and help you understand where you're going. When they're done badly, they're all you notice: they distract, they slow you down, they annoy. The line between the two isn't beauty, it's function.

This article is a practical guide to motion design for UI in 2026: the core principles that separate useful animations from decorative fluff, 12 concrete use cases where they add real value, and the modern tools for creating and shipping them.

What you'll learn:

  • The 6 motion design principles applied to UI
  • 12 use cases where an animation makes sense
  • Timing and curves: how long an animation should last
  • The 2026 tools for creating and shipping animations
  • The common mistakes that make an interface unbearable

Why animations matter

An interface without animations isn't "neutral": it communicates through instant state changes that the human brain struggles to follow. When you click a button and suddenly you're on a different page, you unconsciously ask yourself "did something happen?", "am I in the same place?". A 200ms animation between the two states removes that micro-confusion.

The concrete reasons to use animations in UI:

  • Cognitive continuity: they help maintain orientation across states.
  • Immediate feedback: they confirm an action was registered.
  • Attention focus: they pull the eye toward the relevant element.
  • Personality: they communicate brand tone through movement.
  • Perceived speed: an animated loading state makes the system feel faster, even at equal real time.

They aren't decorative. They're functional. If you can't justify an animation with one of these 5 reasons, you probably don't need it.

The 6 motion design principles for UI

Many classic animation principles (Disney, 1981) still apply to UI, with some adaptation. The most relevant for a digital designer:

1. Easing: nothing moves at constant speed

Linear motion doesn't exist in real life: objects accelerate and decelerate. In UI, transitions with easing curves (ease-in, ease-out, ease-in-out) always feel more natural than linear.

Rule of thumb: for elements entering the screen use ease-out (start fast, slow to a stop). For elements exiting use ease-in (start slow and accelerate). For movement between states of the same element use ease-in-out.

2. Duration: shorter than you think

UI animation durations are surprisingly short:

  • 100–200ms: microinteractions (hover, click, component state change)
  • 200–400ms: transitions between screens or layout states
  • 400–600ms: decorative or onboarding animations
  • Above 600ms: risks feeling slow and annoying

Google's Material Design fixes 200ms as the reference duration for standard transitions, 300ms for inter-screen transitions. Apple's HIG suggests similar values.

3. Motion hierarchy

When several elements move at the same time, it must be clear which are primary and which are secondary. A primary button animates earlier and more strongly than decorative elements. Motion follows visual hierarchy, it doesn't compete with it.

4. Natural direction

Movement should follow a spatial logic consistent with the user's mental model. An element entering from the left suggests "you're going back"; from the right, "you're moving forward." From the bottom, "something new is arriving." These conventions are well established — break them only when you have a strong reason.

5. Purpose over style

Every animation must answer "what does it communicate?". If the answer is "it looks nice," cut the animation. If it's "it confirms the click," "guides to the next step," "shows that it's loading" → keep it.

6. Respect those who prefer less motion

Many users have prefers-reduced-motion enabled in their OS — for medical reasons (vertigo) or simple preference. A professional interface in 2026 respects that preference by reducing or eliminating non-essential animations. In modern CSS it's a 3-line media query. This also fits WCAG 2.2 motion guidelines.

12 concrete use cases

1. Loading with real progress

When an operation takes more than 1 second, a loading indicator is mandatory. If you know the percentage complete, use a determinate progress bar; otherwise a spinner. Never nothing.

2. Optimistic loading

For actions with a high probability of success, update the UI before the server response arrives. If it then fails, roll back with an error animation. The user perceives a much faster application.

3. Action confirmation

When the user completes an action (save, submit, add to cart), a 300–400ms animated feedback (a checkmark appearing, a card that vibrates, a button that changes state) confirms success without needing a popup.

4. Screen transitions

Moving from a list to a detail view with a 250–300ms transition preserves context. Without a transition, the user has a micro-moment of disorientation.

5. Guided onboarding

Sequential animations that show step-by-step how a new feature works. Use sparingly: 2–3 steps, no more. The user shouldn't feel forced to sit through them.

6. Animated empty states

Empty screens (no messages, no projects, no results) can have a light animated illustration. It adds personality and warms up the emptiness. Read more about the 5 states of design.

7. Hover/focus microinteractions

A hover that changes color, an icon that rotates slightly on click, a button that "presses in" when tapped. 100–200ms each. They communicate that the system is "responding" to you.

8. Error feedback

A form field that briefly shakes when invalid is clearer than a plain red border. Add a text message, too — never motion alone.

9. Pull-to-refresh

The elastic that you pull down from the top to refresh content has become a mobile standard. The animation should give feedback proportional to the gesture: the more you pull, the more the spinner appears.

10. Scroll transitions

Parallax, fade-ins on scroll, elements that "reveal" as you scroll. Powerful when used sparingly, cloying when applied everywhere.

11. Functional splash screens

Native app splash screens: short animated logos (500–1000ms) that cover the initial loading time. If your app loads in under 500ms, a splash is useless and actually slows down the experience.

12. Celebratory animations

When the user reaches an important goal (finishing a course, completing checkout, hitting a milestone), a micro-celebration — confetti, a checkmark drawing itself, an animated message — creates a moment of joy. Use them once, not daily.

Tools to create UI animations in 2026

Figma prototypes

Figma has basic prototyping animations: transitions between frames with smart animate. Enough for 70% of day-to-day cases. Nothing complex, but integrated into the workflow.

Rive

Rive is the rising star of motion UI. You build animations with state machines (they react to events) and export runtimes for web, iOS, Android, Flutter, React Native. Animations can be interactive and controlled by code in real time. It's progressively replacing Lottie in many product teams.

Lottie

Lottie from Airbnb is the classic standard: animations built in After Effects and exported to JSON, rendered by a lightweight library on web and mobile. Great for non-interactive animations (loading, celebratory, illustrative).

Framer Motion

Framer Motion is the most popular React library for programmatic animations. Perfect for teams implementing directly in React/Next.js with programmatic control.

GSAP (GreenSock)

GSAP remains the reference for complex web animations on pages that don't use a specific framework. Powerful but with a steep learning curve.

CSS + keyframes

For the simplest microinteractions (hover, fade, short slides) modern CSS with @keyframes and transitions is enough and extremely performant. Zero dependencies, zero JavaScript for those animations.

Common mistakes

Five patterns that make an interface unbearable:

1. Animations that are too long

An 800ms animation you see 40 times a day becomes pure pain. Respect the thresholds above.

2. Too many things moving at once

When every element on the page enters with its own sequential animation, the user doesn't know where to look and waits 4–5 seconds before being able to act. Less is more.

3. Animations that block input

An animation that prevents the user from interacting until it finishes is a bug dressed up as a feature. Animations should be cancellable or shouldn't prevent input.

4. Ignoring prefers-reduced-motion

An interface that doesn't respect this preference is outside modern accessibility standards (WCAG 2.2, ADA, Section 508). It's a 2-line CSS query — there's no excuse.

5. Different animations every time

For the same type of interaction (e.g., action confirmation) always use the same animation, same timing, same easing. Consistency is part of the product's language.

Frequently asked questions

Do animations slow down a website?

Modern GPU-accelerated CSS animations don't slow anything down if used correctly (the transform and opacity properties are nearly free). Complex JavaScript animations can impact performance: monitor them with Chrome DevTools.

Lottie or Rive?

Rive wins if you need interactivity and state machines. Lottie wins if you have an established After Effects workflow or if you need maximum compatibility with different runtimes. For a new project in 2026, Rive is the preferred choice in many teams.

How much should I animate in a new app?

Start with little. Essential microinteractions (hover, action feedback, basic transitions) and nothing else. Add more sophisticated animations only when a concrete problem demands it. "Motion minimalism" is the principle.

Can I build animations directly in Figma?

Yes, for prototypes. Figma's animations (smart animate with transitions) are adequate for testing and critique, but they aren't meant to ship in the final product. For production, use Rive, Lottie, Framer Motion, or CSS.

Are UI animations accessible?

They can be if they respect prefers-reduced-motion and don't rely on motion to convey essential information. An animation that replaces a text message is an accessibility problem.

Next steps

Motion design is a sub-discipline of Visual Design that's increasingly in demand in product teams. To go deeper:

CorsoUX's Visual Design course includes a module on UI animations with hands-on exercises in Figma and an introduction to the motion tools most used in product teams.

Condividi