時間最小毫秒數
限制時間值的最小毫秒數。
a { animation: slip-n-slide 150ms linear; }
/** ↑
* This time */
此規則會檢查 transition-duration
、transition-delay
、animation-duration
、animation-delay
中的正數,以及這些時間在 transition
和 animation
簡寫中顯示的方式。
message
次要選項 可以接受此規則的參數。
選項
int
:時間值的最小毫秒數。
例如,使用 100
以下模式被視為問題
a { animation: 80ms; }
a { transition-duration: 0.08s; }
a { transition: background-color 6ms linear; }
a { animation-delay: 0.01s; }
以下模式不是問題
a { animation: 8s; }
a { transition-duration: 0.8s; }
a { transition: background-color 600ms linear; }
a { animation-delay: 1s; }
次要選項(選用)
ignore: ["delay"]
忽略動畫或轉場延遲的時間值。
例如,最小值為 200
毫秒。
以下模式不是問題
a { animation-delay: 100ms; }