Communitygithub.com

CharbelElBateh/personal-website

反向查询术语表:将网页动画或动效的模糊描述转换为精确术语(例如“弹出窗口打开时那种弹性效果”→ Pop in;“iOS 橡皮筋滚动”→ Rubber-banding)。当用户问“那个叫什么来着...”或描述动效但不知其名时使用,旨在命名效果,而非设计或构建。

personal-website 是什么?

这是一个专业的动画词汇辅助技能,专为开发者和AI代理用户设计,帮助他们将模糊的动效描述精准匹配到正确的技术术语。其核心价值在于消除沟通歧义,使用户能准确地向AI或设计师提出需求。该技能维护了一份详尽的术语表,涵盖入场出场、序列计时、移动变换、状态过渡、滚动、交互反馈、缓动、弹簧动画、循环动效、润色效果及性能优化等十余个类别。使用时,用户只需描述感觉(如“弹簧感”、“滑出”),技能便会返回最匹配的术语及简短解释。对于相近术语(如 clip-path 与 mask),它会进行辨析以帮助选择。如果没有完全匹配,则提供最接近的近似术语。该技能适用于任何需要文本或代码生成AI的场景,特别是前端开发、UI设计、动效原型设计等对话中。

兼容平台~Claude Code~Codex CLI✓Cursor
npx skills add https://github.com/CharbelElBateh/personal-website/tree/HEAD/.claude/skills/animation-vocabulary

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

动画词汇

初始回应

当首次调用该技能且没有具体问题时,仅回复:

我已经准备好为您描述的任何动效命名,我的知识来源于 Emil Kowalski 的动画哲学。

在用户提出问题之前,不提供任何其他信息。

将模糊的动效描述转化为精确术语,让用户知道该如何提问。

快速开始

用户松散地描述一个效果。您返回匹配的术语,格式如下:

**Stagger(交错动画)** — 多个元素依次播放动画,彼此之间有一个小延迟,形成级联效果。

如果可能匹配多个术语,先列出最佳匹配,然后列 1-2 个备选,并附上一行说明它们之间的区别。

使用说明

  1. 理解意图,而非关键词。 用户描述的是他们 看到 或 感受到 的(“有弹性的”、“滑出去”、“自己画出来”),而非技术名称。将感受映射到下面的术语表。
  2. 逐字引用术语表。 其中的描述是权威的 — 直接按原文使用,不要转述。
  3. 辨析相近术语。 当两个术语相近时(Clip-path(剪裁路径) vs Mask(遮罩)、Pop in(弹入) vs Bounce(弹跳)、Shared element transition(共享元素过渡) vs Layout animation(布局动画)),对比它们以便用户选择。
  4. 没有完全匹配时, 给出最接近的术语,并明确说明这只是近似值,或者用术语表中的词汇描述该效果(例如,“这是一个 scale-in(缩入) 入口的 stagger(交错动画)”)。
  5. 保持在本术语表范围内。 如果某个术语的确不在其中,请如实告知,而不是编造一个 — 不过您可以使用这些词汇来解释该概念。
  6. 保持简洁。 命名问题只需要一个名称,而非一篇论文。以术语开头;只有被问到时才展开。

示例

示例 1 — 基于感觉 用户:“当一个弹出窗口似乎从你点击的按钮中生长出来,而不是从它的中间生长出来,这叫什么?” 输出:

**Origin-aware animation(原点感知动画)** — 元素从其触发点开始动画,例如弹出窗口从打开它的按钮中生长出来,而不是从它自己的中心(这是 CSS 的默认行为)。

示例 2 — 辨析 用户:“一张图片变成另一张图片的那个东西。” 输出:

**Morph(变形)** — 一个形状平滑地变成另一个形状,例如灵动岛。

相近备选:
- **Crossfade(交叉淡入淡出)** — 如果它们只是在同一位置相互重叠淡出/淡入。
- **Shared element transition(共享元素过渡)** — 如果一个元素从一个位置移动到另一个位置并发生变形。

