SquareAccordion follows the same square edge as SquareGrid, but its timeline
holds at each corner to create an accordion-like trail collapse.
Loading
Credits to shaah1d for creating the initial animation.
Installation
Usage
import { SquareAccordion } from "@/components/loading-ui/square-accordion";<SquareAccordion />Customization
Use size, blocks, and track for the grid shape, and tune --duration,
--delay, and --mask-color for motion and surface matching.
Size
Increase the grid cells and text scale for larger square loaders.
LoadingLoadingLoading
Color
Apply text color utilities to recolor both the track and trail.
LoadingLoadingLoading
Duration
Set --duration to change the travel-and-pause cycle.
LoadingLoadingLoading
Glyphs
Swap the track and moving blocks, and set --mask-color for non-default
surfaces.
LoadingLoading
Loading
