Interface FadeAnimationConfig

Source
Expand description

Configuration for fade animation.

interface FadeAnimationConfig {
    backdropAnimatedStyle?: ModalAnimatedStyleFunction;
    contentAnimatedStyle?: ModalAnimatedStyleFunction;
    duration?: number;
    type: "fade";
}

Properties§

Source§

backdropAnimatedStyle?: ModalAnimatedStyleFunction

Optional custom worklet function for backdrop animation styles. If provided, merges with the default backdrop fade.

Source§

contentAnimatedStyle?: ModalAnimatedStyleFunction

Optional custom worklet function for content animation styles. If provided, merges with the default animation for this type. Receives progress (0-1), offsetX, offsetY, and screen dimensions.

Source§

duration?: number

Duration of the animation in milliseconds.

default
300
Source§

type: "fade"