Function flip
- flip(
node: Element,
__namedParameters: { from: DOMRect; to: DOMRect },
params?: FlipParams,
): AnimationConfig Parameters
- node: Element
- __namedParameters: { from: DOMRect; to: DOMRect }
Optional
params: FlipParams
Returns AnimationConfig
The flip function calculates the start and end position of an element and animates between them, translating the x and y values.
flip
stands for First, Last, Invert, Play.https://svelte.dev/docs/svelte-animate#flip