Tweening

Also called inbetweening or tween animation

Generating the in-between frames of an animation from a start and an end state, so an element moves smoothly from one to the other.

What is Tweening?

Tweening, short for in-betweening, comes from hand-drawn animation: a lead artist drew the key poses and assistants drew the frames between them. On the web the browser or an animation library does that work, calculating a new frame for every screen refresh.

You describe the start state, the end state, a duration, and an easing curve. The easing decides how the in-between frames are spaced: evenly with linear, bunched up at both ends with ease-in-out. CSS transitions, CSS animations, and libraries such as Motion and GSAP all tween.

A tween always takes the same, exact amount of time, which makes it predictable and easy to line up with other motion. A spring animation is the main alternative: it has no fixed duration, and it handles being interrupted halfway through more naturally.

Often confused with

Spring animation
A spring animation is driven by physics settings and has no fixed duration. A tween runs for an exact time along an easing curve.
All terms

Keyframes

Snapshots that define how an element looks at set points in an animation. The browser fills in the motion between them.

Easing

A curve that controls how an animation’s speed changes over time, so motion can start slow, land softly, or keep one steady pace.

Spring animation

An animation driven by simulated spring physics in place of a fixed duration and curve, so motion can overshoot, settle, and react naturally.

Frame rate (FPS)

The number of frames a screen draws each second; around 60 fps, motion looks smooth, and at lower rates it starts to look choppy.