interpolation
Calculating in-between values from a start value, an end value and progress, such as halfway between 0 and 20 being 10.
In more detail
Colours, lengths and transforms can all be interpolated. For each frame the browser computes start + (end - start) x progress, after applying any easing curve to the progress.
Related terms
- keyframe — One snapshot of styles at a point in an animation, such as fully transparent at the start and fully visible at the end.
- CSS animation — Changing an element's styles smoothly over time using @keyframes and the animation property, without JavaScript.
Taught in
- Modern CSS Animations, Transitions And View Transitions API — Frontend Architecture & Web Platform