Skip to content

CSS: transition ​

.instui-transition.-transition-fade-entering — Animation state classes for the Transition component — .instui-transition and state classes (-transition-fade-entering, -transition-scale-exited, etc.) — usable bare or chained onto any component.

Source: transition.css

Usage ​

css
@import "@pantoken/components/utilities.css";

Examples ​

Modifiers ​

ModifierDescription
.-transition-*Transition type/state class toggled by runtime (fade|scale|slide-* + entering|entered|exiting|exited).
.-transition-fade-entered—
.-transition-fade-entering—
.-transition-fade-exited—
.-transition-fade-exiting—
.-transition-scale-entered—
.-transition-scale-entering—
.-transition-scale-exited—
.-transition-scale-exiting—
.-transition-slide-down-entered—
.-transition-slide-down-entering—
.-transition-slide-down-exited—
.-transition-slide-down-exiting—
.-transition-slide-left-entered—
.-transition-slide-left-entering—
.-transition-slide-left-exited—
.-transition-slide-left-exiting—
.-transition-slide-right-entered—
.-transition-slide-right-entering—
.-transition-slide-right-exited—
.-transition-slide-right-exiting—
.-transition-slide-up-entered—
.-transition-slide-up-entering—
.-transition-slide-up-exited—
.-transition-slide-up-exiting—

Custom properties ​

PropertyTypeDefaultDescription
--duration<time>300msAnimation duration (default 300ms); override to speed up or slow down every transition state.
--timing*ease-in-outAnimation timing function (default ease-in-out).

Conditions ​

TypeQueryDescription
media(prefers-reduced-motion: no-preference)—

Accessibility ​

The classes only animate, so provide a prefers-reduced-motion alternative for large movement and don't convey essential state through the transition alone.

ConditionsRebrand (light)Rebrand (dark)CanvasCanvas High Contrast
reflow-at-320pxWCAG 2.2 1.4.10PassPassPassPass
text-spacing-no-clippingWCAG 2.2 1.4.12PassPassPassPass
Screen reader (simulated)Rebrand (light)Rebrand (dark)CanvasCanvas High Contrast
AnnouncementsPassPassPassPass

These automated results do not establish that the page meets WCAG; manual review is still needed.