Hierarchy

Properties

afterAttach?: ((element, attachElement) => void)

Type declaration

    • (element, attachElement): void
    • A function called after attaching the element.

      Parameters

      • element: HTMLElement
      • attachElement: HTMLElement

      Returns void

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

attachElement: HTMLElement

The target to attach the element to.

duration?: number

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

element: HTMLElement

The element to animate.

finalTransform?: string

The transform property to set after the animation.

game?: Game

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

rotationDelta?: number

If the card is rotated at the start of animation.

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).

zIndex?: number

The zIndex to apply during animation (default: 10).

Generated using TypeDoc