CSS Animation Related Properties

Definition and Usage

Some CSS properties can be used for animation, which means they can be used in transitions and other effects.

Properties that can be animated can gradually change from one value to another, such as size, numbers, percentages, and colors.

Browser Support

The numbers in the table indicate the first browser version that fully supports CSS animations.

The numbers after -webkit-, -moz-, or -o- indicate the first version of the prefix used.

43.0
4.0 -webkit-
10.0 16.0
5.0 -moz-
9.0
4.0 -webkit-
30.0
15.0 -webkit-
12.0 -o-

Example

Set an animation to change the background color from red to blue:

@keyframes mymove {
  from {background-color: red;}
  to {background-color: blue;}

Try It Yourself

Animation-related properties

The following table lists the properties related to animations in CSS:

properties TIY
background Try It
background-color Try It
background-position Try It
background-size Try It
border Try It
border-bottom Try It
border-bottom-color Try It
border-bottom-left-radius Try It
border-bottom-right-radius Try It
border-bottom-width Try It
border-color Try It
border-left Try It
border-left-color Try It
border-left-width Try It
border-right Try It
border-right-color Try It
border-right-width Try It
border-spacing Try It
border-top Try It
border-top-color Try It
border-top-left-radius Try It
border-top-right-radius Try It
border-top-width Try It
bottom Try It
box-shadow Try It
clip Try It
color Try It
column-count Try It
column-gap Try It
column-rule Try It
column-rule-color Try It
column-rule-width Try It
column-width Try It
columns Try It
filter Try It
flex Try It
flex-basis Try It
flex-grow Try It
flex-shrink Try It
font Try It
font-size Try It
font-size-adjust
font-stretch
font-weight Try It
grid Try It
grid-area Try It
grid-auto-columns Try It
grid-auto-flow Try It
grid-auto-rows Try It
grid-column Try It
grid-column-end Try It
grid-column-gap Try It
grid-column-start Try It
grid-gap Try It
grid-row Try It
grid-row-end Try It
grid-row-gap Try It
grid-row-start Try It
grid-template Try It
grid-template-areas Try It
grid-template-columns Try It
grid-template-rows Try It
height Try It
left Try It
letter-spacing Try It
line-height Try It
margin Try It
margin-bottom Try It
margin-left Try It
margin-right Try It
margin-top Try It
max-height Try It
max-width Try It
min-height Try It
min-width Try It
object-position Try It
opacity Try It
order Try It
outline Try It
outline-color Try It
outline-offset Try It
outline-width Try It
padding Try It
padding-bottom Try It
padding-left Try It
padding-right Try It
padding-top Try It
perspective Try It
perspective-origin Try It
right Try It
text-decoration-color Try It
text-indent Try It
text-shadow Try It
top Try It
transform Try It
transform-origin Try It
vertical-align Try It
visibility
width Try It
word-spacing Try It
z-index Try It