示例 3 — 物理感觉 用户:“iOS 那种滚动,当你拉过头时会产生阻力然后弹回去。” 输出:

**Rubber-banding(橡皮筋滚动)** — 拖拽超过边界时的阻力和弹回效果(iOS 的过滚动感觉)。

术语表

经过整理的快照,与项目的 /vocabulary 页面保持一致;当任一方发生变化时,保持两者同步。

入场与出场 — 元素如何出现和消失

  • Fade in / Fade out(淡入/淡出) — 元素通过改变透明度来出现或消失。
  • Slide in(滑入) — 元素从屏幕外(左、右、上或下)滑入。
  • Scale in(缩入) — 元素在出现时从小变大,通常伴随淡入效果。
  • Pop in(弹入) — 元素出现时带有轻微的过冲,像是弹入到位。
  • Reveal(揭示) — 内容逐渐被揭开,通常通过动画化一个剪裁路径或遮罩来实现。
  • Enter / Exit(进入/退出) — 元素被添加到屏幕或从屏幕移除时播放的动画。

序列与时机 — 协调多个元素或时刻

  • Keyframes(关键帧) — 动画中定义的点(0%、50%、100%),浏览器填充之间的帧。
  • Interpolation / Tween(插值/补间动画) — 在起始值和结束值之间生成所有中间帧,使运动是连续的。
  • Stagger(交错动画) — 多个元素依次播放动画,彼此之间有一个小延迟,形成级联效果。
  • Orchestration(编排) — 精心安排多个动画的时序,使它们感觉像是一个协调的运动。
  • Delay(延迟) — 动画开始前的等待时间。
  • Duration(持续时间) — 动画持续的时长。
  • Fill mode(填充模式) — 元素在动画开始前或结束后是否保持其第一帧或最后一帧的样式(例如 forwards)。
  • Stepped animation(步进动画) — 分成离散步骤的动画,例如倒计时器。

移动与变换 — 改变元素的位置、大小或角度

  • Translate(平移) — 沿 X 或 Y 轴移动元素。
  • Scale(缩放) — 使元素变大或变小。
  • Rotate(旋转) — 使元素绕某点旋转。
  • Skew(倾斜) — 沿 X 或 Y 轴倾斜元素,使其偏离矩形形状。
  • 3D tilt / Flip(3D 倾斜/翻转) — 在 3D 空间中旋转(rotateX / rotateY)以增加深度。
  • Perspective(透视) — 3D 效果的强度 — 值越小,深度越夸张,就像观察者离得更近。
  • Transform origin(变换原点) — 缩放或旋转从之生长或旋转的锚点。
  • Origin-aware animation(原点感知动画) — 元素从其触发点开始动画,例如弹出窗口从打开它的按钮中生长出来,而不是从它自己的中心(这是 CSS 的默认行为)。

状态间的过渡 — 连接一个状态、视图或元素到另一个

  • Crossfade(交叉淡入淡出) — 一个元素淡出,另一个元素在同一位置淡入。
  • Continuity transition(连续性过渡) — 通过视觉连接变化前后,让用户保持导向感的过渡。例如,将同一个矩形变大变小。
  • Morph(变形) — 一个形状平滑地变成另一个形状,例如灵动岛。
  • Shared element transition(共享元素过渡) — 一个元素从一个位置移动到另一个位置并发生变形,例如缩略图展开成卡片。
  • Layout animation(布局动画) — 当元素的大小或位置发生变化时,它会动画移动到新位置,而不是瞬间跳转。
  • Accordion / Collapse(手风琴/折叠) — 一个部分平滑地展开和折叠其高度以显示或隐藏内容。
  • Direction-aware transition(方向感知过渡) — 内容前进时向一个方向滑动,后退时向相反方向滑动,使导航有方向感。

