Skip to content
WunderUI
All effectsForms

Marching Ants

A dashed border moves around the drop zone, inviting you to drop a file.

Pure CSSFormsPro

Meant for

Drop ZoneChat Attachment

Usage

On a Drop Zone

Four repeating gradients as the border, moved by exactly one dash period so the loop has no seam. A real dashed border cannot animate, so the Drop Zone’s own border is set to transparent and this draws over it.

The class is wm wm-marching-ants — the first half is the marker the trigger and reduced-motion rules hook into, the second is the effect.