TransitionTransition Timing Function

Transition Timing Function

Control the speed curve of 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.

Linear

<div class="bg-indigo d-16 tp-a tdu-500 ttf-l h:t-s-80"></div>

Ease-in

<div class="bg-indigo d-16 tp-a tdu-500 ttf-i h:t-s-80"></div>

Ease-out

<div class="bg-indigo d-16 tp-a tdu-500 ttf-o h:t-s-80"></div>

Ease-in-out

<div class="bg-indigo d-16 tp-a tdu-500 ttf-io h:t-s-80"></div>

Responsive Design

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

Target viewport sizes with breakpoint prefixes.

sm:ttf-[value]
Small640px
md:ttf-[value]
Medium768px
lg:ttf-[value]
Large1024px
xxl:ttf-[value]
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:ttf-[value]