Keyframe Animations in Tailwind CSS

From the Tailwind CSS cheat sheet ยท Transitions & Animations ยท verified Jul 2026

Keyframe Animations

Built-in and custom keyframe animations.

html
<!-- Built-in animations -->
<div class="animate-spin">Spinning loader</div>
<div class="animate-pulse">Pulsing skeleton</div>
<div class="animate-bounce">Bouncing arrow</div>
<div class="animate-ping">Ping notification</div>
๐Ÿ’ก animate-pulse is perfect for skeleton loading states โ€” just add it to gray boxes
โšก animate-ping creates a radar-like ping effect โ€” great for notification badges
๐Ÿ“Œ Define custom animations in @theme with @keyframes in v4
๐ŸŸข Combine with conditionals: show animate-spin while loading, hide when done
animationskeyframesspinpulse

More Tailwind CSS tasks

Back to the full Tailwind CSS cheat sheet