Interface

BoundsTransform

BoundsTransform defines the animation spec used to animate from initial bounds to the target bounds.

Source set: Common
public interface BoundsTransform

BoundsTransform defines the animation spec used to animate from initial bounds to the target bounds.

Functions

createAnimationSpec

Source set: Common
public fun createAnimationSpec(
        initialBounds: Rect,
        targetBounds: Rect,
    ): FiniteAnimationSpec<Rect>

Returns a FiniteAnimationSpec for animating the bounds from initialBounds to targetBounds.

Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: