Transition Property

Set which properties have a transition effect.

Widely available

This feature is well established and works across many devices and browser versions.

Chrome
Edge
Firefox
Safari

Usage

Try hovering the div to see how long it takes for the color to change.

All

<div class="w-16 h-16 bg-indigo tp-a tdu-300 ttf-io h:t-s-90 h:bg-slate-7"></div>

Box Shadow

<div class="w-16 h-16 bc-silver-4 bw-1 bs-o-none tp-bs tdu-300 ttf-io h:bs-o-xl"></div>

Colors

<div class="w-16 h-16 bg-indigo tp-c tdu-300 ttf-io h:bg-slate-7"></div>

None

<div class="w-16 h-16 bg-indigo tp-none tdu-300 ttf-io h:t-s-90 h:bg-slate-7"></div>

Opacity

<div class="w-16 h-16 bg-indigo tp-o tdu-300 ttf-io h:o-50"></div>

Transform

<div class="w-16 h-16 bg-indigo tp-t tdu-300 ttf-io h:t-s-90"></div>

Responsiveness

Use breakpoint prefixes to target different screen sizes. Styles apply from the breakpoint & up.

Target viewport sizes with breakpoint prefixes.

sm:tp-*
Small640px
md:tp-*
Medium768px
lg:tp-*
Large1024px
xxl:tp-*
Extra Large1536px

Hover State

Apply styles conditionally on hover using the h: prefix.

Add the h: prefix to apply styles only when the user hovers over the element.

Syntax:h:tp-*