Logo Transitions Polish

Transitions Polish

Cộng đồngPhổ biến
Jakubantalik
transitions-polish

Tinh chỉnh chuyển động hiện có theo thang token chuyển động của transitions.dev — thời lượng, khoảng cách, tỷ lệ, độ mờ và đường cong tăng giảm tốc — cùng các quy tắc về THỜI ĐIỂM áp dụng từng token (khác biệt giữa mở/đóng, di chuột vào và ra, độ lệch lần lượt, độ trễ theo ý định). Đây là phần bổ trợ cho skill transitions-dev, tập trung tinh chỉnh những gì đã có chuyển động thay vì thêm hiệu ứng chuyển tiếp mới. Dùng khi người dùng yêu cầu “trau chuốt hiệu ứng chuyển tiếp”, “tinh chỉnh chuyển động”, “điều chỉnh thời gian / đường cong tăng giảm tốc”, “làm hoạt ảnh mượt hơn / bớt giật”, “rút ngắn thời lượng”, “sửa hiệu ứng lần lượt”, “điều chỉnh theo token chuyển động”, “kiểm tra chuyển động”, “duyệt hoạt ảnh”, “quét các hiệu ứng chuyển tiếp tùy tiện”, “chuẩn hóa hoạt ảnh bằng token” hoặc chạy lệnh transitions review hay transitions polish. Cũng hỗ trợ tính năng Small refinement trong bảng Refine. Kích hoạt với “trau chuốt chuyển động”, “trau chuốt hiệu ứng chuyển tiếp”, “tinh chỉnh chuyển động”, “thời gian chưa hợp lý”, “quá chậm / quá nhanh”, “hiệu ứng lần lượt”, “độ trễ”, “thời gian mở đóng”, “di chuột vào ra”.

Add to TypingMind

Tổng quan

Nhà phát hànhJakubantalik
Kho mãtransitions.dev
Tên kỹ năngtransitions-polish
Sao
4.2K
Bản fork
175
Tệp đi kèm
2
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 2 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được Jakubantalik công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Transitions Polish trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/Jakubantalik/transitions.dev/tree/main/skills/transitions-polish
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Jakubantalik/transitions.dev.git /tmp/transitions.dev
mkdir -p .claude/skills
cp -r /tmp/transitions.dev/skills/transitions-polish .claude/skills/transitions-polish
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Transitions Polish trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Transitions Polish ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Transitions Polish với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

Transitions Polish

An add-on to the transitions-dev skill. Where transitions-dev installs whole transitions, this skill polishes motion that already exists: it scans the five motion-token dimensions — duration, distance, scale, blur, easing — and suggests the token each value should reference, plus the higher-order rules for when a value is right (open/close asymmetry, hover in/out, stagger, delay).

Install it alongside transitions-dev, or on its own — the token values are restated below so this skill can audit a project standalone. When it is installed, the transitions.dev Refine panel automatically feeds these rules into every Small refinement job.

Core doctrine: match on usage, never on the nearest number

A value is not "wrong" because it is off by 20ms. It is wrong when it does not fit what the motion does. Always infer the usage first — modal close, dropdown open, tooltip, badge appear, page slide, text reveal, shake — then pick the token whose documented usage matches. A 300ms modal close maps to --duration-quick (150ms) because both are "modal close", even though the numbers differ. If a value's usage matches no token usage, leave it untouched. Never force a swap just because a number is close.

The five dimensions

Same scale the transitions.dev Motion tokens tab exposes. Copy this skill's _root.css into your project once; once imported, reference any token as var(--…). The transitions-dev transitions ship literal values, so they work without these tokens — install this skill to tune them against the shared scale.

Durations

TokenValueUsage
--duration-stagger40msper-item stagger offset
--duration-micro80mstooltip/path delay, shake segment, large stagger
--duration-quick150msmodal/dropdown close, text swap, tooltip appear
--duration-fast250msicon swap, dropdown/modal open, tabs sliding, page slide
--duration-medium350mspanel close, toast close
--duration-slow400mspanel open, skeleton content reveal, input clear
--duration-very-slow500msemphasis moments, badge appear, text reveal, success check

Easings

TokenValueUsage
--ease-smooth-outcubic-bezier(0.22, 1, 0.36, 1)modal/dropdown/panel open + close, page slide, resize, position change
--ease-in-outease-in-outicon swap, text swap, text reveal, skeleton reveal
--ease-outease-outtooltip open / close
--ease-linearlinearshimmer, skeleton pulse, spinner
--ease-bouncecubic-bezier(0.34, 1.36, 0.64, 1)badge pop open
--ease-bounce-strongcubic-bezier(0.34, 3.85, 0.64, 1)bouncy hover-out (avatar return)

