Edit this page

up.fragment .up-destroying
HTML selector

Elements are assigned the .up-destroying class before they are destroyed or while they are being removed by a transition.

If the removal is animated, the class is assigned before the animation starts.

Destroying elements are ignored

Elements that are being destroyed (but still animating) are ignored by all functions for fragment lookup:

Note that the low-level DOM helpers in up.element will not ignore elements that are being destroyed.

Accessibility

While an element's destruction is animating, the element is also assigned an [aria-hidden] attribute. This hides the element from the browser's accessibility API.