This page is Almost Ready

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

duration

Summary

See the duration member of the AnimationTimingReadOnly interface.

Real numbers less than zero, NaN values, and strings other than the lowercase value auto are treated the same as auto for the purpose of timing model calculations.

Property of apis/web animations/AnimationTimingPropertiesapis/web animations/AnimationTimingProperties

Syntax

var result = element.duration;
element.duration = value;