blob: 955d834451da80ca542c02643311a3b5dc73343a [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,
sequence<KeyframeEffectReadOnly> effects,
(DocumentTimeline or ScrollTimeline) timeline,
SerializedScriptValue options),
RaisesException=Constructor,
RuntimeEnabled=AnimationWorklet
] interface WorkletAnimation {
readonly attribute AnimationPlayState playState;
void play();
void cancel();
};