KeyframeEffect
package js.html
extends AnimationEffect
Available on js
The KeyframeEffect
interface of the Web Animations API lets us create sets of animatable properties and values, called keyframes. These can then be played using the Animation()
constructor.
Documentation KeyframeEffect by Mozilla Contributors, licensed under CC-BY-SA 2.5.
See also:
Constructor
new(source:KeyframeEffect)
new(target:EitherType<Element, CSSPseudoElement>, keyframes:Dynamic, ?options:EitherType<Float, KeyframeEffectOptions>)
Throws:
null |
DOMError |
---|
Variables
target:EitherType<Element, CSSPseudoElement>
Gets and sets the element or pseudo-element being animated by this object. This may be null
for animations that do not target a specific element.
Methods
getKeyframes():Array<Dynamic>
Returns the computed keyframes that make up this effect along with their computed keyframe offsets.
Throws:
null |
DOMError |
---|
setKeyframes(keyframes:Dynamic):Void
Replaces the set of keyframes that make up this effect.
Throws:
null |
DOMError |
---|
© 2005–2020 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/js/html/KeyframeEffect.html