Four digits, and the cells become one solid panel.

A code field where four digits trigger a panel that opens across the cells from left to right with a confirmation word. A wrong code shakes the row and clears it.

demo

The trick

The panel is a veil clipped with inset(0 100% 0 0), and opening it is just animating that clip to 0.

Motion goes through one small go() helper on the Web Animations API, which sets durations to 1ms for reduced motion.

The shake is six translateX keyframes of 8 then 4 pixels, which decays like a real shake.

.veil{position:absolute;inset:0;background:var(--fx-on);color:var(--fx-on-ink);display:flex;align-items:center;justify-content:center;gap:8px;font-weight:600;font-size:16px;clip-path:inset(0 100% 0 0);pointer-events:none;z-index:2} const shake=el=>go(el,[{transform:'translateX(0)'},{transform:'translateX(-8px)'},{transform:'translateX(8px)'},{transform:'translateX(-4px)'},{transform:'translateX(4px)'},{transform:'translateX(0)'}], 

Where I'd use it

Verification and 2FA screens

Each cell is a real input under the veil, so the field keeps its normal keyboard and autofill behavior.

The prompt for this one is free: uimotion.app.