1.4 KiB
1.4 KiB
time-min-milliseconds
Specify the minimum number of milliseconds for time values.
animation: slip-n-slide 150ms linear; }
a { /** ↑
* This time */
This rule checks positive numbers in
transition-duration
, transition-delay
,
animation-duration
, animation-delay
, and those
times as they manifest in the transition
and
animation
shorthands.
Options
int
: Minimum number of milliseconds for time values.
For example, with 100
:
The following patterns are considered violations:
animation: 80ms; } a {
transition-duration: 0.08s; } a {
transition: background-color 6ms linear; } a {
animation-delay: 0.01s; } a {
The following patterns are not considered violations:
animation: 8s; } a {
transition-duration: 0.8s; } a {
transition: background-color 600ms linear; } a {
animation-delay: 1s; } a {
Optional secondary options
ignore: ["delay"]
Ignore time values for an animation or transition delay.
For example, with a minimum of 200
milliseconds.
The following is not considered a violation:
animation-delay: 100ms; } a {