chromium/third_party/blink/renderer/core/animation/effect_timing.idl

// Copyright 2016 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// https://w3.org/TR/web-animations-1/#the-effecttiming-dictionaries

enum FillMode { "none", "forwards", "backwards", "both", "auto" };
enum PlaybackDirection { "normal", "reverse", "alternate", "alternate-reverse" };

dictionary EffectTiming {
    (double or CSSNumericValue)                           delay = 0;
    (double or CSSNumericValue)                           endDelay = 0;
    FillMode                                              fill = "auto";
    double                                                iterationStart = 0.0;
    unrestricted double                                   iterations = 1.0;
    (unrestricted double or CSSNumericValue or DOMString) duration = "auto";
    PlaybackDirection                                     direction = "normal";
    DOMString                                             easing = "linear";
};