Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Keyframes

Create a Keyframes declaration.

Hierarchy

  • Keyframes

Index

Constructors

Properties

Methods

Constructors

constructor

  • new Keyframes(name: string, keyframesDecl: object): Keyframes
  • Parameters

    • name: string

      Name to be used in animation-name.

    • keyframesDecl: object

      @keyframes body. e.g. { from: { top: 0 }, to: { top: 10px } }

    Returns Keyframes

Properties

name

name: string

Name to be used in animation-name.

type

type: "@keyframes"

The key for cache to use.

Methods

cssText

  • cssText(): string
  • Get the CSS string to insert into style element.

    Returns string

Generated using TypeDoc