Optional animationOptional 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).
Optional durationThe animation duration, in ms (default: 500).
The element to animate.
Optional finalThe transform property to set after the animation.
Optional fromA delta coordinates (object with x and y properties).
Optional fromThe element to move the card from.
Optional fromAn initial Rect position. Can be the moved object BoundingClientRect itself, before being attached.
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
The class to add to the animated element.