Package-level declarations
Types
The receiver of an AnimatedContent's content.
The receiver of an AnimatedContent's transitionSpec: a segment of the container's transition, plus slides into and out of the container's edges, which need the container's size.
The receiver of an animated container's content.
How one content of an AnimatedContent replaces another: the target content's enter, the initial content's exit, their paint order, and how the container's size animates.
The state of an animated container's content between hidden and shown.
How content appears: a fade, a slide, a scale, an expansion of its space, a scrim, or a combination built with plus.
How content disappears: a fade, a slide, a scale, a shrink of its space, a scrim, or a combination built with plus.
Marks an experimental animation API. A later release may change its signature or behavior, or remove it.
How the two contents of an AnimatedContent are transformed during a deferred phase: the content of the announced state and the content on screen, each driven by its own MutableTransform.
How the content of an animated container is transformed during a deferred phase, which a DeferredTransitionState begins with defer and ends with animateTo.
How an AnimatedContent container's size animates from the initial content's size to the target content's size.
The transformations a MutableTransform block applies to the content during a deferred phase.
Properties
Animates a Color as a four-dimensional vector of its alpha and its three Oklab coordinates.
Animates a Dimension as a two-dimensional vector of its width and height.
Animates a Point as a two-dimensional vector of its x and y coordinates.
Functions
Holds a color that animates through Oklab, the space ColorToVector describes.
Animates a color as part of this Transition, which owns the animation's lifetime.
Animates a color from initialValue to targetValue and repeats for as long as this InfiniteTransition stays in the composition, restarting or reversing on each iteration according to the RepeatMode of animationSpec.
Animates towards targetValue whenever it changes. A running animation continues from its current value towards the new target instead of restarting.
Animates this component's size when the measured size of its content changes.
A container that animates between the contents of its states. When targetState changes, the new content animates in, the old content animates out, and the container's size animates between them.
A container that animates between the contents of this transition's states. Containers built on one transition animate together.
A container inside a Foundation layout that animates between the contents of its states.
A container that animates content in and out as visibleState's target state changes. MutableTransitionState.isIdle tells whether every animation has finished, and MutableTransitionState.currentState where the running one started.
fun <T> Transition<T>.AnimatedVisibility(visible: (T) -> Boolean, modifier: SwingModifier = SwingModifier, enter: EnterTransition = fadeIn() + expandIn(), exit: ExitTransition = shrinkOut() + fadeOut(), content: @Composable AnimatedVisibilityScope.() -> Unit)
A container that animates content in and out as this transition's state starts and stops satisfying visible. Containers built on one transition animate together.
A container that animates content in and out inside a Column, expanding and shrinking vertically only, so the column's width does not change.
The MutableTransitionState counterpart of the Column overload.
The MutableTransitionState counterpart of the Boolean overload inside a Foundation layout.
A container that animates content in and out inside a Row, expanding and shrinking horizontally only, so the row's height does not change.
The MutableTransitionState counterpart of the Row overload.
A container that fades between the contents of its states. When targetState changes, the new content fades in and the old content fades out, both under animationSpec.
A container that fades between the contents of this transition's states. Containers built on one transition animate together.
A container that animates between the contents of this deferred transition's states. During a deferred phase, both contents are transformed as mutableTransformSpec declares.
fun <T> DeferredTransition<T>.DeferredAnimatedVisibility(visible: (T) -> Boolean, modifier: SwingModifier = SwingModifier, enter: EnterTransition = fadeIn() + expandIn(), exit: ExitTransition = shrinkOut() + fadeOut(), mutableTransform: MutableTransform? = null, content: @Composable AnimatedVisibilityScope.() -> Unit)
A container that animates content in and out as this deferred transition's state starts and stops satisfying visible. During a deferred phase, mutableTransform transforms the content.
The size change below which a Dimension animation is considered finished: one unit on each axis.
Expands the width the content is given, from initialWidth to the content's full width, keeping the full height. The content is centered vertically.
Expands the space the content is given, from initialSize to the content's full size.
Expands the height the content is given, from initialHeight to the content's full height, keeping the full width. The content is centered horizontally.
Fades the content in, from initialAlpha to full opacity.
Fades the content out, from full opacity to targetAlpha.
A MutableContentTransform with block applied to it.
The offset change below which a Point animation is considered finished: one unit on each axis.
Scales the content in, from initialScale to its own size, around transformOrigin.
Scales the content out, from its own size to targetScale, around transformOrigin.
Shrinks the width the content is given, from the content's full width to targetWidth, keeping the full height. The content is centered vertically.
Shrinks the space the content is given, from the content's full size to targetSize.
Shrinks the height the content is given, from the content's full height to targetHeight, keeping the full width. The content is centered horizontally.
Builds a SizeTransform with the provided clip and sizeAnimationSpec.
Slides the content in, from initialOffset to its place in the container.
Slides the content in horizontally, from initialOffsetX to its place in the container.
Slides the content in vertically, from initialOffsetY to its place in the container.
Slides the content out, from its place in the container to targetOffset.
Slides the content out horizontally, from its place in the container to targetOffsetX.
Slides the content out vertically, from its place in the container to targetOffsetY.
Combines this enter transition with exit into a ContentTransform, as an AnimatedContent transitionSpec returns.
Unveils the content as it enters: a scrim of initialColor over it animates to fully transparent.
Veils the content as it leaves: a scrim over it animates from fully transparent to targetColor.