Six digits in, the cells ripple.

A six digit code field where a full entry makes the cells rise one by one and a line grows out from the center.

demo

The trick

Paste, backspace and arrow navigation are handled across the six inputs.

Cells animate with a --gap stagger and fill with the accent when done.

A line scales out from the center under the row.

.cell{position:relative;width:52px;height:60px;border:1px solid var(--fx-line);transition:border-color .2s,background-color .2s} .cell:focus-within{border-color:var(--fx-ink)} .cell.filled{border-color:var(--fx-ink)} .cell.ok{background:var(--fx-on);border-color:var(--fx-on)} .ln{width:304px;height:2px;background:var(--fx-ink);margin:16px auto 0;transform:scaleX(0)} 

Where I'd use it

Two factor and verification screens

Backspace on an empty cell steps back and clears the previous one, which is the one thing people expect and most OTP boxes forget.

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