HTML Style Animation Duration Property | Style Animation Duration Tutorial By WDH

HTML Style Animation Duration Property


The animationDuration property gets and sets how many seconds or milliseconds an animation takes to complete one cycle.


Syntax

Return the animationDuration property:

var v = object.style.animationDuration;

Set the animationDuration property:

object.style.animationDuration='time|initial|inherit'

Property Values

time

set the time span in seconds or milliseconds for one animation cycle. Default value is 0, meaning there will be no animation