Transition Delayv1.3.0+

Utilities for controlling the delay of CSS transitions.

@include('_partials.class-table', [ 'scroll' => true, 'rows' => $page->config['theme']['transitionDelay']->map(function ($value, $name) { $class = $name = ".delay-{$name}"; $code = "transition-delay: {$value};"; return [$class, $code]; }) ])

Usage

Use the delay-{amount} utilities to control an element's transition-delay.

@component('_partials.code-sample', ['class' => 'bg-white flex justify-around items-center py-12'])

@slot('code')@endslot @endcomponent

Responsive

To control an element's transition-delay at a specific breakpoint, add a {screen}: prefix to any existing transition-delay utility. For example, use md:delay-500 to apply the delay-500 utility at only medium screen sizes and above.

For more information about Tailwind's responsive design features, check out the Responsive Design documentation.

Customizing

Delay values

By default Tailwind provides eight general purpose transition-delay utilities. You change, add, or remove these by customizing the transitionDelay section of your Tailwind theme config.

@component('_partials.customized-config', ['key' => 'theme.extend.transitionDelay'])

  • '0': '0ms',
  • '2000': '2000ms', @endcomponent

Learn more about customizing the default theme in the theme customization documentation.

@include('_partials.variants-and-disabling', [ 'utility' => [ 'name' => 'transition-delay', 'property' => 'transitionDelay', ], 'variants' => [ 'responsive', ], ])

Tailwind UI is now in early access!