{"summary":"O cursor, a linha de soltura e o movimento com que os vizinhos abrem espaço ao arrastar para reordenar, em listas, quadros kanban e fileiras horizontais.","notes":"<p>Em muitas listas reordenáveis por arrasto, os outros itens não se mexem durante o arrasto e a lista se reorganiza de repente ao soltar; para saber entre quais dois itens o elemento caiu, é preciso conferir depois. Estes cinco pontos deixam o usuário ver o resultado antes de soltar:</p>\n        <ol>\n        <li><strong>Cursor</strong>: vale para todos os itens que podem ser arrastados. Ao passar o cursor aparece a mão aberta, e ao arrastar, a mão segurando; o usuário sabe que dá para arrastar antes mesmo de pressionar.</li>\n        <li><strong>Item arrastado</strong>: acompanha o ponteiro e ao mesmo tempo se afasta do ponto de soltura, para não cobrir a linha. Numa fileira horizontal, ele sobe; numa lista vertical, vai para um lado e encolhe para cerca de 90%. O lugar onde ele estava se fecha.</li>\n        <li><strong>Linha de soltura</strong>: marca onde o item vai cair. É uma linha fina e bem clara, com cerca de 15% da cor do texto; vertical numa fileira, horizontal numa lista. Ao aparecer, ela se abre do centro para as pontas e, quando o ponto de soltura muda, desliza até ele; não aparece na posição original do item.</li>\n        <li><strong>Abrir espaço</strong>: os itens dos dois lados da linha se afastam; quanto mais perto, mais se deslocam e mais cedo começam: deslocamento = 10px × 0,7ⁿ, atraso = 24ms × n, em que n é o número de itens entre ele e a linha (0 para o vizinho imediato). Ícones começam em 10px e cards em 8px.</li>\n        <li><strong>Soltar e cancelar</strong>: ao soltar, o item entra no espaço vazio e os demais vão para a nova posição com um movimento de mola; apertar Esc ou soltar fora da lista cancela, e tudo volta ao lugar.</li>\n        </ol>\n        <p>Além disso, os itens se movem só com transform, sem alterar o layout; a reordenação também precisa funcionar pelo teclado; com “Reduzir movimento” ativado, só a linha de soltura permanece.</p>\n        <h2>Parâmetros</h2>\n        <dl class=\"params\">\n        <dt>Deslocamento</dt><dd>Ícones 10px; cards 8px; × 0,7 a cada item mais distante</dd>\n        <dt>Atraso</dt><dd>+24ms a cada item mais distante</dd>\n        <dt>Mola</dt><dd>Quase sem ultrapassar; estabiliza em cerca de 0,25s</dd>\n        <dt>Linha de soltura</dt><dd>Cerca de 15% da cor do texto</dd>\n        </dl>\n        <p>O prompt que acompanha esta dica reaproveita a lógica de arrasto que o projeto já tem e aplica esse efeito às listas, fileiras e docks que você indicar.</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"}