• Converts a Svelte transition to an animation. Both transitions & animations use the same CSS / styles solution and resulting data so wrap the transition function with the signature of an animation.

    Parameters

    Returns (node: Element, data: { from: DOMRect; to: DOMRect }, ...rest: any) => any

    • Transition function converted to an animation.