SpatialHoverEffectRootScope
The root scope of spatialHoverEffect DSL, here can call animation
Functions
Link copied to clipboard
abstract fun animation(animation: SpatialHoverAnimation = tween(), block: SpatialHoverEffectScope.() -> Unit)
Specify the animation for sub-scope effects
Link copied to clipboard
fun SpatialHoverEffectRootScope.spring(dampingRatio: Float = HoverAnimationDefaults.DefaultDumpingRatio, stiffness: Float = HoverAnimationDefaults.DefaultStiffness, delayMillis: Int = 0): SpatialHoverAnimation
Creates Spring animation.
Link copied to clipboard
fun SpatialHoverEffectRootScope.tween(durationMillis: Int = AnimationConstants.DefaultDurationMillis, delayMillis: Int = 0, easing: Easing = FastOutSlowInEasing): SpatialHoverAnimation
fun SpatialHoverEffectRootScope.tween(durationMillis: Int = AnimationConstants.DefaultDurationMillis, delayMillis: Int = 0, bezier: CubicBezier): SpatialHoverAnimation
Creates Tween animation for spatial hover effect.