• 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, data, ...rest) => any)

    • Transition function converted to an animation.