{"summary":"ドラッグによる並べ替えのカーソル、ドロップ位置を示すライン、両側の要素がよける動き。リスト、カンバン、横並びのレイアウト向けです。","notes":"<p>多くのドラッグ並べ替えでは、ドラッグ中はほかの要素が動かず、離した瞬間にリストが急に並び替わります。どの2つの間に入ったかは、離したあとで確認するしかありません。次の5つで、離す前に結果が分かるようにします：</p>\n        <ol>\n        <li><strong>カーソル</strong>：ドラッグできる要素すべてに設定します。ホバー時は手の形、ドラッグ中はつかんだ手の形を表示し、押す前からドラッグできることが分かるようにします。</li>\n        <li><strong>ドラッグ中の要素</strong>：ポインタに追従しつつ、ドロップ位置を避けて、ドロップラインを隠さないようにします。横並びでは上に浮かせ、縦のリストでは横にずらして約 90% に縮小します。元の位置はそれに合わせて詰めます。</li>\n        <li><strong>ドロップライン</strong>：ドロップ位置を示す、ごく薄い細い線で、色はテキスト色の約 15% です。横並びでは縦向き、リストでは横向きにします。表示するときは中央から両端へ広げ、ドロップ位置が変わったら平行移動させます。要素の元の位置には表示しません。</li>\n        <li><strong>よける動き</strong>：ドロップラインの両側の要素が外側へよけます。近い要素ほど大きく、早く動きます。移動量 = 10px × 0.7ⁿ、遅延 = 24ms × n で、n はドロップラインとの間にある要素の数です。隣接する要素は 0 です。アイコンは 10px、カードは 8px から始めます。</li>\n        <li><strong>ドロップとキャンセル</strong>：離すと要素が空いた位置に入り、ほかの要素はスプリングアニメーションで新しい位置へ移動します。Esc を押すか、リストの外で離した場合はキャンセルとし、すべての要素を元の位置に戻します。</li>\n        </ol>\n        <p>なお、要素は transform だけで動かし、レイアウトは変えません。並べ替えはキーボードでもできるようにします。「視差効果を減らす」がオンのときは、ドロップラインだけを残します。</p>\n        <h2>パラメーター</h2>\n        <dl class=\"params\">\n        <dt>移動量</dt><dd>アイコン 10px；カード 8px；1つ離れるごとに × 0.7</dd>\n        <dt>遅延</dt><dd>1つ離れるごとに +24ms</dd>\n        <dt>スプリング</dt><dd>オーバーシュートはごくわずか；約 0.25s で静止</dd>\n        <dt>ドロップライン</dt><dd>テキスト色の約 15%</dd>\n        </dl>\n        <p>付属の Prompt は、プロジェクトの既存のドラッグ処理を再利用して、この効果を指定したリスト、行、Dock に追加します。</p>","prompt":"Make drag-to-reorder in my product feel like this. Apply it to the lists,\nrows and docks I name, and reuse any drag helper the project already has.\n\n1. Cursor: a pointing hand over anything draggable, a grabbing hand while\n   dragging.\n2. Lift: the picked item follows the pointer, raised off the list so it\n   never hides where it will land: above a horizontal row, or pulled aside\n   and shrunk to about 90% in a vertical list. Its old slot closes up.\n3. Drop hint: a faint, thin line in the gap where it will land (vertical in\n   a row, horizontal in a list), about 15% of the text color. It grows from\n   its middle when it appears and glides to each new gap. No line over the\n   item's own slot.\n4. Ripple: items on both sides of the line lean away from it. Counting n\n   from the line (0 = the item touching it), item n moves\n   A x 0.7^n (A is about 10px for icons, 8px for cards)\n   and starts 24ms x n later, on a quick spring that barely overshoots and\n   settles in about 0.25s. Nearer items move sooner and further, so the\n   push spreads out like a ripple.\n5. Drop: the item takes the gap and every item springs into its new place.\n   Escape or dropping outside the list cancels, and everything springs back.\n6. Give each motion its own curve (hand-like for the pointer, a small pop\n   for the lift, springs for settling) instead of one ease-out everywhere.\n\nMove things with transforms, not layout. Let the keyboard reorder too, and\nwith reduced motion keep only the line.","skill":"/skills/kubai-drag-ripple/SKILL.md","skillText":"# 带避让动效的拖拽排序\n\n《999 个小技巧，让你 Vibe 的产品更有质感》第 005 期 · @kubai087\n\n在用户的项目里按下面的要求改造。要求以用户的口吻写成：文中的 I、me、my 指用户；写着要先问的地方，先停下来问用户再继续。\n\n## 改造要求\n\nMake drag-to-reorder in my product feel like this. Apply it to the lists,\nrows and docks I name, and reuse any drag helper the project already has.\n\n1. Cursor: a pointing hand over anything draggable, a grabbing hand while\n   dragging.\n2. Lift: the picked item follows the pointer, raised off the list so it\n   never hides where it will land: above a horizontal row, or pulled aside\n   and shrunk to about 90% in a vertical list. Its old slot closes up.\n3. Drop hint: a faint, thin line in the gap where it will land (vertical in\n   a row, horizontal in a list), about 15% of the text color. It grows from\n   its middle when it appears and glides to each new gap. No line over the\n   item's own slot.\n4. Ripple: items on both sides of the line lean away from it. Counting n\n   from the line (0 = the item touching it), item n moves\n   A x 0.7^n (A is about 10px for icons, 8px for cards)\n   and starts 24ms x n later, on a quick spring that barely overshoots and\n   settles in about 0.25s. Nearer items move sooner and further, so the\n   push spreads out like a ripple.\n5. Drop: the item takes the gap and every item springs into its new place.\n   Escape or dropping outside the list cancels, and everything springs back.\n6. Give each motion its own curve (hand-like for the pointer, a small pop\n   for the lift, springs for settling) instead of one ease-out everywhere.\n\nMove things with transforms, not layout. Let the keyboard reorder too, and\nwith reduced motion keep only the line.\n"}