Transitions

Transition Property

Utilities for sets the css properties affected by transition animations.


Variant

Active Checked Child-Selection Dark Mode Disabled Expand First-Last-Selection First-Letter Focus Focus-Visible Focus-Within Fullscreen Group-Focus Group-Hover Hover Landscape Light Mode Portrait Reduce-Motion Responsive Selection-Hover Visited

API

classcss
transitiontransition-property: all
transition-nonetransition-property: none
transition-colorstransition-property: background-color, border-color, color, fill, stroke
transition-opacitytransition-property: opacity
transition-shadowtransition-property: box-shadow
transition-transformtransition-property: transform

Usage

Set basic transition with Duration and Timing, apply with pseudo class variants hover, focus, active.

An example of transitioning an element with Border Width and Box Shadow utilities.

Hover
<div class="transition duration-300 ease-in-out border-4 border-tint-granite-2 (hover)border-tint-granite-4 (hover)shadow-lg ... width-32 height-24">
...
</div>
HTML
.dummy {
@extend
.transition,
.duration-300,
.ease-in-out,
.border-4,
.border-tint-granite-2,
.(hover)border-tint-granite-4,
.(hover)shadow-lg,
.width-32,
.height-24;
}
SCSS