codepenz
← Back to catalog

Marching Border Trace

A short segment continuously traces the perimeter of a box: two pseudo-elements each animate their own clip: rect() window through the four edges, staggered by half a cycle, for an outline that looks like it's being drawn on a loop.

EffectsLoaderscssclipborderanimation
Added July 6, 2026
CODEPENZ