滚动 — 与滚动或视图间导航相关的动作

  • Scroll reveal(滚动揭示) — 元素在进入视口时淡入或滑入到位。
  • Scroll-driven animation(滚动驱动动画) — 进度直接与滚动位置关联的动画。
  • Parallax(视差滚动) — 滚动时背景和前景以不同速度移动,产生深度感。
  • Page transition(页面过渡) — 从一页或路由导航到另一页时播放的动画。
  • View transition(视图过渡) — 浏览器在两个状态或页面之间变形,连接共享元素。

反馈与交互 — 响应用户的操作

  • Hover effect(悬停效果) — 光标移到元素上时发生的视觉变化。
  • Press / Tap feedback(按下/点击反馈) — 点击元素时微小的缩放效果,使其更有物理感。
  • Hold to confirm(长按确认) — 用户按住按钮时填充的进度效果。
  • Drag(拖拽) — 通过抓取移动元素,松开时通常带有惯性。
  • Drag to reorder(拖拽排序) — 拖拽列表中的项目以重新排列,其他项目会移动腾出空间。
  • Swipe to dismiss(滑动消除) — 将元素拖出屏幕以关闭它,例如抽屉或提示条。
  • Rubber-banding(橡皮筋滚动) — 拖拽超过边界时的阻力和弹回效果(iOS 的过滚动感觉)。
  • Shake / Wiggle(抖动/晃动) — 快速左右抖动,表示错误或输入被拒绝。
  • Ripple(涟漪) — 从点击点扩散的圆形,确认按压。

缓动 — 速度如何随时间变化

  • Easing(缓动) — 动画加速或减速的速率。
  • Ease-out(缓出) — 开始快,结束慢。大多数 UI 和任何响应式交互的默认值。
  • Ease-in(缓入) — 开始慢,结束快。通常应避免;可能感觉迟钝。
  • Ease-in-out(缓入缓出) — 慢,快,慢。适合已在屏幕上的元素从 A 点移到 B 点。
  • Linear(线性) — 恒定速度。避免用于 UI;仅用于加载旋转器或跑马灯。
  • Cubic-bezier(三次贝塞尔曲线) — 自定义缓动曲线,用于精确控制。
  • Asymmetric easing(非对称缓动) — 加速和减速速率不同的曲线。比对称曲线感觉更生动。

弹性动画 — 基于物理的运动,作为固定持续时间缓动的替代

  • Spring(弹性动画) — 由物理(张力、质量、阻尼)驱动的运动,而非固定时长。
  • Stiffness / Tension(刚度/张力) — 弹簧拉向目标的力度。值越高感觉越快。
  • Damping(阻尼) — 弹簧稳定下来的速度。阻尼越小,弹跳和振荡越多。
  • Mass(质量) — 动画元素感觉有多重。质量越大,运动越慢、越笨重。
  • Bounce(弹跳) — 过冲然后稳定下来的弹簧运动,增加趣味性。
  • Perceptual duration(感知持续时间) — 弹簧感觉结束的时间,即使它在底层继续微调。
  • Momentum(动量) — 带有速度的运动,尤其是在拖拽或中断后。
  • Velocity(速度) — 元素移动的快慢和方向。弹簧动画在中断时会保持速度,因此抛出的元素会保持其速度进入下一个动画。
  • Interruptible animation(可中断动画) — 可以在运行中平滑改变方向的动画,而不是必须完成当前循环。

循环与环境动效 — 自行播放的动画

  • Marquee(跑马灯) — 文本或内容连续循环滚动。
  • Loop(循环) — 重复播放的动画,可以是有限次或无限次。
  • Alternate (yoyo)(交替循环/溜溜球) — 每次迭代先正向播放再反向播放的循环,而不是跳回起点。
  • Orbit(轨道运动) — 一个元素围绕另一个元素沿连续路径旋转。
  • Pulse(脉冲) — 柔和的重复缩放或透明度变化,以吸引注意力。
  • Float(漂浮) — 柔和的、持续的上下浮动,使静止的元素感觉生动且失重。
  • Idle animation(空闲动画) — 元素只是待在那里等待交互时播放的微妙运动。

