-
Animatable
This Animatable function creates a float value holder that automatically animates its value when the value is changed via animateTo.
-
animate
Target based animation that animates from the given initialValue towards the targetValue, with an optional initialVelocity.
-
animateDecay
Decay animation that slows down from the given initialVelocity starting at initialValue until the velocity reaches 0.
-
animateTo
Target based animation that takes the value and velocity from the AnimationState as the starting condition, and animate to the targetValue, using the animationSpec.
-
AnimationState
Factory method for creating an AnimationState for Float initialValue.
-
AnimationVector
Factory method to create an AnimationVector1D
-
calculateTargetValue
Calculates the target value of a decay animation based on the initialValue and initialVelocity, and the typeConverter that converts the given type T to AnimationVector.
-
copy
Creates a new AnimationState from a given AnimationState.
-
createZeroVectorFrom
Creates an AnimationVector with all the values set to 0 using the provided TwoWayConverter and the value.
-
DecayAnimation
DecayAnimation is an animation that slows down from initialVelocity as time goes on.
-
exponentialDecay
Creates a decay animation spec where the friction/deceleration is always proportional to the velocity.
-
generateDecayAnimationSpec
Creates a DecayAnimationSpec from a FloatDecayAnimationSpec by applying the given FloatDecayAnimationSpec on every dimension of the AnimationVector that T converts to.
-
getVelocityFromNanos
Returns the velocity of the animation at the given play time.
-
infiniteRepeatable
Creates a InfiniteRepeatableSpec that plays a DurationBasedAnimationSpec (e.
-
keyframes
Creates a KeyframesSpec animation, initialized with init.
-
keyframesWithSpline
Creates a KeyframesWithSplineSpec animation, initialized with init.
-
repeatable
Creates a RepeatableSpec that plays a DurationBasedAnimationSpec (e.
-
snap
Creates a Snap animation for immediately switching the animating value to the end value.
-
spring
Creates a SpringSpec that uses the given spring constants (i.
-
TargetBasedAnimation
Creates a TargetBasedAnimation with the given start/end conditions of the animation, and the provided animationSpec.
-
tween
Creates a TweenSpec configured with the given duration, delay and easing curve.
-
TwoWayConverter
Factory method to create a TwoWayConverter that converts a type T from and to an AnimationVector type.
-
withInfiniteAnimationFrameMillis
Like withFrameMillis, but applies the InfiniteAnimationPolicy from the calling CoroutineContext if there is one.
-
withInfiniteAnimationFrameNanos
Like withFrameNanos, but applies the InfiniteAnimationPolicy from the calling CoroutineContext if there is one.
Compose Animation Core
Jetpack Compose API reference for animation-core.