mirror of
https://github.com/snachodog/just-the-docs.git
synced 2025-04-08 13:01:22 -06:00
67 lines
1.1 KiB
Markdown
67 lines
1.1 KiB
Markdown
# no-unknown-animations
|
|
|
|
Disallow unknown animations.
|
|
|
|
```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 warnings:
|
|
|
|
```css
|
|
a { animation-name: fancy-slide; }
|
|
```
|
|
|
|
```css
|
|
a { animation: fancy-slide 2s linear; }
|
|
```
|
|
|
|
```css
|
|
a { animation-name: fancccy-slide; }
|
|
@keyframes fancy-slide {}
|
|
```
|
|
|
|
```css
|
|
a { animation: linear 100ms fancccy-slide; }
|
|
@keyframes fancy-slide {}
|
|
```
|
|
|
|
```css
|
|
a { animation-name: jump; }
|
|
@keyframes fancy-slide {}
|
|
```
|
|
|
|
The following patterns are *not* considered warnings:
|
|
|
|
```css
|
|
a { animation-name: fancy-slide; }
|
|
@keyframes fancy-slide {}
|
|
```
|
|
|
|
```css
|
|
@keyframes fancy-slide {}
|
|
a { animation-name: fancy-slide; }
|
|
```
|
|
|
|
```css
|
|
@keyframes fancy-slide {}
|
|
a { animation: fancy-slide 2s linear; }
|
|
```
|
|
|
|
```css
|
|
a { animation: 100ms steps(12, end) fancy-slide; }
|
|
@keyframes fancy-slide {}
|
|
```
|