Customizing Animation
You can define animation timings and durations to precisely control the animation’s behavior.
Animation Timings
-
draggingAnimationTimings?: CommonAnimation | AnimationTimingPoints | null
Optional. Can be either:- A common preset:
ease,eas-in,ease-out,ease-in-out,spring - A
draggingAnimationTimingswhich is a cubic Bezier curve points expressed as an object such as{ p1x: 0.42, p1y: 0, p2x: 0.58, p2y: 1 }
- A common preset:
-
backdropAnimationTimings?: CommonAnimation | AnimationTimingPoints | null
Optional. Can be either:- A common preset:
ease,eas-in,ease-out,ease-in-out,spring - A
backdropAnimationTimingswhich is a cubic Bezier curve points expressed as an object such as{ p1x: 0.42, p1y: 0, p2x: 0.58, p2y: 1 }
- A common preset:
Animation Duration
-
draggingAnimationDuration?: number
Optional. Duration of the dragging animation in milliseconds. -
backdropAnimationDuration?: number
Optional. Duration of the backdrop animation in milliseconds.
Advanced Backdrop Animation
backdropAnimStyleCreators?: StyleCreators
Optional. Style creators used for animating the backdrop. Each entry maps a CSS property to a function(percent) => string.