Make an empty space grow or shrink to replace where a moved object was or will be. Ignore the animation settings, prefer addAnimatedSpaceIfNecessary.
OptionalinsertBefore: ElementMake an empty space grow or shrink to replace where a moved object was or will be. Only if the animation settings says so.
OptionalinsertBefore: ElementMake an empty space grow or shrink to replace where a moved object was or will be. Ignore the animation settings, prefer addAnimatedSpaceIfNecessary.
OptionalinsertBefore: ElementAdd a wrapper layer. Needed before doing sub-animations without messing to the animation on the main wrapper
Animate an object on the animation surface, from a matrix to a matrix.
Attach an element to a new parent.
OptionalinsertBefore: ElementCreates a bump animation, that simulates a physical item being lifted from one place to another.
Creates a fade animation, 'in' for appearing and 'out' for disappearing.
Create a temp div of the same size as the element.
End a RunningAnimation, by attaching the element to its final destination and cleaning the temporary elements.
returns the getBoundingClientRect of an element with zoom awareness, independant to browser native handling of CSS zoom property.
Get translation, rotation & scale matrix for an element, relative to the top of the page.
Optionalparams: PositionSettingsGet rotation & scale matrix for an element, relative to the top of the page.
ProtectedpausePause the growing placeholder animations and consider they are at full duration (taking final space). Allow to get the real position of the moved element including the shift from animations started just before this one.
Remove an element from the DOM.
Remove the rotation part of a matrix.
Remove the scale part of a matrix.
Remove the translation part of a matrix.
ProtectedrestoreRestore the growing placeholder animations to before the pause.
Prepare an attach animation. Wraps the object to the animation surface and return a RunningAnimation.
OptionalinsertBefore: HTMLElementOptionalfromPlaceholder: HTMLElementOptionaltoPlaceholder: HTMLElementPrepare a slide in animation. Wraps the object to the animation surface and return a RunningAnimation.
OptionalfromElement: HTMLElementPrepare a slide out animation. Wraps the object to the animation surface and return a RunningAnimation.
OptionaltoElement: HTMLElementReturn a Promise that resolves at the end of a given number of ms.
the time to wait, in milliseconds
a promise when the timer ends
Add a wrapper around an element, and add the elment on that wrapper. Needed before doing animations on the surface
OptionalpositionSettings: PositionSettings
Base functions to help create animations.