Strike
Bulk delete, clear all. Comes in fast and the items scatter.
- Training moved to 19:00
- New message from Coach
- Kit order shipped
- Your stats are ready
- Match report is live
- Sport
- Bowling
- Move
- Comes in fast and the items scatter.
- For
- Bulk delete, clear all
ball rolls 320ms · pins scatter 560ms · reduced: fade
01 Install
npx shadcn@latest add https://moveui-red.vercel.app/r/strike.jsonIt brings the tokens with it. The first time, import the tokens once in your root layout:
import "@/components/moveui/tokens.css";Not using shadcn? Copy the files below into components/moveui/, and tokens.css next to them.
02 Use it
import "@/components/moveui/strike/strike.css";
// Set data-struck to bowl. Remove the rows when the last pin's animation ends.
<div className="ml-strike" data-struck={cleared ? "" : undefined} style={{ "--n": items.length } as React.CSSProperties}>
<span className="ml-strike-ball" aria-hidden="true" />
{items.map((item, i) => (
<div key={item.id} className="ml-strike-pin" style={{ "--i": i } as React.CSSProperties}>{item.text}</div>
))}
</div>03 Or ask your agent
Paste this into Claude Code, Cursor or any coding agent. It installs the piece and wires it in.
Add the Move UI "Strike" piece to this project. It's for: Bulk delete, clear all.
1. Install it: npx shadcn@latest add https://moveui-red.vercel.app/r/strike.json
2. If the project doesn't import the Move UI tokens yet, add this once to the root layout: import "@/components/moveui/tokens.css";
3. Use it like this, adapted to where it belongs in my code:
import "@/components/moveui/strike/strike.css";
// Set data-struck to bowl. Remove the rows when the last pin's animation ends.
<div className="ml-strike" data-struck={cleared ? "" : undefined} style={{ "--n": items.length } as React.CSSProperties}>
<span className="ml-strike-ball" aria-hidden="true" />
{items.map((item, i) => (
<div key={item.id} className="ml-strike-pin" style={{ "--i": i } as React.CSSProperties}>{item.text}</div>
))}
</div>
Keep its reduced-motion behaviour and keyboard support. Don't hardcode durations, easing or colours: they come from the --ml-* tokens.
Docs: https://moveui-red.vercel.app/pieces/strikeWant your agent to know the whole library and its motion rules? Add the Move UI skill to your project:
npx shadcn@latest add https://moveui-red.vercel.app/r/skill.json04 Code
/*
Strike (bowling): the ball comes down the lane and the pins scatter. For bulk delete and "clear all".
Put .ml-strike on the list, .ml-strike-pin on each row with --i (its index), --n on the list (the count),
and an optional <span class="ml-strike-ball"> inside the list. Set [data-struck] on the list to bowl:
the ball rolls down the left edge and each row is knocked out as the ball reaches it, alternating sides,
spinning. Remove the rows on animationend of the last pin. Reduced motion: the rows fade, no ball.
*/
.ml-strike { position: relative; --n: 1; --_lane: var(--ml-dur-base); }
.ml-strike-pin {
--i: 0;
--_s: calc(mod(var(--i), 2) * 2 - 1); /* -1 or 1: which way it flies */
--_v: calc(mod(var(--i), 3) - 1); /* -1, 0 or 1: up, flat or down */
}
.ml-strike[data-struck] .ml-strike-pin {
pointer-events: none;
animation: ml-strike-out var(--ml-dur-travel) both;
animation-delay: calc(var(--i) * var(--_lane) / var(--n));
}
@keyframes ml-strike-out {
/* the hit: knocked back the other way for a frame */
0% { opacity: 1; transform: none; animation-timing-function: var(--ml-ease-out); }
14% { transform: translateX(calc(var(--_s) * -6px)) rotate(calc(var(--_s) * -2deg)); animation-timing-function: cubic-bezier(0.3, 0, 0.8, 0.4); }
/* the scatter: off to the side, tumbling */
100% { opacity: 0; transform: translate(calc(var(--_s) * 70%), calc(var(--_v) * 40px - 12px)) rotate(calc(var(--_s) * 24deg)); }
}
.ml-strike-ball {
position: absolute; left: -4px; top: 0; z-index: 1;
width: 18px; height: 18px; border-radius: 50%;
background: var(--ml-chrome); box-shadow: var(--ml-chrome-edge);
opacity: 0; pointer-events: none;
}
.ml-strike[data-struck] .ml-strike-ball { animation: ml-strike-ball calc(var(--_lane) + 120ms) cubic-bezier(0.4, 0, 0.9, 0.7) both; }
@keyframes ml-strike-ball {
0% { opacity: 0; top: -24px; rotate: 0deg; }
10% { opacity: 1; }
90% { opacity: 1; }
100% { opacity: 0; top: 100%; rotate: 540deg; }
}
@media (prefers-reduced-motion: reduce) {
@keyframes ml-strike-out { to { opacity: 0; } }
.ml-strike[data-struck] .ml-strike-ball { animation: none; }
}
