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.

constructor

Summary

Creates a new KeyframeEffect object for the given set of keyframes.

Method of apis/web_animations/KeyframeEffectapis/web_animations/KeyframeEffect

Syntax

var  = .constructor(frames, KeyframeEffectOptions, options);

Parameters

frames, KeyframeEffectOptions

Data-type
Object

A Keyframe object or sequence of Keyframe objects used for calculating animation values for this animation effect. The constraints on this parameter and its processing are identical to those for setFrames.

options

Data-type
String

(Optional)

A KeyframeEffectOptions dictionary defining other aspects of the animation effect’s behavior. If this parameter is not provided, the default values of the dictionary are used.

Return Value

Returns an object of type