润色与效果 — 区分优秀与卓越的小细节

  • Blur(模糊) — 用于柔化元素或掩盖微小瑕疵的模糊滤镜。
  • Clip-path(剪裁路径) — 将元素剪裁成特定形状,用于揭示、遮罩和前后对比滑块。
  • Mask(遮罩) — 使用形状或渐变隐藏或显示元素的一部分 — 类似于剪裁路径,但具有柔和的、可淡化的边缘。
  • Before / after slider(前后对比滑块) — 可拖动的分隔线,在两个叠加的图像之间滑动以进行比较。
  • Line drawing(线条绘制) — SVG 路径自动绘制出来,就像一支看不见的笔在描边。
  • Text morph(文字变形) — 文本在变化时逐字符动画化,吸引注意力到新值。
  • Skeleton / Shimmer(骨架屏/闪烁) — 内容加载时显示的带有移动光泽的占位符。
  • Number ticker(数字滚动器) — 数字滚动或计数到目标值。
  • Tabular numbers(表格数字) — 固定宽度的数字,使数字变化时不会移位。对于滚动器、计时器和计数器至关重要。
  • Typewriter(打字机效果) — 文本逐字符出现,就像在打字。

性能 — 保持动画流畅而非卡顿的关键

  • Frame rate (FPS)(帧率) — 每秒绘制的帧数。60fps 是流畅运动的基线;新式显示器上可达 120fps。
  • Jank(卡顿) — 当浏览器因跟不上动画而丢帧时出现的可见卡顿。
  • Dropped frame(丢帧) — 浏览器错过了绘制截止时间的帧,导致运动中出现微小卡顿。
  • Compositing(合成) — 让 GPU 在自身的层上移动或淡入淡出元素,而无需重新执行布局或绘制。
  • will-change(即将变化提示) — CSS 提示,表明一个元素即将进行动画,浏览器可以提前将其提升到单独的层。
  • Layout thrashing(布局抖动) — 对 width、height、top 或 left 等属性进行动画化,这些属性强制浏览器每帧重新计算布局,导致卡顿。

需要了解的原则 — 指导何时以及如何动画化的概念

  • Purposeful animation(有目的的动画) — 动作应服务于某个功能 — 引导、提供反馈、显示关系 — 而不仅仅是装饰。
  • Anticipation(预期动作) — 在移动前向相反方向小幅蓄力,暗示即将发生的事情。
  • Follow-through(跟随动作) — 元素的一部分在主运动停止后继续移动并逐渐停止,增加重量感。
  • Squash & stretch(挤压与拉伸) — 在移动时变形元素以传达重量、速度和弹性。
  • Perceived performance(感知性能) — 正确的动画使界面感觉更快,即使实际上并非如此。
  • Frequency of use(使用频率) — 用户看到某个动画的频率越高,它就应该越短、越微妙。
  • Spatial consistency(空间一致性) — 动画化时,元素在不同状态下保持其身份和位置,使用户永远不会忘记事物去了哪里。
  • Hardware acceleration(硬件加速) — 对 transform 和 opacity 属性进行动画化,让 GPU 保持运动流畅。
  • Reduced motion(减少运动) — 尊重用户的 prefers-reduced-motion 设置,减少或移除运动。

Individual skills in this repo

This repo contains 13 individual skills — each has its own dedicated page.

CharbelElBateh/personal-website

Build animations in React Native and Expo, making the decisions in the order that determines whether they feel right — should it animate, which thread it runs on, which properties, spring or timing, how the gesture hands off, how it degrades. Writes the implementation with Reanimated, Gesture Handler, Expo Router and expo-haptics. Use when animating anything in an Expo app, adding gestures, sheets, screen transitions, press feedback or haptics, or fixing motion that stutters on device. For web animation use `animate`.

CharbelElBateh/personal-website

Build an animation from scratch, making the decisions in the order that determines whether it feels right — should it animate at all, what purpose, which tool, which properties, which curve and duration, how it interrupts, how it exits. Writes the implementation. Use when asked to animate something, add motion, make a component feel alive, or build a transition. For critiquing existing motion use review-animations; for auditing a whole codebase use improve-animations.

