animate-ping: Tailwind CSS Animation Classes

The animate-ping class applies a pulsing animation that repeatedly scales and fades an element, often used for notifications or visual emphasis.


Animate-ping

The animate-ping class applies a pulsing animation that repeatedly scales and fades an element, often used for notifications or visual emphasis.

Code Example

html
<div class="flex justify-center items-center m-10">
<div class="animate-ping bg-indigo-500 text-white rounded-full w-3 h-3">
</div>
</div>

Preview

How to Use

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

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

Responsive Usage

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

html
<div class="sm:animate-ping md:animate-ping lg:animate-ping">
Responsive element
</div>
  • sm:animate-ping — applies from 640px and up
  • md:animate-ping — applies from 768px and up
  • lg:animate-ping — 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