Scoop API

scoop:scoop.surface:0.1.0

Animatable

class Animatable

source · line 16
public
public class Animatable<T> internal constructor(
    private val timeline: AnimationTimeline,
    initial: T,
    private val converter: AnimationConverter<T>,
    private val group: AnimationGroup?
) : Closeable, AnimationSource

Persistent value state. Active runs are owned and sampled by one timeline.

function reverse

source · line 175
public
public fun reverse(): Unit

Starts a new full segment toward the previous segment's origin.

function animateTo

source · line 85
public
public fun animateTo(target: T, spec: AnimationSpec = AnimationSpec.Tween(Duration.milliseconds(300L)), repeat: Repeat? = None, initialVelocity: AnimationVector? = None, onFinished: ((T) -> Unit)? = None): Unit

Retargets from the current time and retains the current vector velocity for a spring.