• Defines an Element.animate animation from provided keyframes and options.

    Parameters

    • Optionalopts: {
          debounce?: number;
          duration?: number;
          event?: string;
          keyframes: object | any[];
          options?: object;
      }

      Optional parameters.

      • Optionaldebounce?: number

        Add a debounce to incoming events in milliseconds.

      • Optionalduration?: number

        Duration in milliseconds.

      • Optionalevent?: string

        DOM event to bind element to respond with the ripple effect.

      • keyframes: object | any[]

        An array of keyframe objects or a keyframe object whose properties are arrays of values to iterate over.

      • Optionaloptions?: object

        An object containing one or more timing properties. When defined it is used instead of duration.

    Returns Action

    Actual action.