Primitives / Motion

foldkit-primitives/motion

Where an animation is, as a number in the Model: a tween over a fixed time, a spring that settles, a mount transition that lets content leave before it is removed. The view decides what the number does to CSS; easing curves stay the application's job. (source)

NameFormModelMessagesArgs
Tweenbundle{ value, running }Started, Stopped, Ticked, Finished{ from, to, ms }
Springbundle{ value, velocity, running }Started, Stopped, Ticked, Finished{ from, to, stiffness, damping }
Presencebundle{ phase, generation }Show, Hide, Hidden{ durationMs }
MotionserviceMotion.live, .reduced, .full