{"summary":"इंटरफ़ेस में तत्वों का निखरा आगमन विस्थापन, आकार-परिवर्तन और अपारदर्शिता के मेल से बनता है: संतुलित उछाल, ट्रिगर की दिशा से खुलना, चुस्त लय, आसपास के तत्वों का साथ और कंटेनर व सामग्री के बीच सूक्ष्म अंतराल के 5 डिज़ाइन सिद्धांत।","notes":"<p>प्रोडक्ट डिज़ाइन में किसी कॉम्पोनेंट या तत्व का स्क्रीन पर आना सिर्फ़ सादा फ़ेड-इन या सीधी खिसकन भर नहीं होता। अगर कोई मेन्यू या डायलॉग अपनी जगह पर बस धीरे-धीरे दिखने लगे, या बीच से एकसमान बड़ा हो जाए, तो ऐसा लगता है मानो वह हवा से अचानक प्रकट हो गया हो और पिछले ऐक्शन से उसका कोई रिश्ता ही न हो। बारीकी से गढ़ा गया आगमन विस्थापन, आकार के दबने-खुलने और अपारदर्शिता के बदलाव को एक साथ पिरोता है: गति की दिशा और कर्व, दबने की मात्रा व पास के तत्वों की प्रतिक्रिया, और अपारदर्शिता की शुरुआत व पूरा होने की रफ़्तार मिलकर अंतिम अहसास तय करते हैं। नीचे पाँच डिज़ाइन बारीकियों से समझते हैं कि ये सब आपस में कैसे जुड़ते हैं।</p>\n        <h2>संतुलित जड़त्व और हल्का उछाल</h2>\n        <p>भौतिक दुनिया की चीज़ों में जड़त्व होता है; वे मंज़िल पर पहुँचते ही झटके से जड़ नहीं हो जातीं। मेन्यू, ड्रॉपडाउन या कम सामग्री वाले पॉपअप जैसे खुलने वाले कॉम्पोनेंट जब अपनी जगह बैठते समय हल्का-सा उछाल लेते हैं, तो वे कठोर रुकावट की तुलना में कहीं अधिक सजीव और लचीले लगते हैं। मगर यह उछाल कुछ प्रतिशत के भीतर ही सीमित रहना चाहिए और “कॉम्पोनेंट जितना बड़ा, उछाल उतना कम” का नियम निभना चाहिए: छोटे मेन्यू पर हल्की लचक फबती है, मध्यम पैनल में कहीं अधिक संयम चाहिए, जबकि साइड ड्रॉअर, बॉटम शीट और पूरे पेज के बदलाव में उछाल बिल्कुल नहीं होना चाहिए—सतह जितनी बड़ी होगी, उसकी हलचल पूरी स्क्रीन को उतना ही अधिक हिलाएगी। इसी तरह, बंद करते समय उद्देश्य नज़र के सामने से तुरंत हटना होता है, इसलिए विदाई में कभी उछाल नहीं रखा जाता।</p>\n        <h2>ट्रिगर की दिशा से खुलना</h2>\n        <p>क्लिक या होवर करते वक़्त यूज़र की नज़र पहले से ही ट्रिगर पर टिकी होती है। जिन तत्वों का स्रोत स्पष्ट हो—जैसे Tooltip, ड्रॉपडाउन मेन्यू, कैस्केडिंग सबमेन्यू या अकॉर्डियन—उन्हें उसी ट्रिगर की दिशा से उगते हुए खुलना चाहिए: मूल बिंदु ट्रिगर के पास वाले किनारे पर रखें, खुलने की दिशा में तत्व को पहले थोड़ा दबाएँ और फिर अपने पूरे आकार में आने दें। उदाहरण के लिए, बटन के नीचे खुलने वाला मेन्यू ऊँचाई में स्पष्ट रूप से दबा हुआ पर चौड़ाई में लगभग पूरा शुरू हो, तो वह हवा में ज़ूम होने के बजाय बटन के भीतर से नीचे खुलता हुआ दिखता है; बगल से निकलने वाला सबमेन्यू यही दबाव चौड़ाई पर ले जाता है, और दाईं ओर जगह कम पड़ने पर जब बाईं ओर पलटता है तो अपना शुरुआती बिंदु भी साथ पलट लेता है; किसी लिंक या चित्र पर क्लिक से खुलने वाली प्रीव्यू विंडो सीधे क्लिक किए गए बिंदु से खिलती है। केंद्र से एकसमान ज़ूम केवल उन पैनलों के लिए उपयुक्त है जिनका कोई स्थानिक ट्रिगर नहीं होता, जैसे शॉर्टकट से खुलने वाला कमांड पैलेट। तत्व कहाँ से आया यह साफ़ दिखने से दृश्य प्रवाह बना रहता है और इंटरैक्शन हाथ के इशारे से जुड़ा महसूस होता है।</p>\n        <h2>लय चुस्त और फुर्तीली रखें</h2>\n        <p>किसी कामकाजी इंटरफ़ेस में एनिमेशन का काम दो स्थितियों को सहजता से जोड़ना है, यूज़र को रोककर तमाशा दिखाना नहीं। आगमन के लिए तेज़ शुरुआत और धीमे ठहराव वाले कर्व चुनें (देखें <a href=\"/hi/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 टूल में कॉपी करें: यह पहले आपके प्रोडक्ट के विभिन्न कॉम्पोनेंट्स और मॉड्यूल्स के आगमन—मेन्यू, डायलॉग, प्रीव्यू विंडो और फ़्लोटिंग टूलबार से लेकर Tooltip, अकॉर्डियन, सूची, 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"}