Object

AnimatedContentDefaults

Contains default values used throughout AnimatedContent.

Source set: Common
public object AnimatedContentDefaults

Contains default values used throughout AnimatedContent.

Properties

SizeAnimationSpec

Source set: Common
public val SizeAnimationSpec: FiniteAnimationSpec<IntSize> =
        spring(
            stiffness = Spring.StiffnessMediumLow,
            visibilityThreshold = IntSize.VisibilityThreshold,
        )

Default animation spec used for size animation in SizeTransform.

SizeTransform

Source set: Common
public val SizeTransform: SizeTransform = SizeTransform()

Default SizeTransform used in ContentTransform.

ContentTransform

Source set: Common
public val ContentTransform: ContentTransform =
        (fadeIn(animationSpec = tween(220, delayMillis = 90)) +
                scaleIn(initialScale = 0.92f, animationSpec = tween(220, delayMillis = 90)))
            .togetherWith(fadeOut(animationSpec = tween(90)))

Default ContentTransform used in AnimatedContent if none is specified.

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: