animate-pulse: Tailwind CSS Animation Classes

The animate-pulse class applies a subtle pulsing animation, where the element smoothly fades in and out.


animate-pulse

The animate-pulse class applies a subtle pulsing animation, where the element smoothly fades in and out. It is commonly used for loading placeholders or attention-grabbing effects.

Code Example

html
<div class="animate-pulse bg-indigo-500 h-10 w-40 rounded-md"></div>

Preview

How to Use

Add the animate-pulse class directly to your HTML element:

html
<div class="animate-pulse">
<!-- Your content here -->
</div>

Responsive Usage

Use Tailwind's responsive prefixes to apply animate-pulse at specific breakpoints:

html
<div class="sm:animate-pulse md:animate-pulse lg:animate-pulse">
Responsive element
</div>
  • sm:animate-pulse — applies from 640px and up
  • md:animate-pulse — applies from 768px and up
  • lg:animate-pulse — applies from 1024px and up

Customization

You can extend or override this utility in your tailwind.config.js. See the Tailwind CSS documentation for details on customizing your theme.

Windframe is an AI visual editor for rapidly building stunning web UIs & websites

Start building stunning web UIs & websites!

Build from scratch or select prebuilt tailwind templates