Hierarchy

Properties

animationClass?: string

The class to add to the animated element.

animationEnd?: ((animation) => any)

Type declaration

animationStart?: ((animation) => any)

Type declaration

    • (animation): any
    • A function called when animation starts (for example to add a zoom effect on a card during a reveal animation).

      Parameters

      Returns any

duration?: number

The animation duration, in ms (default: 500).

element?: HTMLElement

The element to animate.

game?: Game

The game class. Used to know if the game is in instantaneous mode (replay) becausewe don't want animations in this case.

scale?: number

The cumulated scale of the element to animate (default: 1).

transitionTimingFunction?: string

The animation CSS timing function, 'linear', 'ease-in-out' (default: linear).

Generated using TypeDoc