Sha256: b3b616e6fc92e8e820b7c32d29f858bfba858f0a830a1823ebfc49bbf160a125

Contents?: true

Size: 1.17 KB

Versions: 23

Compression:

Stored size: 1.17 KB

Contents

# time-min-milliseconds

Specify the minimum number of milliseconds for time values.

<!-- prettier-ignore -->
```css
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 violations:

<!-- prettier-ignore -->
```css
a { animation: 80ms; }
```

<!-- prettier-ignore -->
```css
a { transition-duration: 0.08s; }
```

<!-- prettier-ignore -->
```css
a { transition: background-color 6ms linear; }
```

<!-- prettier-ignore -->
```css
a { animation-delay: 0.01s; }
```

The following patterns are _not_ considered violations:

<!-- prettier-ignore -->
```css
a { animation: 8s; }
```

<!-- prettier-ignore -->
```css
a { transition-duration: 0.8s; }
```

<!-- prettier-ignore -->
```css
a { transition: background-color 600ms linear; }
```

<!-- prettier-ignore -->
```css
a { animation-delay: 1s; }
```

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
trusty-cms-5.0.7 node_modules/stylelint/lib/rules/time-min-milliseconds/README.md
trusty-cms-5.0.6 node_modules/stylelint/lib/rules/time-min-milliseconds/README.md
trusty-cms-5.0.5 node_modules/stylelint/lib/rules/time-min-milliseconds/README.md
trusty-cms-5.0.4 node_modules/stylelint/lib/rules/time-min-milliseconds/README.md
trusty-cms-5.0.3 node_modules/stylelint/lib/rules/time-min-milliseconds/README.md
trusty-cms-5.0.2 node_modules/stylelint/lib/rules/time-min-milliseconds/README.md
trusty-cms-5.0.1 node_modules/stylelint/lib/rules/time-min-milliseconds/README.md
trusty-cms-4.3.5 node_modules/stylelint/lib/rules/time-min-milliseconds/README.md
trusty-cms-5.0.0 node_modules/stylelint/lib/rules/time-min-milliseconds/README.md
trusty-cms-4.3.4 node_modules/stylelint/lib/rules/time-min-milliseconds/README.md
trusty-cms-4.3.3 node_modules/stylelint/lib/rules/time-min-milliseconds/README.md
trusty-cms-4.3.2 node_modules/stylelint/lib/rules/time-min-milliseconds/README.md
trusty-cms-4.3.1 node_modules/stylelint/lib/rules/time-min-milliseconds/README.md
trusty-cms-4.3 node_modules/stylelint/lib/rules/time-min-milliseconds/README.md
trusty-cms-4.2.3 node_modules/stylelint/lib/rules/time-min-milliseconds/README.md
trusty-cms-4.2.2 node_modules/stylelint/lib/rules/time-min-milliseconds/README.md
trusty-cms-4.2.1 node_modules/stylelint/lib/rules/time-min-milliseconds/README.md
trusty-cms-4.2 node_modules/stylelint/lib/rules/time-min-milliseconds/README.md
trusty-cms-4.1.9 node_modules/stylelint/lib/rules/time-min-milliseconds/README.md
trusty-cms-4.1.8 node_modules/stylelint/lib/rules/time-min-milliseconds/README.md