2018-09-13 23:04:55 +03:00
|
|
|
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2014-07-16 04:02:31 +04:00
|
|
|
/* 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 http://mozilla.org/MPL/2.0/.
|
|
|
|
*
|
|
|
|
* The origin of this IDL file is
|
|
|
|
* http://dev.w3.org/fxtf/web-animations/#the-animatable-interface
|
|
|
|
*
|
|
|
|
* Copyright © 2014 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C
|
|
|
|
* liability, trademark and document use rules apply.
|
|
|
|
*/
|
|
|
|
|
2016-01-29 04:37:52 +03:00
|
|
|
dictionary KeyframeAnimationOptions : KeyframeEffectOptions {
|
|
|
|
DOMString id = "";
|
|
|
|
};
|
|
|
|
|
2019-05-22 08:40:36 +03:00
|
|
|
dictionary GetAnimationsOptions {
|
2016-03-22 03:33:02 +03:00
|
|
|
boolean subtree = false;
|
|
|
|
};
|
|
|
|
|
2019-09-24 18:22:26 +03:00
|
|
|
interface mixin Animatable {
|
2018-07-12 09:56:05 +03:00
|
|
|
[Throws]
|
2016-05-13 03:40:52 +03:00
|
|
|
Animation animate(object? keyframes,
|
2019-07-03 10:52:35 +03:00
|
|
|
optional UnrestrictedDoubleOrKeyframeAnimationOptions options = {});
|
2019-01-02 16:05:23 +03:00
|
|
|
[Func="Document::IsWebAnimationsGetAnimationsEnabled"]
|
2019-07-03 10:52:35 +03:00
|
|
|
sequence<Animation> getAnimations(optional GetAnimationsOptions options = {});
|
2014-07-16 04:02:31 +04:00
|
|
|
};
|