/
githubmirror
/
servo
Обзор
Документация
Войти
/
githubmirror
/
servo
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
components/script_bindings/webidls/AnimationEffect.webidl
49 строк
2 KB
Simon Wülker
script: Implement `Animation.effect`, `AnimationEffect.getTiming()`, `AnimationEffect.getComputedTiming()` and `AnimationEffect.updateTiming()` (#46677)
23 июл 2026, 18:37
Не верифицирован
23 июл 2026, 18:37
e510bf1
Код
Авторство
О чём код?
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ // https://drafts.csswg.org/web-animations-1/#animationeffect [Exposed=Window, Pref="dom_web_animations_enabled"] interface AnimationEffect { EffectTiming getTiming(); ComputedEffectTiming getComputedTiming(); [Throws] undefined updateTiming(optional OptionalEffectTiming timing = {}); }; // https://drafts.csswg.org/web-animations-1/#the-effecttiming-dictionaries dictionary EffectTiming { double delay = 0; double endDelay = 0; FillMode fill = "auto"; double iterationStart = 0.0; unrestricted double iterations = 1.0; (unrestricted double or DOMString) duration = "auto"; PlaybackDirection direction = "normal"; DOMString easing = "linear"; }; dictionary OptionalEffectTiming { double delay; double endDelay; FillMode fill; double iterationStart; unrestricted double iterations; (unrestricted double or DOMString) duration; PlaybackDirection direction; DOMString easing; }; // https://drafts.csswg.org/web-animations-1/#the-fillmode-enumeration enum FillMode { "none", "forwards", "backwards", "both", "auto" }; // https://drafts.csswg.org/web-animations-1/#the-playbackdirection-enumeration enum PlaybackDirection { "normal", "reverse", "alternate", "alternate-reverse" }; // https://drafts.csswg.org/web-animations-1/#the-computedeffecttiming-dictionary dictionary ComputedEffectTiming : EffectTiming { unrestricted double endTime; unrestricted double activeDuration; double? localTime; double? progress; unrestricted double? currentIteration; };