css-spring
БесплатноБез исполняемых скриптовНе проверенGenerate a CSS spring or bounce easing as a linear() function. Use when the user asks for a spring, a bounce, a bouncier or springier easing, or a linear()…
от motiondivision★ 154 звезды на GitHubОб этом скилле
Generate a CSS spring or bounce
Springs and bounces are not native CSS easings, so Motion approximates them by
sampling the curve into a linear() easing function. One tool covers both.
Usage
generate-css-easing({ kind, duration, bounce })
- kind —
"spring"(default) for the usual springy settle, or"bounce"for a ball landing on a hard surface. - duration (seconds) — the perceptual duration: how long the motion
appears to take. Defaults to
0.4for a spring and1for a bounce. - bounce (0 to 1) — how much the spring overshoots.
0is a firm settle with no overshoot,1is maximum wobble. Defaults to0.2.
The one thing that is easy to get wrong
bounce means two different things in the same sentence, so read carefully:
- As a kind,
"bounce"is the gravity-like bouncing-ball easing. - As a parameter,
bounceis the springiness of a spring.
When kind is "bounce", the bounce parameter is ignored — the feel of a
bounce is controlled by duration alone.
Reading the result
The tool returns the <duration> <easing> half of a CSS transition, so use it
as transition: <property> <result>;.
For a spring, that duration is longer than the one you asked for, because it includes the settle after the motion has visually arrived. Time any sibling animations off the duration you asked for, not the one that came back:
/* generate-css-easing({ kind: "spring", duration: 0.2, bounce: 0.3 }) */
transition:
opacity 0.2s linear,
transform 0.35s linear(0, 0.28, 0.78, 1.04, ...);
Choosing values
- Snappy or quick: around
0.2s - Normal:
0.3sto0.4s - Slow or heavy: around
1s - Bounces read better long.
1sfeels like normal gravity; shorter feels heavier, longer feels lighter or lower-gravity. - Match the product. A stock-trading interface should not overshoot. A wedding site can afford softer curves and longer durations.
Examples
"Generate a bouncy spring for a modal entrance"
→ generate-css-easing({ kind: "spring", duration: 0.35, bounce: 0.4 })
"Make this drop like it hits the floor"
→ generate-css-easing({ kind: "bounce", duration: 1 })
Only for CSS
This is for hand-written CSS. Inside Motion, use a spring transition directly —
{ type: "spring", visualDuration: 0.4, bounce: 0.2 } — rather than pasting a
sampled curve. The real spring can be interrupted mid-flight and pick up the
current velocity; a linear() approximation cannot.
Установить css-spring в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл css-spring?
Generate a CSS spring or bounce easing as a linear() function. Use when the user asks for a spring, a bounce, a bouncier or springier easing, or a linear() curve in CSS.
Как установить скилл css-spring?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл css-spring запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
frontend-design
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
от Anthropicwebapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
от Anthropicbrand-guidelines
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
от Anthropicweb-artifacts-builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…
от Anthropic