Optional afterOptional animationThe class to add to the animated element.
Optional animationA function called when animation ends.
Optional animationA function called when animation starts (for example to add a zoom effect on a card during a reveal animation).
The target to attach the element to.
Optional durationThe animation duration, in ms (default: 500).
The element to animate.
Optional finalThe transform property to set after the animation.
Optional gameThe game class. Used to know if the game is in instantaneous mode (replay) becausewe don't want animations in this case.
Optional rotationIf the card is rotated at the start of animation.
Optional scaleThe cumulated scale of the element to animate (default: 1).
Optional transitionThe animation CSS timing function, 'linear', 'ease-in-out' (default: linear).
Optional zThe zIndex to apply during animation (default: 10).
Generated using TypeDoc
A function called after attaching the element.