Sha256: 57bb7ff8bbf89c6961a0449689298d9509d1c211aafe6b317b8d5c3560f9f0d4

Contents?: true

Size: 1.34 KB

Versions: 24

Compression:

Stored size: 1.34 KB

Contents

# no-unknown-animations

Disallow unknown animations.

<!-- prettier-ignore -->
```css
a { animation-name: fancy-slide; }
/**                    ↑
 *   This animation name */

a { animation: fancy-slide 2s linear; }
/**                    ↑
 *           And this one */
```

This rule considers the identifiers of `@keyframes` rules defined within the same source to be known.

## Options

### `true`

The following patterns are considered violations:

<!-- prettier-ignore -->
```css
a { animation-name: fancy-slide; }
```

<!-- prettier-ignore -->
```css
a { animation: fancy-slide 2s linear; }
```

<!-- prettier-ignore -->
```css
a { animation-name: fancccy-slide; }
@keyframes fancy-slide {}
```

<!-- prettier-ignore -->
```css
a { animation: linear 100ms fancccy-slide; }
@keyframes fancy-slide {}
```

<!-- prettier-ignore -->
```css
a { animation-name: jump; }
@keyframes fancy-slide {}
```

The following patterns are _not_ considered violations:

<!-- prettier-ignore -->
```css
a { animation-name: fancy-slide; }
@keyframes fancy-slide {}
```

<!-- prettier-ignore -->
```css
@keyframes fancy-slide {}
a { animation-name: fancy-slide; }
```

<!-- prettier-ignore -->
```css
@keyframes fancy-slide {}
a { animation: fancy-slide 2s linear; }
```

<!-- prettier-ignore -->
```css
a { animation: 100ms steps(12, end) fancy-slide; }
@keyframes fancy-slide {}
```

Version data entries

24 entries across 24 versions & 1 rubygems

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