1
0
mirror of https://github.com/thangisme/notes.git synced 2024-11-01 06:27:23 -04:00
notes/node_modules/stylelint/lib/rules/time-min-milliseconds
Patrick Marsceill b7b0d0d7bf
Initial commit
2017-03-09 13:16:08 -05:00
..
index.js Initial commit 2017-03-09 13:16:08 -05:00
README.md Initial commit 2017-03-09 13:16:08 -05:00

time-min-milliseconds

Specify the minimum number of milliseconds for time values.

a { animation: slip-n-slide 150ms linear; }
/**                         ↑
 *                  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 warnings:

a { animation: 80ms; }
a { transition-duration: 0.08s; }
a { transition: background-color 6ms linear; }
a { animation-delay: 0.01s; }

The following patterns are not considered warnings:

a { animation: 8s; }
a { transition-duration: 0.8s; }
a { transition: background-color 600ms linear; }
a { animation-delay: 1s; }