{"summary":"컴포넌트와 요소의 등장은 이동, 변형, 투명도의 조합으로 완성됩니다. 절제된 관성과 반동, 트리거 방향에서 펼치기, 경쾌한 템포, 주변 요소와의 연동, 컨테이너와 콘텐츠의 시차까지 5가지 모션 디자인 원칙을 소개합니다.","notes":"<p>프로덕트 디자인에서 컴포넌트와 요소의 등장은 단순한 페이드인이나 위치 이동만으로 끝나지 않습니다. 메뉴나 다이얼로그가 제자리에서 서서히 나타나기만 하거나 중앙에서 일률적으로 커지기만 하면, 허공에서 불쑥 튀어나온 듯 보여 직전 조작과의 맥락이 끊어집니다. 밀도 높은 등장 모션은 이동, 변형, 투명도 변화를 유기적으로 조합해 만듭니다. 움직이는 방향과 곡선, 변형의 폭과 주변 요소의 호응, 투명도가 시작되는 지점과 차오르는 속도가 맞물려 최종 인상을 결정하기 때문입니다. 다섯 가지 디자인 디테일을 통해 이 요소들이 어떻게 어우러지는지 살펴봅니다.</p>\n        <h2>절제된 관성과 반동</h2>\n        <p>현실 세계의 물체에는 관성이 있어 목표 지점에 닿는 순간 칼같이 멈추지 않습니다. 메뉴, 드롭다운, 내용이 간결한 팝업처럼 펼쳐지는 컴포넌트가 자리에 안착할 때 살짝 튕기는 반동을 주면, 기계처럼 딱 멈추는 것보다 훨씬 자연스럽고 탄력 있게 느껴집니다. 다만 반동 폭은 몇 퍼센트 이내로 절제하고, ‘컴포넌트가 클수록 반동은 작게’라는 원칙을 지켜야 합니다. 아담한 메뉴는 가볍게 튕길 때 생동감이 살아나지만 중간 크기의 패널은 훨씬 차분해야 하며, 드로어나 바텀 시트, 전체 화면 전환에는 반동을 전혀 넣지 않습니다. 면적이 넓을수록 미세한 흔들림도 화면 전체의 울렁거림으로 번지기 때문입니다. 마찬가지로 닫히며 퇴장할 때는 시야를 빠르게 비워주는 것이 목적이므로 반동 없이 깔끔하게 사라져야 합니다.</p>\n        <h2>트리거가 있는 방향에서 펼치기</h2>\n        <p>클릭하거나 마우스를 올리는 순간, 사용자의 시선은 이미 그 트리거 위에 머물러 있습니다. 툴팁, 드롭다운 메뉴, 다단계 하위 메뉴, 아코디언처럼 출처가 분명한 요소는 트리거가 있는 방향에서 자라나듯 펼쳐져야 합니다. 기준점을 트리거와 가까운 쪽에 두고, 펼쳐지는 축을 따라 살짝 눌린 상태에서 본래 비율로 회복시키는 식입니다. 예를 들어 버튼 아래로 열리는 메뉴는 가로폭은 거의 유지한 채 세로만 납작하게 줄여서 시작하면, 허공에서 확대되는 대신 버튼 속에서 아래로 스르륵 풀려 나오는 인상을 줍니다. 옆으로 뻗어 나오는 하위 메뉴는 반대로 가로폭을 줄여 시작하고, 오른쪽 공간이 부족해 왼쪽으로 방향을 틀 때는 시작 기준점도 함께 뒤집어 줍니다. 링크나 이미지를 눌러 여는 미리보기 창은 클릭한 바로 그 지점에서 피어나듯 열리면 자연스럽습니다. 중심에서 균일하게 커지는 방식은 단축키로 호출하는 커맨드 팔레트처럼 공간상의 트리거가 없는 패널에만 남겨두세요. 요소가 어디에서 왔는지 분명히 보여주면 시선의 흐름이 끊기지 않고 조작감도 한결 착 달라붙습니다.</p>\n        <h2>템포는 빠르고 경쾌하게</h2>\n        <p>도구형 인터페이스의 모션은 상태를 매끄럽게 이어주기 위한 것이지, 사용자를 멈춰 세워 구경시키기 위한 장식이 아닙니다. 등장할 때는 초반에 빠르게 치고 나가 끝에서 부드럽게 감속하는 커브(선택 기준은 <a href=\"/ko/011-easing-curves/\">011 상황별 애니메이션 리듬과 이징 커브 선택법</a> 참고)를 써서, 클릭하는 즉시 요소가 거의 제자리에 도달하고 마지막 여운만 잔잔히 가라앉게 해야 반응이 가장 민첩하게 느껴집니다. 이때 놓치기 쉬운 디테일이 두 가지 있습니다. 첫째, <strong>투명도는 형태 변화보다 먼저 끝나야 합니다</strong>. 반동이 일어나거나 자리에 안착할 때는 요소가 이미 선명하게 다 드러나 있어야 반투명한 채로 어른거리며 흔들리지 않습니다. 둘째, <strong>움직임이 빠를수록 변화 폭은 작게 잡아야 합니다</strong>. 짧은 시간에 이동 거리나 크기 변화를 크게 주면 순간적인 도약이 과해져 오히려 눈이 피로해집니다.</p>\n        <h2>연관된 요소도 함께 움직이기</h2>\n        <p>새로운 요소는 진공 속에 혼자 나타나지 않습니다. 주변 화면이 함께 반응해 주면 공간의 깊이감이 자연스럽게 살아나는데, 이는 iOS 인터페이스에서도 자주 볼 수 있는 연출입니다. 앞뒤 레이어 관계에서는 미리보기 창이나 모달, 드로어가 떠오를 때 뒤쪽 페이지를 살짝 축소하고 블러를 더해 뒤로 물러나게 하면, 시선이 자연스레 전면으로 모이면서 계층 구조가 한눈에 읽힙니다. 같은 평면 안에서도 아코디언이 펼쳐질 때 아래쪽 모듈이 함께 내려가고, 리스트에 새 항목이 추가되거나 새 Toast가 뜰 때 이웃한 요소들이 부드럽게 자리를 비켜주면 갑작스럽게 밀어내는 느낌을 줄일 수 있습니다. 여기서 특히 주의할 점은 <strong>새로 나타나는 요소만 튕기고, 배경은 절대 튕기지 않게 하는 것</strong>입니다. 배경은 시선의 중심을 잡아주는 기준면이기 때문에 배경까지 함께 출렁이면 화면 전체가 중심을 잃고 불안정해집니다.</p>\n        <h2>컨테이너와 콘텐츠에 시차 두기</h2>\n        <p>바깥 프레임과 그 안의 아이콘, 텍스트가 한 치의 오차도 없이 똑같은 순간에 나타나면 컴포넌트가 마치 딱딱한 스탬프를 찍어낸 것처럼 보이기 쉽습니다. 각 부분의 출발 시점에 아주 미세한 선후 관계만 만들어 주어도, 반동을 전혀 넣지 않고도 모션에 숨결과 입체감이 살아납니다. 텍스트를 드래그해 선택했을 때 떠오르는 툴바를 예로 들면, 바깥 배경 캡슐이 먼저 펼쳐지고 그 뒤를 이어 내부 버튼들이 살짝 미끄러져 들어올 때 도구가 옆으로 뻗어 자라나는 듯한 감각이 생깁니다. 아코디언에서 패널이 먼저 열리고 본문이 뒤따라 드러나거나, 미리보기 카드가 자리 잡은 직후 모서리의 조작 버튼이 떠오르는 것도 같은 원리입니다. 리스트나 카드 묶음을 순차적으로 등장시킬 때는 맨 앞의 몇 개에만 시차를 두고 나머지는 한꺼번에 보여주어야 리듬감은 살리면서도 탐색 속도를 늦추지 않습니다.</p>\n        <h2>AI에게 맡기기</h2>\n        <p>아래 프롬프트를 Claude Code, Codex, Cursor, WorkBuddy 같은 AI 도구에 복사해 전달해 보세요. 메뉴, 다이얼로그, 미리보기 창, 툴바부터 툴팁, 아코디언, 리스트, Toast, 페이지 전환에 이르기까지 프로덕트 전반의 등장 모션을 먼저 점검하고, 진단표와 개선안을 정리해 확인을 요청합니다. 상황별 추천 커브와 구체적인 수치는 프롬프트 안에 모두 담겨 있으며, 원한다면 이 페이지의 데모처럼 슬라이더로 실제 화면에서 손맛을 바로 조절해 볼 수 있는 튜닝 패널도 함께 추가할 수 있습니다.</p>","prompt":"Refine how things come into view in my product: every component and module that appears, opens, expands or is replaced. That covers overlays (menus, submenus, dropdowns, popovers, tooltips, hover cards, dialogs, sheets, drawers, command palettes, previews opened by a click), floating toolbars, toasts and banners, accordions and expanding sections, lists, grids and cards as they load or change, tab panels, and page or route changes. An entrance is never only a fade or a slide: movement, deformation and opacity work together, and so do the elements around the one that enters. A tuning panel shows the key numbers as sliders, set to the defaults below, so I can tune them live on my own screens. Diagnose first, 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 and motion tokens. Keep what each element shows, where it ends up and what triggers it; change only how it comes in, goes out and moves what is around it. Do not add a dependency without asking. Every value below is a default to start from.\n\n0. Read the product first\n- Find everything that appears or changes in place, and the component behind each: my own, or a library (Radix, Headless UI, Floating UI, MUI, Ant Design, Motion / Framer Motion, React Spring, View Transitions, SwiftUI, Compose).\n- For each, note what triggers it (a button, a row in another menu, hover, a shortcut, a click on content, a text selection, data arriving, navigation), which way it comes from (down, up, a side, an edge of the window, centred, the point clicked), its size, what around it should react, and how it animates today: transform, origin, duration, curve, opacity, and whether a close interrupts an open cleanly.\n- Find the motion tokens (durations, curves, springs), how reduced motion is handled, and my slider, segmented-control and panel components, if any.\n- Tell me in a few lines what you found, then ask me where the tuning panel (section 4) should live: only in development (recommended), behind a toggle, or not at all.\n\n1. Five principles for every entrance\na. A little bounce, sized to the element. Small things that open from a trigger (menus, popovers, small dialogs, chips) may run a few percent past their end and settle. The larger the element, the less it bounces: about 3% of its size at most for a large window, none for sheets, drawers, full panels and pages. Text never bounces on its own, and the page behind never bounces.\nb. Come from where it was triggered. Put the transform origin on the trigger's side (the corner by the button, the edge by the parent, the point clicked) and start 6-8px back toward it. Squash it along the way it opens, about 0.86 along that axis and 0.96 across it, and turn the squash and the offset with the direction when it flips. An element with no trigger (a centred palette, a page) scales evenly instead; one that slides in from an edge comes from that edge.\nc. Fast, and smaller the faster it is. Use fast-in, slow-out curves: cubic-bezier(0.22, 1, 0.36, 1) by default, cubic-bezier(0.2, 1.45, 0.35, 1) where a small overlay should bounce. Most entrances take 150-360ms. Opacity finishes in about half the transform's time, so the element is fully shown before it settles. The shorter the motion, the smaller its change: a 120ms entrance moves at most 4px and scales from 0.98; a 360ms one may squash to 0.86. Leaving is shorter, about 140-160ms on ease-in, with no bounce.\nd. Related elements move with it. Behind a dialog or preview, the content recedes to scale(0.95) and blurs about 4px over 360ms on cubic-bezier(0.2, 0.9, 0.1, 1), into its own background colour, without a bounce. Elements that share the space make room on the same curve and time as the one entering: the content under an expanding section moves down with its height, list items close up or open a gap, a stack of toasts shifts. An element that continues from one state to the next (a card that opens into a page) moves as one rather than being swapped.\ne. Container first, content after. The surface or container leads; the content inside starts 20-30ms later, sliding in from 4% of the width (6-10px) and from opacity 0.72 or 0; the items of a list or grid follow 20-40ms apart, up to about eight, then the rest together. The lag between the layers gives the give.\n\n2. Measured presets\na. Menu or dropdown below or above its trigger: origin the corner nearest the trigger; from translateY(-6px) scale(0.96, 0.86), the offset pointing back toward the trigger; transform 360ms cubic-bezier(0.2, 1.45, 0.35, 1) (about 6.6% past the end); opacity 170ms ease.\nb. Submenu to one side: from translateX(-8px) scale(0.88, 0.98) with origin left center when it opens to the right; translateX(8px) and origin right center when it flips left. Same curve and opacity as a.\nc. Panel centred on the window (command palette, search, centred dialog): origin center, from translateY(8px) scale(0.94); a spring with a damping ratio of about 0.68 landing in 180ms (about 5% overshoot), as CSS linear(0, 0.0617, 0.2047, 0.3798, 0.5541, 0.708, 0.8325, 0.9253, 0.9888, 1.0278, 1.0478, 1.0542, 1.0518, 1.0446, 1.0352, 1.0256, 1.0171, 1.01, 1.0047, 1.0011, 1), falling back to 150ms cubic-bezier(0.18, 1.32, 0.32, 1); opacity 80ms ease-out. If it opens more than about 280ms after the key press, show it at once without the entrance.\nd. Window opened by a click on content (link or file preview, image viewer, card detail): origin the point clicked, clamped inside the window; from scale(0.78) on a spring with stiffness 600 and damping 26 (about 540ms, about 3% overshoot in size); opacity 110ms ease-out. The content behind recedes as in principle d. The window's own buttons follow 60ms later from scale(0.7) on a softer spring (stiffness 640, damping 38).\ne. Toolbar over content (text selection, floating actions): no overshoot. The surface fades in over 140ms and settles from translateY(-3px) scale(0.96) over 160ms, both ease. Its material widens from 0 over 240ms, the content area 20ms behind over 260ms, and the buttons slide in from 6-10px to the left, from opacity 0.72, over 280ms starting 30ms in, all on cubic-bezier(0.22, 1, 0.36, 1).\nf. Tooltip and hover card: from the side of the trigger, translate 4px toward it and scale(0.97), 140ms cubic-bezier(0.22, 1, 0.36, 1), opacity 100ms. No bounce.\ng. Accordion or expanding section: the height grows from 0 to its content (interpolate-size: allow-keywords, grid-template-rows from 0fr to 1fr, or a measured height) over 280ms cubic-bezier(0.22, 1, 0.36, 1), and what is below moves with it. The content fades in and slides 6px down, starting 40ms in; the chevron turns on the same curve. Collapsing takes 200ms, the content fading out first.\nh. List, grid or cards loading or changing: items rise 8px and fade in, 30ms apart, about eight at most, the rest together. A new item opens its own height from 0 while the others make room, then fades in; a removed one fades, then closes its gap.\ni. Toast or banner: from the edge it lives on, 12px out and scale(0.96), on a spring with stiffness 600 and damping 30; the toasts already shown shift on the same spring.\nj. Tab panel, sheet, drawer or page change: the outgoing view fades out over 120ms and moves 8px away from the direction of travel; the incoming one comes 8px from that direction over 240ms on cubic-bezier(0.22, 1, 0.36, 1), opacity 160ms. Sheets and drawers slide from their edge with no overshoot, the page behind receding as in principle d.\n\n3. Rules for every one\n- Animate transform and opacity (and heights or widths where the layout must move), and clear will-change when the motion ends.\n- A close or a new open interrupts the running motion from where it is, never from its start; opening and closing quickly never leaves an element stuck part-way, half transparent or in the wrong place.\n- When an element is already placed with a transform (centring with translate(-50%)), add the entrance on top of it (the Web Animations API with composite: 'add') so it lands where it was.\n- Springs: in CSS, sample the spring into linear() so it runs on the compositor. Libraries that take stiffness and damping (Motion, React Spring) use the numbers above with mass 1; SwiftUI and Compose take the damping ratio and a duration or response.\n- Reduced motion: no squash, offset, stagger or bounce; opacity only, and layout changes happen at once.\n\n4. The tuning panel\n- A small floating panel that tunes the entrances live on my real screens. A tab for each kind my product uses (the presets in section 2); under the tabs, one row per value: its name, a slider with the default marked on the track, and the value with its unit in a box.\n- Rows, defaults and ranges:\n  - Menu: Squash, the height it starts at, 0.86 (0.5-1); Offset 6px (0-24); Bounce, the curve's overshoot: cubic-bezier(0.2, y1, 0.35, 1) with y1 1.45 (1-2.2), shown as its overshoot, +6.6% (0-33%).\n  - Submenu: Squash, the width it starts at, 0.88 (0.5-1); Offset 8px (0-24); Bounce as for menus.\n  - Panel: Start scale 0.94 (0.6-1); Damping ratio 0.68 (0.35-1).\n  - Preview: Start scale 0.78 (0.5-1); Damping 26 at stiffness 600 (16-50).\n  - Toolbar: Lag, how far the buttons trail the surface, 30ms (0-120), the content area trailing by two thirds of it; Slide 10px (0-40).\n  - For the other kinds: Duration, Offset and Stagger, at the values above.\n  - On every tab: Speed, a factor on every duration, 1 (0.5-2).\n- Beside the tabs, a speed switch (1x and 0.25x) and a Replay button that plays the current element again at that speed; letting go of a slider replays it too. A Reset button, shown only once something has moved, puts the kind back to its defaults.\n- Under the rows, the curve: progress over time, with the overshoot's peak marked and its time in ms; it changes as the sliders move.\n- The panel writes the same motion tokens the components read, and a Copy button copies the current values in my project's token format, so what I settle on goes back into the code.\n- Use my slider and segmented-control components if I have them; otherwise a plain range input with an outlined track filled up to the value, an upright handle and a number box beside it, and tabs with a sliding knob.\n\n5. The report\nBefore changing anything, give me one table, one row per element:\n| Element | Triggered by, from where | Preset (2a-2j) | Today (transform, origin, duration, curve, what moves around it) | Change |\nThen list the shared changes (motion tokens, a spring helper, a stagger helper, the surface components) separately from the per-element ones. Ask me which rows to change, and change only those.\n\n6. Check the result\n- Slow everything down (DevTools' animation panel at 25%) and check each element: it comes from its trigger, squashed along the way it opens, is fully visible before it settles, and bounces no more than its size allows.\n- A submenu that flips to the left squashes and offsets from its right edge; a preview grows from the exact point clicked; the page behind never bounces.\n- Content under an accordion, items around a new list entry and stacked toasts move on the same curve as the element that changed, with no jump.\n- Containers lead and their content follows; lists stagger and stop staggering after about eight items.\n- Opening and closing quickly many times never leaves anything stuck, half transparent or in the wrong place.\n- With reduced motion on, everything only fades.\n- Every slider moves its element live; Reset brings back the defaults above.","skill":"/skills/kubai-elastic-entrances/SKILL.md","skillText":"# 让元素的入场更精致\n\n《999 个小技巧，让你 Vibe 的产品更有质感》第 027 期 · @kubai087\n\n在用户的项目里按下面的要求改造。要求以用户的口吻写成：文中的 I、me、my 指用户；写着要先问的地方，先停下来问用户再继续。\n\n## 改造要求\n\nRefine how things come into view in my product: every component and module that appears, opens, expands or is replaced. That covers overlays (menus, submenus, dropdowns, popovers, tooltips, hover cards, dialogs, sheets, drawers, command palettes, previews opened by a click), floating toolbars, toasts and banners, accordions and expanding sections, lists, grids and cards as they load or change, tab panels, and page or route changes. An entrance is never only a fade or a slide: movement, deformation and opacity work together, and so do the elements around the one that enters. A tuning panel shows the key numbers as sliders, set to the defaults below, so I can tune them live on my own screens. Diagnose first, 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 and motion tokens. Keep what each element shows, where it ends up and what triggers it; change only how it comes in, goes out and moves what is around it. Do not add a dependency without asking. Every value below is a default to start from.\n\n0. Read the product first\n- Find everything that appears or changes in place, and the component behind each: my own, or a library (Radix, Headless UI, Floating UI, MUI, Ant Design, Motion / Framer Motion, React Spring, View Transitions, SwiftUI, Compose).\n- For each, note what triggers it (a button, a row in another menu, hover, a shortcut, a click on content, a text selection, data arriving, navigation), which way it comes from (down, up, a side, an edge of the window, centred, the point clicked), its size, what around it should react, and how it animates today: transform, origin, duration, curve, opacity, and whether a close interrupts an open cleanly.\n- Find the motion tokens (durations, curves, springs), how reduced motion is handled, and my slider, segmented-control and panel components, if any.\n- Tell me in a few lines what you found, then ask me where the tuning panel (section 4) should live: only in development (recommended), behind a toggle, or not at all.\n\n1. Five principles for every entrance\na. A little bounce, sized to the element. Small things that open from a trigger (menus, popovers, small dialogs, chips) may run a few percent past their end and settle. The larger the element, the less it bounces: about 3% of its size at most for a large window, none for sheets, drawers, full panels and pages. Text never bounces on its own, and the page behind never bounces.\nb. Come from where it was triggered. Put the transform origin on the trigger's side (the corner by the button, the edge by the parent, the point clicked) and start 6-8px back toward it. Squash it along the way it opens, about 0.86 along that axis and 0.96 across it, and turn the squash and the offset with the direction when it flips. An element with no trigger (a centred palette, a page) scales evenly instead; one that slides in from an edge comes from that edge.\nc. Fast, and smaller the faster it is. Use fast-in, slow-out curves: cubic-bezier(0.22, 1, 0.36, 1) by default, cubic-bezier(0.2, 1.45, 0.35, 1) where a small overlay should bounce. Most entrances take 150-360ms. Opacity finishes in about half the transform's time, so the element is fully shown before it settles. The shorter the motion, the smaller its change: a 120ms entrance moves at most 4px and scales from 0.98; a 360ms one may squash to 0.86. Leaving is shorter, about 140-160ms on ease-in, with no bounce.\nd. Related elements move with it. Behind a dialog or preview, the content recedes to scale(0.95) and blurs about 4px over 360ms on cubic-bezier(0.2, 0.9, 0.1, 1), into its own background colour, without a bounce. Elements that share the space make room on the same curve and time as the one entering: the content under an expanding section moves down with its height, list items close up or open a gap, a stack of toasts shifts. An element that continues from one state to the next (a card that opens into a page) moves as one rather than being swapped.\ne. Container first, content after. The surface or container leads; the content inside starts 20-30ms later, sliding in from 4% of the width (6-10px) and from opacity 0.72 or 0; the items of a list or grid follow 20-40ms apart, up to about eight, then the rest together. The lag between the layers gives the give.\n\n2. Measured presets\na. Menu or dropdown below or above its trigger: origin the corner nearest the trigger; from translateY(-6px) scale(0.96, 0.86), the offset pointing back toward the trigger; transform 360ms cubic-bezier(0.2, 1.45, 0.35, 1) (about 6.6% past the end); opacity 170ms ease.\nb. Submenu to one side: from translateX(-8px) scale(0.88, 0.98) with origin left center when it opens to the right; translateX(8px) and origin right center when it flips left. Same curve and opacity as a.\nc. Panel centred on the window (command palette, search, centred dialog): origin center, from translateY(8px) scale(0.94); a spring with a damping ratio of about 0.68 landing in 180ms (about 5% overshoot), as CSS linear(0, 0.0617, 0.2047, 0.3798, 0.5541, 0.708, 0.8325, 0.9253, 0.9888, 1.0278, 1.0478, 1.0542, 1.0518, 1.0446, 1.0352, 1.0256, 1.0171, 1.01, 1.0047, 1.0011, 1), falling back to 150ms cubic-bezier(0.18, 1.32, 0.32, 1); opacity 80ms ease-out. If it opens more than about 280ms after the key press, show it at once without the entrance.\nd. Window opened by a click on content (link or file preview, image viewer, card detail): origin the point clicked, clamped inside the window; from scale(0.78) on a spring with stiffness 600 and damping 26 (about 540ms, about 3% overshoot in size); opacity 110ms ease-out. The content behind recedes as in principle d. The window's own buttons follow 60ms later from scale(0.7) on a softer spring (stiffness 640, damping 38).\ne. Toolbar over content (text selection, floating actions): no overshoot. The surface fades in over 140ms and settles from translateY(-3px) scale(0.96) over 160ms, both ease. Its material widens from 0 over 240ms, the content area 20ms behind over 260ms, and the buttons slide in from 6-10px to the left, from opacity 0.72, over 280ms starting 30ms in, all on cubic-bezier(0.22, 1, 0.36, 1).\nf. Tooltip and hover card: from the side of the trigger, translate 4px toward it and scale(0.97), 140ms cubic-bezier(0.22, 1, 0.36, 1), opacity 100ms. No bounce.\ng. Accordion or expanding section: the height grows from 0 to its content (interpolate-size: allow-keywords, grid-template-rows from 0fr to 1fr, or a measured height) over 280ms cubic-bezier(0.22, 1, 0.36, 1), and what is below moves with it. The content fades in and slides 6px down, starting 40ms in; the chevron turns on the same curve. Collapsing takes 200ms, the content fading out first.\nh. List, grid or cards loading or changing: items rise 8px and fade in, 30ms apart, about eight at most, the rest together. A new item opens its own height from 0 while the others make room, then fades in; a removed one fades, then closes its gap.\ni. Toast or banner: from the edge it lives on, 12px out and scale(0.96), on a spring with stiffness 600 and damping 30; the toasts already shown shift on the same spring.\nj. Tab panel, sheet, drawer or page change: the outgoing view fades out over 120ms and moves 8px away from the direction of travel; the incoming one comes 8px from that direction over 240ms on cubic-bezier(0.22, 1, 0.36, 1), opacity 160ms. Sheets and drawers slide from their edge with no overshoot, the page behind receding as in principle d.\n\n3. Rules for every one\n- Animate transform and opacity (and heights or widths where the layout must move), and clear will-change when the motion ends.\n- A close or a new open interrupts the running motion from where it is, never from its start; opening and closing quickly never leaves an element stuck part-way, half transparent or in the wrong place.\n- When an element is already placed with a transform (centring with translate(-50%)), add the entrance on top of it (the Web Animations API with composite: 'add') so it lands where it was.\n- Springs: in CSS, sample the spring into linear() so it runs on the compositor. Libraries that take stiffness and damping (Motion, React Spring) use the numbers above with mass 1; SwiftUI and Compose take the damping ratio and a duration or response.\n- Reduced motion: no squash, offset, stagger or bounce; opacity only, and layout changes happen at once.\n\n4. The tuning panel\n- A small floating panel that tunes the entrances live on my real screens. A tab for each kind my product uses (the presets in section 2); under the tabs, one row per value: its name, a slider with the default marked on the track, and the value with its unit in a box.\n- Rows, defaults and ranges:\n  - Menu: Squash, the height it starts at, 0.86 (0.5-1); Offset 6px (0-24); Bounce, the curve's overshoot: cubic-bezier(0.2, y1, 0.35, 1) with y1 1.45 (1-2.2), shown as its overshoot, +6.6% (0-33%).\n  - Submenu: Squash, the width it starts at, 0.88 (0.5-1); Offset 8px (0-24); Bounce as for menus.\n  - Panel: Start scale 0.94 (0.6-1); Damping ratio 0.68 (0.35-1).\n  - Preview: Start scale 0.78 (0.5-1); Damping 26 at stiffness 600 (16-50).\n  - Toolbar: Lag, how far the buttons trail the surface, 30ms (0-120), the content area trailing by two thirds of it; Slide 10px (0-40).\n  - For the other kinds: Duration, Offset and Stagger, at the values above.\n  - On every tab: Speed, a factor on every duration, 1 (0.5-2).\n- Beside the tabs, a speed switch (1x and 0.25x) and a Replay button that plays the current element again at that speed; letting go of a slider replays it too. A Reset button, shown only once something has moved, puts the kind back to its defaults.\n- Under the rows, the curve: progress over time, with the overshoot's peak marked and its time in ms; it changes as the sliders move.\n- The panel writes the same motion tokens the components read, and a Copy button copies the current values in my project's token format, so what I settle on goes back into the code.\n- Use my slider and segmented-control components if I have them; otherwise a plain range input with an outlined track filled up to the value, an upright handle and a number box beside it, and tabs with a sliding knob.\n\n5. The report\nBefore changing anything, give me one table, one row per element:\n| Element | Triggered by, from where | Preset (2a-2j) | Today (transform, origin, duration, curve, what moves around it) | Change |\nThen list the shared changes (motion tokens, a spring helper, a stagger helper, the surface components) separately from the per-element ones. Ask me which rows to change, and change only those.\n\n6. Check the result\n- Slow everything down (DevTools' animation panel at 25%) and check each element: it comes from its trigger, squashed along the way it opens, is fully visible before it settles, and bounces no more than its size allows.\n- A submenu that flips to the left squashes and offsets from its right edge; a preview grows from the exact point clicked; the page behind never bounces.\n- Content under an accordion, items around a new list entry and stacked toasts move on the same curve as the element that changed, with no jump.\n- Containers lead and their content follows; lists stagger and stop staggering after about eight items.\n- Opening and closing quickly many times never leaves anything stuck, half transparent or in the wrong place.\n- With reduced motion on, everything only fades.\n- Every slider moves its element live; Reset brings back the defaults above.\n"}