CharbelElBateh/personal-website

Apple's approach to interface design and fluid, physical motion, translated for the web. Use when building or reviewing gesture-driven UI, spring animations, drag/swipe/sheet interactions, momentum and interruptible transitions, translucent materials and depth, typography (optical sizing, tracking, leading), reduced-motion, or the design foundations (feedback, spatial consistency, restraint) behind Apple-style interfaces.

CharbelElBateh/personal-website

Guide to Sonner, the React toast library — install and wire up the Toaster, pick the right toast() call, promise and loading toasts, updating, dismissing and persisting toasts, styling, theming and icons, positioning and multiple toasters. Use when working with Sonner or troubleshooting it — toasts that don't appear, appear twice, lose their styles, ignore Tailwind classes, sit behind a modal, or don't follow dark mode.

CharbelElBateh/personal-website

Try to break a piece of UI by feeding it worst-case data — long names, unbreakable emails, one-letter names, missing fields, huge counts, zero items, long labels, non-Latin text, emoji, extreme numbers — then render it behind a "Demo data / Worst case" toggle and report everything that broke, with the fix for each. Use when the user asks to stress-test, break, or find edge cases in a component or screen, or to "try the worst case". For visual design critique use emil-design-eng; for motion use review-animations.

CharbelElBateh/personal-website

This skill encodes Emil Kowalski's philosophy on UI polish, component design, animation decisions, and the invisible details that make software feel great.

CharbelElBateh/personal-website

Search a codebase or UI for places that don't animate but should, and reject everything that shouldn't. Read-only; it proposes motion with exact values, it does not implement it. Use when the user asks "what could be animated here?" or wants to "make this feel more alive". For fixing existing animations, use improve-animations or review-animations instead.

CharbelElBateh/personal-website

Survey a codebase's animation and motion code as a senior motion advisor, then produce a prioritized audit and self-contained implementation plans for other agents (or cheaper models) to execute. Read-only on source code — it plans improvements, it does not apply them. Use when the user asks to "improve the animations", "audit the motion", "make this app feel better", or wants a roadmap of animation fixes rather than a review of a single diff.

CharbelElBateh/personal-website

Make a web app feel native on a phone — the small CSS and meta-tag fixes that separate "a website in a browser" from something that feels installed. Covers sticky hover states, tap highlight flashes, the 100vh bug, inputs that zoom the page, laggy taps, pull-to-refresh hijacking scroll, content under the notch, long-press selecting button text, carousels that scroll the wrong way, mismatched status bars, and the rule that you test on real hardware. Use when a web app is being built for or reviewed on mobile, when something "works in Chrome but feels wrong on my phone", when building a PWA, a bottom sheet, a carousel, a full-screen layout, or any touch interaction. For motion itself use animate; for React Native use animate-expo.

CharbelElBateh/personal-website

Pick the right library for a given frontend task from a curated, opinionated list — numbers, OTP inputs, charts, command menus, virtualization, drag and drop, toasts, state, styling, and more. Only runs when explicitly invoked; it does not trigger on its own.

CharbelElBateh/personal-website

Build multiple genuinely different versions of a UI piece you describe, rendered behind a visual picker so you can flip through them live and promote the one that feels right. Only runs when explicitly invoked; it does not trigger on its own.

CharbelElBateh/personal-website

Reviews animation and motion code against a high craft bar derived from Emil Kowalski's design engineering philosophy. Default to flagging; approval is earned.

CharbelElBateh/personal-website

How to write modern Swift well — modeling with value types, Swift 6 data-race safety and approachable concurrency (@concurrent, main-actor-by-default, actors, task groups), protocols and generics (some vs any), API design, performance and ARC, Swift Testing, macros, and the modern language features agents don't know about yet. Use when writing, reviewing, or migrating Swift, or when a concurrency error, a hang, a data race, a retain cycle, or a performance problem needs fixing.

相关技能