Skip to main content
The Line Spinner Loader displays 12 lines arranged in a circle that fade in and out sequentially, creating a smooth rotating effect. This loader uses Framer Motion for fluid animations and is ideal for modern, sophisticated interfaces.

Installation

This component requires motion (Framer Motion) as a peer dependency:

Usage

Props

The Line Spinner component does not accept any props. It displays a fixed 12-line spinner animation.

Animation Details

  • Lines: 12 lines arranged in a circle
  • Rotation: Each line rotated by 30 degrees (360° / 12)
  • Animation: Opacity fades from 0.1 to 1 and back
  • Duration: 1 second per cycle
  • Delay: 0.1 seconds between each line
  • Size: 48px × 48px (12 × 12 in Tailwind)
  • Color: Black in light mode, white in dark mode

Examples

Loading Screen

Card Loading

Button Loading State

Data Table Loading