Transition
object Transition
Functions
Link copied to clipboard
inline fun <S> Transition<S>.animateFloat3(noinline transitionSpec: @Composable Transition.Segment<S>.() -> FiniteAnimationSpec<Float3> = { spring() }, label: String = "Float3Animation", targetValueByState: @Composable (state: S) -> Float3): State<Float3>
Creates a Float3 animation as a part of the given Transition. This means the states of this animation will be managed by the Transition.
fun InfiniteTransition.animateFloat3(initialValue: Float3, targetValue: Float3, animationSpec: InfiniteRepeatableSpec<Float3>, label: String = "Float3Animation"): State<Float3>
Creates an animation of Float type that runs infinitely as a part of the given InfiniteTransition.
Link copied to clipboard
inline fun <S> Transition<S>.animatePosition(noinline transitionSpec: @Composable Transition.Segment<S>.() -> FiniteAnimationSpec<Position> = { spring() }, label: String = "PositionAnimation", targetValueByState: @Composable (state: S) -> Position): State<Position>
fun InfiniteTransition.animatePosition(initialValue: Position, targetValue: Position, animationSpec: InfiniteRepeatableSpec<Position>, label: String = "PositionAnimation"): State<Position>
Link copied to clipboard
inline fun <S> Transition<S>.animateQuaternion(noinline transitionSpec: @Composable Transition.Segment<S>.() -> FiniteAnimationSpec<Quaternion> = { spring() }, label: String = "QuaternionAnimation", targetValueByState: @Composable (state: S) -> Quaternion): State<Quaternion>
Creates a Quaternion animation as a part of the given Transition. This means the states of this animation will be managed by the Transition.
fun InfiniteTransition.animateQuaternion(initialValue: Quaternion, targetValue: Quaternion, animationSpec: InfiniteRepeatableSpec<Quaternion>, label: String = "Float3Animation"): State<Quaternion>
Creates an animation of Float type that runs infinitely as a part of the given InfiniteTransition.
Link copied to clipboard
inline fun <S> Transition<S>.animateRotation(noinline transitionSpec: @Composable Transition.Segment<S>.() -> FiniteAnimationSpec<Rotation> = { spring() }, label: String = "RotationAnimation", targetValueByState: @Composable (state: S) -> Rotation): State<Rotation>
fun InfiniteTransition.animateRotation(initialValue: Rotation, targetValue: Rotation, animationSpec: InfiniteRepeatableSpec<Rotation>, label: String = "RotationAnimation"): State<Rotation>
Link copied to clipboard
inline fun <S> Transition<S>.animateScale(noinline transitionSpec: @Composable Transition.Segment<S>.() -> FiniteAnimationSpec<Scale> = { spring() }, label: String = "ScaleAnimation", targetValueByState: @Composable (state: S) -> Scale): State<Scale>
fun InfiniteTransition.animateScale(initialValue: Scale, targetValue: Scale, animationSpec: InfiniteRepeatableSpec<Scale>, label: String = "ScaleAnimation"): State<Scale>