Skip to content
Tutorials Center
My learning

Topics

Lesson 22 of 37 ยท Interactions and Animation

Easing and Motion Performance

Understand easing functions, duration, frame budgets and which properties animate smoothly in Webflow and Wix. Includes a runnable easing table and frame budget stand-in.

Two animations with the same duration can feel completely different. The reason is easing: how the speed changes over time. And two animations that look similar in the editor can run very differently on a mid-range phone, depending on which properties they change. This lesson covers both: the shape of motion, and the cost of motion.

Webflow and Wix cannot run on this site. The samples are plain JavaScript stand-ins that compute the same maths the platforms use for easing and timing.

What easing means

An easing function maps time progress t (0 to 1) to animation progress p (0 to 1). With linear easing, p = t: constant speed, which looks mechanical. Natural motion accelerates and decelerates.

Easing Feels like Good for
Linear Constant speed Loading bars, color cycles
Ease-in Slow start, fast end Things leaving the screen
Ease-out Fast start, slow end Things arriving
Ease-in-out Slow at both ends Moves between two places
Back / overshoot Goes past, then settles Playful buttons, badges

Webflow lets you pick presets (Ease, Ease In, Ease Out, Out Quart, Out Expo, In Out Back and others) in the animation step settings. Wix offers named easings in its Interactions and animation settings, such as ease-in, ease-out and ease-in-out. CSS itself supports cubic-bezier(x1, y1, x2, y2) curves, which is what these presets are built on.

Seeing the curves

JS Easing table

Press Run (or Ctrl + Enter) to see the console output here.

No output.

Read the row for t = 0.25. Ease-out has already covered most of the distance, so the element seems to react instantly and then settle: that is why it feels responsive. Ease-in covers only a small fraction at the same moment, which feels sluggish at the start.

Choosing a duration

A useful rule: the further something travels, or the bigger it is, the longer it can take, up to about a second for large moves.

  • Micro feedback (hover, press): 100โ€“250 ms.
  • Small UI (tooltips, dropdowns): 200โ€“350 ms.
  • Panels and modals: 300โ€“500 ms.
  • Page-level entrances: 500โ€“900 ms.

Exits can be shorter than entrances, since the visitor already knows what is leaving.

The frame budget

A screen refreshes about 60 times per second, so each frame has roughly 16.7 ms to do all its work. High-refresh displays (90 or 120 Hz) give even less, around 11 or 8 ms. If the browser cannot finish the layout, paint and composite work in that time, frames are dropped and the animation looks choppy ("jank").

JS Frame budget calculator

Press Run (or Ctrl + Enter) to see the console output here.

No output.

Which properties are cheap?

Browsers handle animation in stages: layout (where things go), paint (filling pixels) and composite (assembling layers). The cheapest properties only need the final step.

Cost Properties Notes
Cheap (composite only) transform (move, scale, rotate), opacity Prefer these
Medium (paint) color, background-color, box-shadow, filter such as blur Fine in moderation
Expensive (layout) width, height, margin, padding, top/left Moves neighbors; avoid animating

In Webflow's interaction actions, Move, Scale, Rotate and Fade map to transform and opacity: cheap. Size changes layout: expensive. In Wix, fade, slide and scale entrances are the lightest; animating a container's size or large blurred backdrops is heavier.

A related problem is cumulative layout shift (CLS). If an animation changes an element's size and pushes content, visitors see text jump. Animating with transform leaves the layout alone.

Practical rules for smooth motion

  1. Animate transform and opacity wherever possible.
  2. Keep the number of simultaneously animated elements small (a dozen is plenty).
  3. Do not animate large images or full-width blurred backgrounds while scrolling.
  4. Avoid auto-playing background video plus heavy scroll animation on the same screen.
  5. Test on a modest phone, throttle the CPU in your browser's developer tools, and look for dropped frames.
  6. Provide a reduced-motion path: when the visitor prefers it, show the end state immediately.

Common mistakes

  • Using the same long ease-in-out for everything.
  • Animating height to open an accordion without checking layout shift; instead prefer showing the content or use the platform's built-in accordion component.
  • Copying heavy showcase effects from award sites to a small business page.
  • Not testing with real devices.

Check your understanding

Quick check ยท 4 questions

of 4 answered You scored / 4 ยท perfect!

  1. 1. Which easing starts fast and slows down, suiting elements that arrive?

    Ease-out gets most of the movement done early and settles gently.
  2. 2. About how long is one frame at 60 Hz?

    1000 ms divided by 60 frames is roughly 16.7 ms per frame.
  3. 3. Which property is cheapest to animate?

    Transform and opacity can be handled in the composite stage without recalculating layout.
  4. 4. What is cumulative layout shift?

    CLS measures how much visible content jumps around, and animating layout properties can cause it.

Summary

  • Easing shapes how speed changes; ease-out suits arrivals, ease-in suits departures.
  • Keep micro interactions around 100 to 250 ms and big entrances under about a second.
  • A 60 Hz screen gives about 16.7 ms per frame.
  • Animate transform and opacity; avoid animating size and position properties.
  • Test on real devices and honor reduced-motion preferences.

Next: Form Submissions and Notifications