blob: 301e7520376efe0b5da4a7484dbceaa2b07559cf [file] [log] [blame]
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// https://wicg.github.io/animation-worklet/#worklet-animation-desc
// TODO(smcgruer): Update constructor to match latest spec.
[
Constructor(DOMString animatorName,
(AnimationEffectReadOnly or sequence<AnimationEffectReadOnly>) effects,
(DocumentTimeline or ScrollTimeline) timeline,
SerializedScriptValue options),
RaisesException=Constructor,
RuntimeEnabled=AnimationWorklet
] interface WorkletAnimation {
readonly attribute AnimationPlayState playState;
void play();
void cancel();
};