SquareSnake traces the square path with delayed unicode glyphs instead of a
separate static track, which makes it useful on dense or colored surfaces.
Loading
Credits to shaah1d for creating the initial animation.
Installation
Usage
import { SquareSnake } from "@/components/loading-ui/square-snake";<SquareSnake />Customization
Use size for the square path, blocks for the four moving glyphs, and
--duration or --delay for animation timing.
Size
Change the path cell count and text scale together.
LoadingLoadingLoading
Color
The snake inherits foreground color.
LoadingLoadingLoading
Duration
Set --duration to tune the loop speed.
LoadingLoadingLoading
Glyphs
Provide four glyphs to change the lead, trail, and final tail character.
LoadingLoadingLoading
