@keyframes
Widely availableSince 201597% of users
Defines the steps of a CSS animation. You specify exactly which styles should change at specific points (0% to 100%) during the animation sequence.
What's modern
From web-features, MDN's browser data and our snippets, checked dailyClassic, with newer partsIt has worked everywhere since September 2015, and it keeps getting newer values.
Newer parts of @keyframes
Ignore !important declarationsBaseline Jan 2020, Widely Jul 2022
See how modern your own CSS is.Check your CSS →
Quick example
@keyframes fadeIn {
from { opacity: 0; transform: translateY(10px); }
to { opacity: 1; transform: translateY(0); }
}
.fade-in-element {
animation: fadeIn 0.5s ease-out forwards;
}@keyframes browser support
BaselineWidely availableThis feature is well established and works across many devices and browser versions. It has been available across browsers since 2015.Safe to use without fallbacks.
Usage97%of people can use this3% use a browser without it.
Browsers
43+
16+
9+
12+Mobile
43+Android
16+Android
9+iOS