bugl
bugl
HomeLearnPatternsSearch
HomeLearnPatternsSearch

Loading lesson path

Learn/CSS/Reference and Practice
CSS•Reference and Practice

CSS Animatable

Concept visual

CSS Animatable

Pointer walk
two pointers
leftright102132436485116
left=0
right=6
1
3

Start at both ends

Definition and Usage

Some CSS properties are animatable, meaning that they can be used in animations and transitions. Animatable properties can change gradually from one value to another, like size, numbers, percentage and color.

Browser Support

The animation properties are supported in all modern browsers. The numbers in the table specifies the first browser version that fully support CSS animations. 43 10 16

30

Example

Formula

Animate the background - color from red to blue:

@keyframes mymove

{
from {background-color: red;}
to {background-color: blue;}
}

Animatable Properties

These properties are animatable in CSS:

Property aspect-ratio

Try it background

Try it background-color

Try it background-position

Try it background-position-x

Try it background-position-y

Try it background-size

Try it block-size

Try it border

Try it border-bottom

Try it border-bottom-color

Try it border-end-end-radius

Try it border-end-start-radius

Try it border-block

Try it border-block-color

Try it border-block-end-color

Try it border-block-end-width

Try it border-block-start-color

Try it border-block-start-width

Try it border-block-width

Previous

CSS Study Plan

Next

CSS Interview Preparation