Thunder Loader

Animated thunderbolt loader with glow and shimmer effects, customizable sizes and colors.

Installation

npx shadcn@latest add https://scrollxui.dev/registry/thunder-loader.json 

Usage

import { ThunderLoader } from "@/components/ui/thunder-loader";
<ThunderLoader className="w-40 h-40"/>

Examples


Default


Size

xs
sm
md
lg
xl
2xl

Variants

default
electric
fire
ice
rainbow
subtle

Custom Colors

Custom Green
Custom Orange
Custom Purple

Effects

Animate
Glow
Fill
Static

Duration

Fast
Normal
Slow
Fast
Normal
Slow
Fast
Normal
Slow

API Reference

Thunder Loader

Animated thunderbolt loader with glow and shimmer effects, customizable sizes and colors.

Props

PropertyTypeDefaultDescription
size"xs" | "sm" | "md" | "lg" | "xl" | "2xl""md"
Controls the size of the loader.
variant"default" | "electric" | "fire" | "ice" | "rainbow" | "subtle""default"
Controls the color style of the loader.
fillDurationnumber2
Duration in seconds for the fill animation.
glowDurationnumber3
Duration in seconds for the glow animation.
animateDurationnumber2
Duration in seconds for the thunder path animation.
showGlowbooleanfalse
Enables the glow effect.
showFillbooleanfalse
Enables the fill animation inside the loader.
animateboolean | 'thunder'false
Enables path animation; 'thunder' uses stroke dash offset animation.
fillColorstring
Custom color for the fill animation.
glowColorstring
Custom color for the glow effect.
baseColorstring
Custom base color of the loader stroke.
strokeWidthnumber2
Width of the loader stroke.
viewBoxstring"0 0 100 80"
Custom SVG viewBox.
customPathstring
Custom SVG path for the loader shape.
classNamestring
Custom class names for styling the loader.
...propsHTMLDivElement attributes
Supports all standard div props and events.

Built withby Ahdeetai.