Loading...

ForkUI

Layered Radial Loader

A sophisticated, multi-layered loading animation with depth and smooth rotation

Layered Radial Loader Breakdown

🔄 Concentric Circles Design

The loader features multiple concentric circles with varying opacity and animation directions, creating a mesmerizing depth effect.

🎨 Gradient Background

A subtle gradient background adds dimension and visual interest to the loader, with a blur effect that enhances the overall appearance.

⚙️ Multi-Speed Animations

Different rings rotate at varying speeds and directions, creating a complex and engaging loading animation.

🔧 Technical Highlights

  • Built entirely with Tailwind CSS utilities
  • Uses custom animation keyframes for smooth motion
  • Responsive design that scales proportionally
  • Layered elements with varying opacity for depth

Code Breakdown and Features

1. Layered Structure

<div className="relative w-16 h-16">
  <div className="absolute inset-0 bg-gradient-to-br from-orange-600/30 to-red-600/30 rounded-full blur-xl"></div>
  <div className="absolute inset-0 border-2 border-orange-500/40 rounded-full animate-spin-slow"></div>
  <div className="absolute inset-2 border-2 border-orange-500/60 rounded-full animate-spin-reverse"></div>
  <div className="absolute inset-4 border-2 border-orange-500/80 rounded-full animate-spin-slow"></div>
  <div className="absolute inset-6 bg-orange-500 rounded-full animate-pulse"></div>
</div>

• Uses a relative container with absolute positioning for layers
• Each layer is positioned using Tailwind's inset-* utilities
• Varying opacity values create depth perception
• Rounded shapes with rounded-full

2. Custom Animation Utilities

@layer utilities {
  .animate-spin-slow {
    animation: spin 3s linear infinite;
  }
  
  .animate-spin-reverse {
    animation: spin 2s linear infinite reverse;
  }
  
  .animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  }
}

• Custom animation utilities extend Tailwind's capabilities
animate-spin-slow provides a slower rotation
animate-spin-reverse creates counter-rotation
animate-pulse adds breathing effect to center element

3. Gradient and Blur Effects

<div className="
  absolute 
  inset-0 
  bg-gradient-to-br 
  from-orange-600/30 
  to-red-600/30 
  rounded-full 
  blur-xl
"></div>

• Uses Tailwind's gradient utilities for color transition
bg-gradient-to-br creates bottom-right direction
• Transparent colors with /30 syntax for subtle effect
blur-xl adds a soft glow around the loader