DEV Community

UI Motion AI
UI Motion AI

Posted on

One-Tap Sign-In: the small motion details that make it feel right

Pick one and the rest step back.

Stacked sign-in buttons where the tapped one fills dark and the others dim, with email always below.

demo

The trick

The fill is a ::before layer fading in over the button.

Unselected buttons drop to --dim opacity.

The icon scales up with a spring and a check appears.

.list.picked .sb{opacity:var(--dim)}
.list.picked .sb.sel{opacity:1;color:var(--fx-on-ink)}
.sb.sel::before{opacity:1}
.sb.sel .ic{background:var(--fx-on-ink);transform:scale(1.1)}
B.forEach(b=>b.onclick=()=>{L.classList.add('picked');B.forEach(x=>x.classList.toggle('sel',x===b))});
Enter fullscreen mode Exit fullscreen mode

Where I'd use it

Sign-in and sign-up screens

Icons are plain grey circles so no real brand mark ships with the demo.

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

Top comments (0)