.gitignore added
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / stylelint / lib / rules / no-unknown-animations / README.md
1 # no-unknown-animations
2
3 Disallow unknown animations.
4
5 ```css
6 a { animation-name: fancy-slide; }
7 /**                    ↑
8  *   This animation name */
9
10 a { animation: fancy-slide 2s linear; }
11 /**                    ↑
12  *           And this one */
13 ```
14
15 This rule considers the identifiers of `@keyframes` rules defined within the same source to be known.
16
17 ## Options
18
19 ### `true`
20
21 The following patterns are considered violations:
22
23 ```css
24 a { animation-name: fancy-slide; }
25 ```
26
27 ```css
28 a { animation: fancy-slide 2s linear; }
29 ```
30
31 ```css
32 a { animation-name: fancccy-slide; }
33 @keyframes fancy-slide {}
34 ```
35
36 ```css
37 a { animation: linear 100ms fancccy-slide; }
38 @keyframes fancy-slide {}
39 ```
40
41 ```css
42 a { animation-name: jump; }
43 @keyframes fancy-slide {}
44 ```
45
46 The following patterns are *not* considered violations:
47
48 ```css
49 a { animation-name: fancy-slide; }
50 @keyframes fancy-slide {}
51 ```
52
53 ```css
54 @keyframes fancy-slide {}
55 a { animation-name: fancy-slide; }
56 ```
57
58 ```css
59 @keyframes fancy-slide {}
60 a { animation: fancy-slide 2s linear; }
61 ```
62
63 ```css
64 a { animation: 100ms steps(12, end) fancy-slide; }
65 @keyframes fancy-slide {}
66 ```