CSS

CSS Intro

CSS Intro Quiz

CSS Intro Exercise

CSS Basic

CSS Basic Quiz

CSS Basic Exercise

CSS Advance

CSS Advance Quiz

CSS Advance Exercise

CSS3

CSS3 Quiz

CSS3 Exercise

CSS Properties

CSS Functions

CSS Selectors

CSS animation direction Property

CSS animation-direction Property

 

 

The animation-direction property is used to define whether an animation should be played forwards, backwards, or in alternate cycles.

 

Syntax:-

 

Its syntax is:- animation-direction: normal | reverse | alternate | alternate-reverse | initial | inherit;

 

Further Explanation:-

 

Value Description
normal Default value. The animation is played as normal  i.e, forwards
reverse The animation is played in reverse direction i.e, backwards
alternate The animation is played forwards first, then backwards
alternate-reverse The animation is played backwards first, then forwards
initial Sets this property to its default value.
inherit Inherits this property from its parent element.

Code Explanation

All Tutorials related to CSS Properties

All Sections related to CSS