跳到正文
Skillpedia
界面(UI/UX)6.0k · #14455

transitions-dev

它能做什么

这项技能为 AI 提供一组可直接复制使用的 CSS 动画,适用于常见的界面部件。适合希望不借助框架也能做出精致动效的网页开发者。

适用场景

  • ✓当你在制作弹窗、下拉菜单、工具提示或折叠面板,并希望它有动画效果时。
  • ✓当你需要数字、文字或图标的变化以流畅的方式呈现动画时。
  • ✓当你希望页面或面板切换时的过渡效果,遵循减少动态效果的设置时。

技能链接

https://github.com/Jakubantalik/transitions.dev/blob/main/skills/transitions-dev/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/Jakubantalik/transitions.dev/blob/main/skills/transitions-dev/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请用现成的 CSS 过渡效果,为我的网站添加一个流畅的弹窗打开和关闭动画。”

每周 5 个新技能,1 分钟读完。

工作原理

智能体选择匹配的过渡效果,添加所需的 CSS,并连接它需要的 HTML 钩子。每个效果都包含减少动态效果的保护措施。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Transitions.dev

Thirty-two portable CSS transitions, each namespaced under t-* selectors with semantic CSS custom properties. Drop-in: paste the snippet, wire the documented HTML hooks, done. No framework dependencies, no demo-specific markup, and every snippet ships a prefers-reduced-motion guard.

Quick reference

Transition When to use Reference
Card resize Tween a container's width or height when its layout state changes. 01-card-resize.md
Number pop-in Re-enter each digit with a blurred slide when a number updates. 02-number-pop-in.md
Notification badge Slide a small badge onto a trigger and pop the dot. 03-notification-badge.md
Text states swap Swap text in place with a blurred up-and-down transition. 04-text-states-swap.md
Menu dropdown Open an origin-aware dropdown that grows from its trigger. 05-menu-dropdown.md
Modal open / close Scale-up modal dialog with a softer scale-down on close. 06-modal.md
Panel reveal Slide a panel into a region with a cross-blur. 07-panel-reveal.md
Page side-by-side Slide between two side-by-side pages (list ↔ detail, step 1 ↔ step 2). 08-page-side-by-side.md
Icon swap Cross-fade two icons in the same slot with blur and scale. 09-icon-swap.md
Success check Compose fade + rotate + Y-bob + path stroke-draw to celebrate a completed action. 10-success-check.md
Avatar group hover Distance-falloff lift on a row of items with a bouncy spring on return. 11-avatar-group-hover.md
Error state shake Per-segment cubic-bezier shake with auto-reverting border + message. 12-error-state-shake.md
Input clear with dissolve Fly-out + per-word streak when a text field is cleared. 13-input-clear-dissolve.md
Skeleton loader and reveal Pulse a placeholder, then cross-fade + cross-blur to the loaded content. 14-skeleton-reveal.md
Shimmer text Sweep a highlight band across muted text on a loop (pure CSS). 15-shimmer-text.md
Tabs sliding Slide the active pill between tabs in a segmented control. 16-tabs-sliding.md
Tooltip open/close Delayed fade+scale in, instant out, travels between triggers. 17-tooltip.md
Texts reveal Staggered blurred rise for stacked text lines, quiet fade out. 18-texts-reveal.md
Card hover tilt Tilt a card in 3D toward the pointer with a cursor-tracked glare. 19-card-tilt.md
Plus to menu morph Morph a circular trigger into the menu / panel it opens. 20-plus-menu-morph.md
Accordion expand Grow / shrink a panel via grid-rows with a chevron flip. 21-accordion.md
Toast open / close Rise a toast from below with fade + cross-blur, slower in than out. 22-toast.md
Like button Fill a heart with a pop + particle burst on like. 23-like-button.md
Learn more hover Slide the chevron and spread its arms into an arrow on hover. 24-learn-more-hover.md
Checkbox check Fill the box, then stroke-draw the checkmark. 25-checkbox-check.md
Spinning counter Spin slot-machine digit reels with vertical motion blur. 26-spinning-counter.md
Toggle Travel the switch thumb with a double-bounce overshoot. 27-toggle.md
Thinking states Shimmer a status line while it holds, then swap it to the next state. 28-thinking-states.md
Reasoning stream Step an agent-reasoning transcript up two lines at a time on a loop. 29-reasoning-stream.md
Streaming text Resolve streamed words one by one through a soft cross-blur. 30-streaming-text.md
Matrix dot loader Pulse a 4×4 dot matrix in scan / twinkle / orb
常见问题

它需要 JavaScript 框架吗?

不需要。这些过渡效果不依赖任何框架。

它尊重减少动态效果的设置吗?

尊重。每个代码片段都包含 prefers-reduced-motion 保护。

一共有多少种过渡效果?

这项技能中共有三十二种可移植的过渡效果。

详情

作者的原始描述

Production-ready CSS transitions for web apps. Use when implementing notification badges, dropdowns, modals, panel reveals, page transitions, card resizes, number pop-ins, text swaps, icon swaps, success checks, avatar group hovers, error state shakes, search/input clear, skeleton loaders, shimmer text, sliding tabs, tooltips, staggered text reveals, card hover tilt, plus-to-menu morph, accordions, toasts, like buttons, learn-more hovers, checkbox checks, spinning counters, toggles, AI thinking states, reasoning streams, streaming text, matrix dot loaders, or banner stacking. Triggers on "add

repo: Jakubantalik/transitions.dev

热度

GitHub 星标
6.0k
排名
#14455
许可证
—
更新时间
2026/10/29

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能