animate-spin/ping/pulse/bounce plus custom keyframes via theme.animation. This family contains 8 generated classes in Nakshora 3.0.

Classes#

ClassGenerated CSS
animate-noneanimation: none;
animate-spinanimation: spin 1s linear infinite;
animate-pinganimation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
animate-pulseanimation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
animate-bounceanimation: bounce 1s infinite;
animate-fadeanimation: fade 300ms ease-out;
animate-slideanimation: slide 300ms ease-out;
animate-shimmeranimation: shimmer 1.5s linear infinite;

Example#

example
html
<span class="animate-spin h-5 w-5 border-2 border-white border-t-transparent rounded-full"></span>

Responsive & variants#

Every class here accepts screen prefixes (sm:xl:) and state variants — md:hover:p-4 style stacks compile to a single media query. See responsive/index|Responsive design and variants/index|Variants.

Best practices#

  • The spinner recipe above is the canonical loading state
  • Custom keyframes: theme.extend.keyframes + animation

Common mistakes#

  • Animating without motion-safe: breaks vestibular accessibility — gate with motion-safe:

utilities/transitions/transition-property|Transitions