The DOM element to fade out
Optionaloptions: FadeOptions = {}Fade options
Options for configuring fade effects.
FadeOptions
Optionalduration?: numberAnimation duration in milliseconds.
OptionalonComplete?: () => voidCallback function invoked when the animation completes (either naturally or when cancelled).
A cancellable promise that resolves when animation completes.
Call .cancel() to immediately hide the element.
Fades out an element by animating its opacity from 1 to 0.
Uses CSS transitions for smooth animation. The returned promise can be cancelled to immediately hide the element.