animateExit

View Source

Summary

Animates an element when it is removed from the DOM.

Signature

function animateExit<target extends EventTarget>(
  config: AnimationConfig,
): MixinDescriptor<target, [AnimationConfig], ElementProps>;

Params

config

Exit animation configuration.

Returns

A mixin descriptor for the target element.