--ease-smooth-out is the default. Nudge generic ease, ease-in, or any hand-rolled cubic-bezier(...) / linear(...) toward it only for surface motion (open/close, slide, resize, position). Leave the other five token easings alone — they are already on-grid and each carries its own intent.

Distances

TokenValueUsage
--distance-micro4pxtext swap
--distance-small6pxerror shake (small segment)
--distance-base8pxbadge diagonal reveal, page slide, error shake (large segment)
--distance-medium12pxtext reveal
--distance-large30pxcheck badge appear

Travel distance scales down with frequency and up with ceremony: an in-place text swap barely moves (4px), a page slide travels a readable 8px, a one-off celebratory badge can sweep 30px. If a translate distance is larger than ~40px for anything but a full panel/drawer, it usually reads as sluggish — pull it toward --distance-base.

Scales

TokenValueUsage
--scale-large0.96modal open / close
--scale-medium0.97dropdown open
--scale-small0.98tooltip open
--scale-tiny0.99dropdown close

The captured value is the non-resting "pre" scale the surface animates from; it always settles to 1. Bigger surfaces start from further away (0.96 modal), small hints barely scale (0.98–0.99). A pre-scale below ~0.9 reads as a "zoom" and rarely fits UI chrome — snap it to the usage token.

Blur

TokenValueUsage
--blur-small2pxpanel reveal, icon swap, text swap, skeleton reveal, number pop-in
--blur-medium3pxpage slide, text reveal
--blur-large8pxsuccess check open

Blur is the non-resting "pre" blur, settling to 0. Use it to soften a swap or slide, never on a plain fade or a color/theme change. Blur can be absent as well as off-token: when the usage clearly calls for one (a page slide with no blur lane) suggest adding --blur-medium.

Polish rules — when a value is right

Open/close asymmetry

Opening is an invitation; closing should get out of the way. Closes are faster and quieter than opens.

  • Duration: dropdown/modal open 250ms → close 150ms (--duration-fast → --duration-quick); panel open 400ms → close 350ms (--duration-slow → --duration-medium); toast close 350ms (--duration-medium).
  • Symmetric exceptions — same duration + easing both ways, do NOT split: page side-by-side (250ms), tabs sliding (250ms), accordion (250ms), icon swap (250ms), text swap (150ms). These read as a single reversible motion, not an open/close pair.
  • Distance & blur: the enter phase carries the distance and blur; the exit can drop or shrink them so a close doesn't fling content across the screen.
  • Easing: most opens and closes share --ease-smooth-out. Overshoot curves belong to entrances only (badge pop, number pop-in) — never bounce a close.

Hover in vs hover out

  • In: quick and direct — a short --duration-fast-or-less lift with --ease-smooth-out.
  • Out: softer and springier — the return can take longer and use --ease-bounce-strong (avatar return, cubic-bezier(0.34, 3.85, 0.64, 1)) so the row settles instead of snapping. This is the one place the out is more elaborate than the in.

Stagger and delay

  • Stagger offset: --duration-stagger (40ms) per item; step up to --duration-micro (80ms) for a few large items. Keep the total stagger (offset × item count) under ~300ms so the last item doesn't feel late — for long lists, cap the number of staggered items or shrink the offset.
  • Intent delay: a tooltip waits --duration-micro (80ms) before appearing so a passing cursor doesn't trigger it; the success-check path draw uses the same 80ms beat. A delay is right when you want to filter accidental triggers or sequence two things — not to pad a slow animation.
  • Delay vs duration: if motion feels late, prefer trimming the duration over adding delay. Reserve delay for stagger, intent gating, and deliberate sequencing.
  • Never delay a close or a hover-out — dismissal must feel instant.

Commands

The skill exposes two namespaced verbs. Every command starts with transitions so the invocation never collides with verbs from other skills installed in the same project. review reports; polish applies.

transitions review — audit motion against the tokens

Trigger phrases: transitions review, "review my animations", "audit the motion", "scan for ad-hoc transitions", "tokenize my animations", "where are my durations off", "align to the motion tokens", "make the timing consistent".

