Thread
#compose
    Jason Ankers

    Jason Ankers

    1 year ago
    Is it possible to animate decay to a target value? Trying to implement lazy(column/row) snapping
    Doris Liu

    Doris Liu

    1 year ago
    Wouldn't that be just
    animateTo
    ? You can specify an initial velocity, along with the target, for animateTo
    Jason Ankers

    Jason Ankers

    1 year ago
    Where would the decay come from? It looks like you cant pass a
    DecayAnimationSpec<T>
    to
    animateTo
    . I see
    animateDecay
    but that doesn’t take a target value
    Doris Liu

    Doris Liu

    1 year ago
    You would be using the decay as a part of the spring physics (also known as damping). The spring energy decays over time, that's how it comes to a stop.
    Jason Ankers

    Jason Ankers

    1 year ago
    Oh I see, I’ll play around with SpringSpec then, thanks!