API reference up.motion
module

Features to animate fragment updates.

A transition morphs an old element into its new version. Set an [up-transition] attribute on a link or form, or pass a { transition } option to up.render(). An animation shows or hides a single element without a counterpart, for example when an overlay opens with an [up-animation] attribute, or when up.destroy() removes a fragment.

Unpoly ships with predefined transitions and predefined animations. Define your own with up.transition() and up.animation(). To play an effect outside a render pass, call up.animate() or up.morph() directly.


Features