Expand description
interface ScaleAnimationConfig {
backdropAnimatedStyle?: ModalAnimatedStyleFunction;
contentAnimatedStyle?: ModalAnimatedStyleFunction;
duration?: number;
scaleFactor?: number;
type: "scale";
}
Properties§
§
§
§
§
§
backdrop Animated Style?: ModalAnimatedStyleFunction
Optional custom worklet function for backdrop animation styles. If provided, merges with the default backdrop fade.
content Animated Style?: 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.
duration?: number
Duration of the animation in milliseconds.
scale Factor?: number
Initial scale factor for the modal (0-1).
type: "scale"
Configuration for scale animation.