Skip to content

Transition Duration

Utilities for controlling the duration of CSS transitions.
ClassProperties
duration-0 transition-duration: 0s;
duration-75 transition-duration: 75ms;
duration-100 transition-duration: 100ms;
duration-150 transition-duration: 150ms;
duration-200 transition-duration: 200ms;
duration-250 transition-duration: 250ms;
duration-300 transition-duration: 300ms;
duration-500 transition-duration: 500ms;
duration-700 transition-duration: 700ms;
duration-1000 transition-duration: 1000ms;
duration transition-duration: 150ms;

Changing transition duration

Use the duration-* utilities to control an element’s transition-duration.

Hover each button to see the expected behaviour

html
<button class="transition duration-150 ease-in-out ...">Button A</button>
<button class="transition duration-300 ease-in-out ...">Button B</button>
<button class="transition duration-700 ease-in-out ...">Button C</button>

Released under the MIT License.