🌈 Create new beautiful Compose Gradients with our new wesite ->
Class

MutableContentTransform

An object that allows manual manipulation of both entering and exiting content during the deferred phase (initiated by DeferredTransitionState.defer) of an AnimatedContent transition.

Source set: Common
public class MutableContentTransform internal constructor(
    initialVeilMatchParentSize: Boolean,
    targetVeilMatchParentSize: Boolean,
    initialOffsetVelocityProvider: (() -> Offset)?,
    targetOffsetVelocityProvider: (() -> Offset)?,
)

An object that allows manual manipulation of both entering and exiting content during the deferred phase (initiated by DeferredTransitionState.defer) of an AnimatedContent transition.

Use initialContentTransform to define transformations for the exiting (initial) content and targetContentTransform for the entering (target) content.

Functions

initialContentTransform

Source set: Common
public fun initialContentTransform(block: TransformScope.(fullSize: IntSize) -> Unit)

Define the manual transformation to apply to the exiting content during the deferred phase.

Parameters

block A lambda that applies transformations to the provided TransformScope.

targetContentTransform

Source set: Common
public fun targetContentTransform(block: TransformScope.(fullSize: IntSize) -> Unit)

Define the manual transformation to apply to the entering content during the deferred phase.

Parameters

block A lambda that applies transformations to the provided TransformScope.

Content updated: