Widely available Supported across all major browsers. Safe to use in production.

Browser support

Feature Desktop Mobile
Chrome
Edge
Firefox
Safari
Chrome Android
Safari iOS
8
12
4
5.1
18
5
CSS type
steps.jump

`jump-` keywords for `steps()`

77
79
65
14
77
14
1+Supported (version) Not supported Has note Sub-feature descriptions sourced from MDN Web Docs (CC BY-SA 2.5)

Syntax

CSS
.sprite {
  animation: walk 1s steps(8) infinite;
}
.typewriter {
  animation: reveal 2s steps(20, end);
}

Live demo

Steps(4) stagemove

CSS Steps(4) stagemove demo.

PreviewFullscreen

Steps(8) splight style

CSS Steps(8) splight style demo.

PreviewFullscreen

Typewriter Effect

CSS Typewriter effect demo.

PreviewFullscreen

Use cases

  • Using steps() easing

    The steps() CSS function defines a transition that divides the input time into a specified number of intervals that are equal in length.

Cautions

  • May not be supported in older browsers.

Accessibility

  • Make sure visual changes are conveyed appropriately to assistive technology.