Skip to content

Interactivity & Animations

This guide covers utilities that control how users interact with elements and how those elements animate, including cursors, transitions, and keyframe animations.

Interactivity

Cursor

Control the mouse cursor style when hovering over an element to provide visual feedback.

ClassCSSUse Case
is-clickablecursor: pointer;Indicates that an element is clickable, like a button or link.
is-not-clickablecursor: not-allowed;Indicates that an action is disabled or not permitted.

User Select

Control whether the user can select the text in an element.

ClassCSS
is-select-noneuser-select: none;
is-select-textuser-select: text;
is-select-alluser-select: all;
is-select-autouser-select: auto;

Resize

Control whether an element is resizable by the user.

ClassCSS
is-resize-noneresize: none;
is-resize-yresize: vertical;
is-resize-xresize: horizontal;

Transitions

Apply smooth transitions to property changes, often used with state prefixes like hover:.

ClassCSSUse Case
is-transitiontransition: all 0.2s ease-in-out;Default transition for most interactive elements.
is-transition-fasttransition: all 0.1s ease-in-out;For quick, subtle feedback.
is-transition-slowtransition: all 0.5s ease-in-out;For more pronounced, deliberate transitions.

Example:

html
<button class="is-transition hover:is-bg-blue-6">
  Hover me for a smooth color change.
</button>

Animations

Use keyframe animations to create complex, continuous, or triggered animations.

ClassDescription
is-anim-pulseFades in and out. Good for notification badges.
is-anim-blinkBlinks on and off.
is-anim-pingA pulse that scales outwards, like a radar ping.
is-anim-spinSpins continuously. Perfect for loading indicators.
is-anim-bounceBounces up and down.
is-anim-shakeShakes horizontally. Good for error states.
is-anim-wiggleWiggles from side to side.
is-anim-flipA 3D flip animation.
is-anim-popA quick, one-time pop effect.
is-anim-flickerFlickers like a neon sign.
is-anim-driftDrifts slowly and fades.

Example:

html
<!-- A spinning loading icon -->
<i class="if-spinner is-anim-spin"></i>

<!-- An input field that shakes on error -->
<input class="input if-warningtri is-anim-shake" />