Motion
Transition Utilities
Live DS 在 style.css 的 @layer components 內定義了一個自訂 utility .transition-normal。 其他 transition 沿用 Tailwind 預設。次數為 component implementation 真實使用頻率。
| Token | Spec | 次數 | 備註 |
|---|---|---|---|
| .transition-normal | all 150ms ease-out | 15 | Live 自訂 utility(@layer components);預設互動 transition |
| transition-colors | color/bg/border, default | 14 | Tailwind 預設;hover/focus 顏色切換 |
| transition | Tailwind 預設集合 | 3 | — |
| transition-all | all properties | 2 | — |
| transition-transform | transform only | 1 | — |
| transition-shadow | shadow only | 1 | — |
Interactive Demo
.TRANSITION-NORMAL (HOVER ME)
Duration & Ease (sparse)
Live 沒有 duration / ease 階梯 token,下表是 implementation 真實出現的個案。
DURATION
duration-200— 2×duration-[400ms,400ms,400ms,400ms,400ms]— 1×EASE
ease-linear— 1×Keyframes
ANIMATE-SKELETON-LOADING
keyframes loading { to { translate: 100% 0; } } · 1.5s infinite
KEYFRAME REFERENCE
| Token | Spec | 次數 | 備註 |
|---|---|---|---|
| animate-skeleton-loading | loading 1.5s infinite | 2 | Live 自訂 keyframe;skeleton shimmer |
Implementation Notes
Observation only — no migration planned
本區僅記錄 audit 觀察,不對應任何 active rule 或重構計畫。
OBSERVATION
.transition-normal是 Live 唯一自訂的 motion utility,覆蓋約 90% 互動需求。- duration / ease 沒有 scale,整個 implementation 只在 2 個檔案出現非預設值(duration-200、ease-linear 各 1–2 次)。
- Skeleton 是唯一 keyframe 動畫。其他 animation 由元件直接使用 transition 處理。
FUTURE DIRECTION (NOT PLANNED)
Motion 層 entropy 低,無治理需求。若未來擴充:duration / ease 各 1 個 outlier 可清理,但目前不需引入階梯 token。