AccordionLoader uses a monospace track, staggered block glyphs, and a
surface-aware mask color so the moving trail cuts cleanly through the track.
Loading
Credits to shaah1d for creating the initial animation.
Installation
Usage
import { AccordionLoader } from "@/components/loading-ui/accordion-loader";<AccordionLoader />Customization
Use trackLength for the measured text track, blocks and track for the
unicode glyphs, and CSS variables such as --duration, --delay, and
--mask-color for motion and surface matching.
Size
The loader is sized in ch units. Combine trackLength with text-size
utilities to change both geometry and scale.
LoadingLoadingLoading
Color
Foreground color controls the track and the moving block trail.
LoadingLoadingLoading
Duration
Set --duration for faster or slower accordion motion.
LoadingLoadingLoading
Glyphs
Swap the unicode characters and set --mask-color when the loader sits on a
non-default surface.
LoadingLoading
Loading
