{"summary":"호버 지연 시간은 고정값이 아니라 사용자 의도에 맞춰야 합니다. 그룹 내 웜업, 이탈 유예, 크기별 지연, 다단계 메뉴 오작동 방지의 4가지 원칙을 인터랙티브 데모와 함께 다룹니다.","notes":"<p>호버 지연 시간을 하나의 고정값으로 박아 두어서는 안 됩니다. 너무 짧으면 커서가 지나가는 길마다 잘못 반응해 화면 곳곳이 깜빡이고, 너무 길면 인터페이스가 굼뜨게 느껴집니다. 좋은 호버 인터랙션의 핵심은 사용자의 '의도'에 따라 대기 시간과 허용 범위를 유연하게 조절하는 데 있습니다.</p>\n        <h2>그룹 내 '웜업'</h2>\n        <p>같은 종류의 요소가 촘촘하게 나란히 놓여 있다면, 첫 호버에는 300~500ms의 웜업 지연을 두어 커서가 무심코 스쳐 지나가는 움직임을 걸러 냅니다. 그래야 지나가는 길에 툴팁이 줄줄이 튀어나오지 않습니다. 첫 툴팁이 한 번 표시되면 사용자가 능동적으로 살펴보고 있다는 뜻이므로, 이후 그룹 안에서 옮겨 다닐 때는 대기 없이 0ms로 바로 표시합니다. 커서가 그룹을 완전히 벗어나고 약 400ms가 지나면 다시 초기 상태로 돌아갑니다.</p>\n        <ul>\n        <li><strong>적용 상황:</strong> 툴바, 아바타 그룹, 하단 Dock·내비게이션 바</li>\n        <li><strong>권장 수치:</strong> 첫 호버 300~500ms, 그룹 내 전환 0ms, 벗어나고 약 400ms 뒤 초기화</li>\n        </ul>\n        <h2>이탈 유예</h2>\n        <p>호버로 열리고 커서를 안으로 옮겨 클릭해야 하는 인터랙티브 오버레이라면, 커서가 경계를 벗어나는 순간 바로 닫히는 동작은 가장 피해야 합니다. 트리거와 오버레이 사이의 물리적인 틈에는 보이지 않는 '투명 브리지 영역'을 깔아 이동 도중에 연결이 끊기지 않게 합니다. 또한 커서가 오버레이를 벗어난 뒤에도 150~300ms의 유예 시간을 두고(넓은 미리보기는 400ms까지), 손이 미끄러지거나 커서가 흔들리거나 너무 빨리 움직여 잠깐 경계를 넘는 상황을 너그럽게 받아 줍니다.</p>\n        <ul>\n        <li><strong>적용 상황:</strong> 드롭다운 메뉴, 호버 카드(Hover Card), 말풍선형 액션 패널</li>\n        <li><strong>권장 수치:</strong> 틈새에 투명 브리지, 이탈 유예 150~300ms, 넓은 미리보기 400ms</li>\n        </ul>\n        <h2>크기에 따라 속도 정하기</h2>\n        <p>오버레이가 열리는 문턱은 그것이 '화면을 가리고 방해하는 정도'에 비례해야 합니다. 면적이 크고 정보가 무거울수록 지연 시간을 길게 잡아, 사용자가 정말 보고 싶어 할 때 띄웁니다. 단축키 안내처럼 한 줄짜리 가벼운 툴팁은 첫 번째 원칙과 같은 300~500ms, 프로필 카드 같은 중간 크기 오버레이는 500~700ms, 문서 미리보기나 리치 미디어 카드 같은 대형 오버레이는 700~900ms가 적당합니다.</p>\n        <ul>\n        <li><strong>적용 상황:</strong> 한 줄 툴팁, 링크 미리보기 카드, 상세 정보 오버레이</li>\n        <li><strong>권장 수치:</strong> 가벼운 툴팁 300~500ms, 프로필 카드 500~700ms, 대형 미리보기 700~900ms</li>\n        </ul>\n        <h2>다단계 메뉴 오작동 방지</h2>\n        <p>다단계 메뉴에서 오른쪽 서브메뉴로 커서를 옮길 때 이동 경로는 대개 대각선이라, 위아래 인접 항목을 스치고 지나갈 수밖에 없습니다. 지나가는 항목에 150~250ms의 전환 지연을 더하면 도중에 잘못 전환되어 보던 서브메뉴가 끊기는 일을 막을 수 있습니다. 기다림 없이 더 매끄러운 경험을 원한다면 커서 궤적을 기반으로 한 '안전 삼각형'을 더해 보세요. 자세한 내용은 <a href=\"/ko/002-cascade-menu/\">002 다단계 메뉴의 안전 삼각형</a>을 참고하세요.</p>\n        <ul>\n        <li><strong>적용 상황:</strong> 다단계 우클릭 메뉴, 다단계 카테고리 내비게이션, 중첩 오버레이</li>\n        <li><strong>권장 수치:</strong> 전환 지연 150~250ms, 한 단계 더 나아가면 안전 삼각형</li>\n        </ul>\n        <h2>AI에게 맡기기</h2>\n        <p>아래 Prompt를 Claude Code, Codex, Cursor, WorkBuddy 같은 AI 도구에 복사해 넣으면, 위 4가지 원칙을 기준으로 프로젝트의 호버 인터랙션을 점검하고 개선합니다.</p>","prompt":"Review everything in my product that opens on hover, and decide for each one how long it waits before it opens, how long it stays once the pointer leaves, and what happens when the pointer moves on to the next one. Then, if I want it, change the ones I approve. This is about judgment first: diagnose and recommend, and change only what I approve.\n\nThis is a change to my product, not a demo. Work inside my code, on my stack, with my components, tokens and motion. Do not add a dependency without asking. Every value below is a default to start from.\n\nThe rule behind all of it: the larger an overlay is, the more of the page it covers and the more there is to click inside it, the longer it waits before it opens and the longer it stays when the pointer leaves. Once the person has shown they want to look, stop making them wait.\n\n0. Read the product first\n- Find everything that opens on hover: tooltips on icon buttons and on cut-off text, hover cards (people, links, mentions, tags), previews (a document or file beside a list, a link preview, an image enlarged on hover, a panel that opens from a navigation item), and menus or submenus that open on hover.\n- For each one, note: what triggers it and how close the triggers sit to each other (a toolbar, a row of avatars, a list); how big the overlay is and what it covers; whether there is anything to click inside it; how far it sits from its trigger; and how it is timed today (no delay, one fixed delay, its own timers, a library's defaults).\n- Find the shared pieces: a Tooltip, HoverCard or Popover component, the library behind them if any (Radix, Floating UI, Headless UI, MUI, Ant Design, a hand-written hook), the timers they use, and how touch and keyboard are handled.\n- Tell me in a few lines what you found before going on.\n\n1. Sort each one by size\na. Label: a tooltip. A few words, nothing to click.\n  - Opens after the pointer has rested on the trigger for 500ms. Moving to another trigger starts the wait again.\n  - Once one label is showing, moving to a neighbour shows its label at once. While the pointer is still inside the group (a toolbar, including the gaps between buttons), the label moves to the new trigger and changes its text in place: no fade out and back.\n  - Leaving the group hides it at once. For 400ms after that, the next label in the group still shows at once; after that, the 500ms wait is back.\n  - Pressing the trigger hides its label, and it does not show again until the pointer has left that trigger.\nb. Card: a hover card with buttons or links in it (Follow, Message, Open).\n  - Opens after 700ms on the trigger.\n  - Leaving the trigger or the card starts a 300ms grace time; coming back within it keeps the card open.\n  - The gap between the trigger and the card counts as the card: cover it with an invisible area as wide as the card, so crossing it never starts the grace time.\n  - While a card is open, resting on another trigger of the same kind swaps the card's content in place (see 2): the card slides to its new trigger and its content cross-fades; it does not close and open again.\n  - Escape or a click outside closes it at once.\nc. Preview: a large panel that covers part of the page (a document beside a list, a link or file preview).\n  - Opens after 900ms on the trigger.\n  - Leaving starts a 400ms grace time. The list, the panel and any gap between them all count as inside.\n  - Rows the pointer crosses quickly on its way to the panel do not count (see 2); resting on another row swaps the panel's content in place.\nd. Should not open on hover at all: anything whose main job is an action, anything that needs typing, and menus that are a choice rather than a glance. Open those on click, and say which ones these are.\nPick the kind by what the overlay is, not by what component it uses today: a \"tooltip\" with a button in it is a card.\n\n2. Reading the pointer\n- Keep the pointer's last few positions and work out its speed over the last 90ms. It is moving fast above about 0.1px per ms (10px in 100ms); below that it is slowing down or resting.\n- Waiting to open: the timer starts when the pointer enters a trigger and starts again whenever it enters another one, so a pointer passing over a row of triggers opens nothing.\n- Swapping while open: another trigger takes the open card or preview only after the pointer has been slow on it for about 60ms (about 100-150ms after it stops). Triggers crossed fast are passed over.\n- When the panel sits to one side and the person may move at an angle across other triggers, the speed check is usually enough. If it is not, add a safe triangle from the pointer to the panel's near edge, as for cascading menus.\n- All timers run on one clock, are cancelled when the pointer moves on, and are cleared when the component unmounts. Only one overlay of each kind is open at a time.\n\n3. Rules for every one\n- Motion: a label fades in over about 140ms and out over 60ms; a card fades in with a 4px drop over about 200ms and out over 120ms; a preview fades in with an 8px slide over about 250ms and out over 140ms. Swaps in place cross-fade over about 200ms. Closing is always faster than opening.\n- Nothing around the trigger moves when an overlay opens or closes.\n- Keyboard: focus on a trigger shows its label at once; a card or preview opens on Enter or after the same delay as hover; Escape closes it and returns focus to the trigger. Labels are linked with aria-describedby.\n- Touch has no hover. Under @media (hover: none), labels show on long press or as visible text, and cards and previews open on tap. Keep :hover styles inside @media (hover: hover), so a tapped button does not stay in its hover look.\n- Reduced motion: no drop, slide or scale; fades only.\n- If the product uses a library, set its own options rather than adding timers next to it. For example: Radix Tooltip.Provider delayDuration 500 and skipDelayDuration 400; Radix HoverCard openDelay 700 and closeDelay 300; Floating UI useHover with delay { open, close } and handleClose: safePolygon() for cards and previews, and useDelayGroup for labels.\n\n4. The report\nBefore changing anything, give me one table, one row per place:\n| Place | Kind (label, card, preview, or click instead) | Today (open delay, close, gap, moving to the next) | Problem | Change | Values |\nThen list the shared changes (a hover-intent helper, the library settings) separately from the per-place ones. Ask me which rows to change, and change only those.\n\n5. Check the result\n- Sweeping the pointer across a toolbar opens no labels; resting on one opens it after 500ms; moving along the toolbar changes it at once, in place, with no flicker; leaving for more than 400ms brings the wait back.\n- A card opens after 700ms, and the pointer can cross the gap and press a button inside it. Slipping out of the card and back within 300ms keeps it open.\n- Moving at an angle from a list to its preview, across other rows, never changes the preview. Resting on another row swaps it in place, without closing.\n- Touch and keyboard reach everything that hover reaches.","skill":"/skills/kubai-hover-timing/SKILL.md","skillText":"# 悬停浮层的时间规则\n\n《999 个小技巧，让你 Vibe 的产品更有质感》第 025 期 · @kubai087\n\n在用户的项目里按下面的要求改造。要求以用户的口吻写成：文中的 I、me、my 指用户；写着要先问的地方，先停下来问用户再继续。\n\n## 改造要求\n\nReview everything in my product that opens on hover, and decide for each one how long it waits before it opens, how long it stays once the pointer leaves, and what happens when the pointer moves on to the next one. Then, if I want it, change the ones I approve. This is about judgment first: diagnose and recommend, and change only what I approve.\n\nThis is a change to my product, not a demo. Work inside my code, on my stack, with my components, tokens and motion. Do not add a dependency without asking. Every value below is a default to start from.\n\nThe rule behind all of it: the larger an overlay is, the more of the page it covers and the more there is to click inside it, the longer it waits before it opens and the longer it stays when the pointer leaves. Once the person has shown they want to look, stop making them wait.\n\n0. Read the product first\n- Find everything that opens on hover: tooltips on icon buttons and on cut-off text, hover cards (people, links, mentions, tags), previews (a document or file beside a list, a link preview, an image enlarged on hover, a panel that opens from a navigation item), and menus or submenus that open on hover.\n- For each one, note: what triggers it and how close the triggers sit to each other (a toolbar, a row of avatars, a list); how big the overlay is and what it covers; whether there is anything to click inside it; how far it sits from its trigger; and how it is timed today (no delay, one fixed delay, its own timers, a library's defaults).\n- Find the shared pieces: a Tooltip, HoverCard or Popover component, the library behind them if any (Radix, Floating UI, Headless UI, MUI, Ant Design, a hand-written hook), the timers they use, and how touch and keyboard are handled.\n- Tell me in a few lines what you found before going on.\n\n1. Sort each one by size\na. Label: a tooltip. A few words, nothing to click.\n  - Opens after the pointer has rested on the trigger for 500ms. Moving to another trigger starts the wait again.\n  - Once one label is showing, moving to a neighbour shows its label at once. While the pointer is still inside the group (a toolbar, including the gaps between buttons), the label moves to the new trigger and changes its text in place: no fade out and back.\n  - Leaving the group hides it at once. For 400ms after that, the next label in the group still shows at once; after that, the 500ms wait is back.\n  - Pressing the trigger hides its label, and it does not show again until the pointer has left that trigger.\nb. Card: a hover card with buttons or links in it (Follow, Message, Open).\n  - Opens after 700ms on the trigger.\n  - Leaving the trigger or the card starts a 300ms grace time; coming back within it keeps the card open.\n  - The gap between the trigger and the card counts as the card: cover it with an invisible area as wide as the card, so crossing it never starts the grace time.\n  - While a card is open, resting on another trigger of the same kind swaps the card's content in place (see 2): the card slides to its new trigger and its content cross-fades; it does not close and open again.\n  - Escape or a click outside closes it at once.\nc. Preview: a large panel that covers part of the page (a document beside a list, a link or file preview).\n  - Opens after 900ms on the trigger.\n  - Leaving starts a 400ms grace time. The list, the panel and any gap between them all count as inside.\n  - Rows the pointer crosses quickly on its way to the panel do not count (see 2); resting on another row swaps the panel's content in place.\nd. Should not open on hover at all: anything whose main job is an action, anything that needs typing, and menus that are a choice rather than a glance. Open those on click, and say which ones these are.\nPick the kind by what the overlay is, not by what component it uses today: a \"tooltip\" with a button in it is a card.\n\n2. Reading the pointer\n- Keep the pointer's last few positions and work out its speed over the last 90ms. It is moving fast above about 0.1px per ms (10px in 100ms); below that it is slowing down or resting.\n- Waiting to open: the timer starts when the pointer enters a trigger and starts again whenever it enters another one, so a pointer passing over a row of triggers opens nothing.\n- Swapping while open: another trigger takes the open card or preview only after the pointer has been slow on it for about 60ms (about 100-150ms after it stops). Triggers crossed fast are passed over.\n- When the panel sits to one side and the person may move at an angle across other triggers, the speed check is usually enough. If it is not, add a safe triangle from the pointer to the panel's near edge, as for cascading menus.\n- All timers run on one clock, are cancelled when the pointer moves on, and are cleared when the component unmounts. Only one overlay of each kind is open at a time.\n\n3. Rules for every one\n- Motion: a label fades in over about 140ms and out over 60ms; a card fades in with a 4px drop over about 200ms and out over 120ms; a preview fades in with an 8px slide over about 250ms and out over 140ms. Swaps in place cross-fade over about 200ms. Closing is always faster than opening.\n- Nothing around the trigger moves when an overlay opens or closes.\n- Keyboard: focus on a trigger shows its label at once; a card or preview opens on Enter or after the same delay as hover; Escape closes it and returns focus to the trigger. Labels are linked with aria-describedby.\n- Touch has no hover. Under @media (hover: none), labels show on long press or as visible text, and cards and previews open on tap. Keep :hover styles inside @media (hover: hover), so a tapped button does not stay in its hover look.\n- Reduced motion: no drop, slide or scale; fades only.\n- If the product uses a library, set its own options rather than adding timers next to it. For example: Radix Tooltip.Provider delayDuration 500 and skipDelayDuration 400; Radix HoverCard openDelay 700 and closeDelay 300; Floating UI useHover with delay { open, close } and handleClose: safePolygon() for cards and previews, and useDelayGroup for labels.\n\n4. The report\nBefore changing anything, give me one table, one row per place:\n| Place | Kind (label, card, preview, or click instead) | Today (open delay, close, gap, moving to the next) | Problem | Change | Values |\nThen list the shared changes (a hover-intent helper, the library settings) separately from the per-place ones. Ask me which rows to change, and change only those.\n\n5. Check the result\n- Sweeping the pointer across a toolbar opens no labels; resting on one opens it after 500ms; moving along the toolbar changes it at once, in place, with no flicker; leaving for more than 400ms brings the wait back.\n- A card opens after 700ms, and the pointer can cross the gap and press a button inside it. Slipping out of the card and back within 300ms keeps it open.\n- Moving at an angle from a list to its preview, across other rows, never changes the preview. Resting on another row swaps it in place, without closing.\n- Touch and keyboard reach everything that hover reaches.\n"}