Sent anonymously — tell us a motion you want or a bug you hit.
Essential Button, Nav & Form Micro-Interactions
Press feedback, hold-to-confirm, click ripples, sheets, modals, and error shakes
Most perceived polish comes from everyday buttons, drawers, dialogs, and form validation. Each of these ten micro-interactions includes keyboard focus management, Escape dismissal, and screen-reader semantics out of the box.
Add accessible micro-interactions across my web app: Press Feedback for primary buttons, Hold-to-Confirm for destructive actions, Error Shake with role=alert for invalid fields, Push Navigation for drill-down views, Present Sheet for mobile modal tasks, Modal Dialog for desktop confirmations, and Theme Circle Reveal for dark mode switching.
10 runnable effects in this playbook
Click any card to copy its AI prompt, or hover to copy code or open its dedicated page.
Shrink a button slightly while pressed and spring it back on release.
Press feedback
按下缩小回弹Shrink a button slightly while pressed and spring it back on release.
危险操作确认
Press and hold a button to fill its progress bar from left to right; releasing early cancels.
Hold to confirm
长按填充确认Press and hold a button to fill its progress bar from left to right; releasing early cancels.
找到我
邮件微信订阅
Send a ripple out from the point of a click.
Ripple
Google点击涟漪Send a ripple out from the point of a click.
登录••••••登录
Shake an element side to side to signal an error.
Shake
左右抖动提示Shake an element side to side to signal an error.
备忘录+ 新建
首页布局草图
待办清单
新建笔记完成
标题与摘要
Slide a rounded sheet up from the bottom while slightly scaling down and dimming the background view.
Present modal sheet
Apple底部卡片弹出Slide a rounded sheet up from the bottom while slightly scaling down and dimming the background view.
收件箱
设计评审刚才›
规范更新昨天›
版本归档周一›
‹ 返回详情
Slide a new view in full-width from the right while shifting the previous view left with subtle dimming.
Push navigation transition
Apple侧滑压栈转场Slide a new view in full-width from the right while shifting the previous view left with subtle dimming.
导出配置
将包含全部参数与变量
确认导出
Open a centered dialog with a smooth scale-and-fade entrance and restore focus on close.
Modal scale-fade dialog
Google居中弹窗缩放Open a centered dialog with a smooth scale-and-fade entrance and restore focus on close.
北煜ii的博客
Slide a side panel in from the edge and back out.
Slide in / out
侧边滑入滑出Slide a side panel in from the edge and back out.
北煜ii的作品集
作品文章关于我
Morph a three-line menu icon into a close icon and back.
Menu icon morph
Google汉堡菜单变形Morph a three-line menu icon into a close icon and back.
纸间◐把夜晚 留给阅读。
纸间◑把夜晚 留给阅读。
A new theme expands from its button as a circle, then shrinks back on the return trip.
Circle reveal theme toggle
Google圆形扩散换肤A new theme expands from its button as a circle, then shrinks back on the return trip.
When should I use Push Navigation vs a Present Bottom Sheet?
Use Push for linear drill-down along the same hierarchy (list to detail); use Present when interrupting the flow for a self-contained temporary task like compose or login.
Should destructive actions use Hold-to-Confirm or a confirmation dialog?
Hold-to-Confirm prevents accidental taps smoothly for frequent actions without opening a modal, while irreversible account or data deletion still warrants a dedicated confirmation dialog.
How does circular dark-mode theme reveal work natively?
Use the native View Transitions API to animate a clip-path: circle() from the toggle button coordinates to the farthest viewport corner, falling back to an instant switch when unsupported or under reduced motion.