Behaviour:

  1. Scan the whole project — not just stylesheets, but inline style= / CSS-in-JS, styled-components, <style> blocks, and Tailwind arbitrary values (duration-[300ms], [transition-timing-function:...]) — for all five dimensions: durations (…ms/…s), easings (cubic-bezier(...) / keywords), translate distances (translate*(…px)), scale(...), and blur(...). Read @keyframes via the animation that drives them.
  2. For each value, infer what the motion does from the surrounding selectors / component names (modal close, dropdown open, tooltip, badge appear, page slide, text reveal, shake, hover lift, …). Look the usage up in the token tables above and pick the token whose documented usage matches — usage first, never nearest number. Do not suggest whole-transition recipe swaps; that is transitions-dev's transitions apply domain.
  3. Apply the polish rules: check open/close asymmetry, hover in/out, stagger totals, and delays — not just whether a single value is on-grid.
  4. Output a numbered list grouped by file, showing only values that should change:
    • path/to/Component.css:L42 — modal close: 300ms → var(--duration-quick) (150ms) — close should be quicker than the 250ms open.
    • path/to/List.css:L20 — stagger: 120ms → var(--duration-stagger) (40ms) — 8 items × 120ms = 960ms total, last item feels late.
    • Skip values whose usage matches no token — list them as no matching token usage and leave them.
  5. Do not edit anything. End with: "Run transitions polish to apply these changes, or confirm any line to apply individually."

transitions polish — apply motion-token refinements

Trigger phrases: transitions polish, "polish my transitions", "refine the motion", "tune the timing / easing", "apply the motion tokens", "fix the stagger", "tokenize my animations".

Behaviour:

  1. If the user has not run transitions review in this session, run the same scan from transitions review first (steps 1–4) to build the change list. If they named a specific file, line, or value, scope the scan to that context.
  2. Surface a short proposal: how many values would change, grouped by file, with one example line. Ask for confirmation before editing.
  3. On confirmation, apply the token changes to the source:
    • Replace hardcoded durations/easings/distances/scales/blur with var(--…) references where the project's _root.css (this skill's _root.css) is already imported; otherwise write the token's literal value and note that importing _root.css would let future tweaks happen in one place.
    • Keep the file's existing unit/format (0.25s vs 250ms) unless switching to var(--…).
    • Touch only the motion values being polished — no reformatting, no unrelated edits.
    • Handle plain CSS, CSS Modules, styled-components/emotion, Tailwind utilities/config, inline style objects, and Motion/Framer variants.
  4. If _root.css is not yet in the project, offer to install it (once) before or alongside the polish pass.
  5. Keep the diff small. End with a one-line summary of files touched.

Relationship to the Refine panel

When this skill is installed in a project, the transitions.dev Refine panel's Small refinement tab automatically inlines the compact rules in _refine-rules.md into its agent prompt, so per-click suggestions honor these rules with zero extra file reads. transitions review mirrors that audit at project scale; transitions polish writes the accepted tweaks to source.

Future expansion

Natural next additions to this skill: performance hygiene (transition: all, animating width/top/box-shadow instead of transform/opacity, will-change misuse), missing prefers-reduced-motion detection, a cross-project consistency audit (same-purpose transitions using different values), Tailwind/Framer token adapters, and a "motion polish score" report.

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Transitions Polish làm được gì?

Tinh chỉnh chuyển động hiện có theo thang token chuyển động của transitions.dev — thời lượng, khoảng cách, tỷ lệ, độ mờ và đường cong tăng giảm tốc — cùng các quy tắc về THỜI ĐIỂM áp dụng từng token (khác biệt giữa mở/đóng, di chuột vào và ra, độ lệch lần lượt, độ trễ theo ý định). Đây là phần bổ trợ cho skill transitions-dev, tập trung tinh chỉnh những gì đã có chuyển động thay vì thêm hiệu ứng chuyển tiếp mới. Dùng khi người dùng yêu cầu “trau chuốt hiệu ứng chuyển tiếp”, “tinh chỉnh chuyển động”, “điều chỉnh thời gian / đường cong tăng giảm tốc”, “làm hoạt ảnh mượt hơn / bớt giật”, “rút...

Vì sao nên dùng Transitions Polish trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Transitions Polish là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Transitions Polish trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/Jakubantalik/transitions.dev/tree/main/skills/transitions-polish. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Transitions Polish?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Transitions Polish với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Transitions Polish với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Transitions Polish có miễn phí không?

Kỹ năng này được Jakubantalik phát hành trên GitHub. Hãy xem điều khoản giấy phép trong kho mã. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