| 1 |
@keyframes cssrocks { |
| 2 |
from { background-color: yellow; } |
| 3 |
to { background-color: red; } |
| 4 |
} |
| 5 |
|
| 6 |
box { |
| 7 |
background-color: blue; |
| 8 |
animation-fill-mode: both; |
| 9 |
animation-duration: 100s; |
| 10 |
padding: 1px; |
| 11 |
background-clip: content-box; |
| 12 |
animation-timing-function: linear; |
| 13 |
} |
| 14 |
|
| 15 |
.after { |
| 16 |
animation-name: cssrocks; |
| 17 |
animation-delay: -10000s; |
| 18 |
} |
| 19 |
|
| 20 |
.before { |
| 21 |
animation-name: cssrocks; |
| 22 |
animation-delay: 10000s; |
| 23 |
} |
| 24 |
|
| 25 |
.normal { |
| 26 |
animation-direction: normal; |
| 27 |
} |
| 28 |
|
| 29 |
.reverse { |
| 30 |
animation-direction: reverse; |
| 31 |
} |
| 32 |
|
| 33 |
.alternate { |
| 34 |
animation-direction: alternate; |
| 35 |
} |
| 36 |
|
| 37 |
.alternate-reverse { |
| 38 |
animation-direction: alternate-reverse; |
| 39 |
} |
| 40 |
|
| 41 |
.x0 { |
| 42 |
animation-iteration-count: 0; |
| 43 |
} |
| 44 |
|
| 45 |
.x02 { |
| 46 |
animation-iteration-count: 0.2; |
| 47 |
} |
| 48 |
|
| 49 |
.x1 { |
| 50 |
animation-iteration-count: 1; |
| 51 |
} |
| 52 |
|
| 53 |
.x12 { |
| 54 |
animation-iteration-count: 1.2; |
| 55 |
} |
| 56 |
|
| 57 |
.x2 { |
| 58 |
animation-iteration-count: 2; |
| 59 |
} |
| 60 |
|
| 61 |
.x22 { |
| 62 |
animation-iteration-count: 2.2; |
| 63 |
} |
| 64 |
|
| 65 |
.yellow { |
| 66 |
animation: none; |
| 67 |
background-color: yellow; |
| 68 |
} |
| 69 |
|
| 70 |
.red { |
| 71 |
animation: none; |
| 72 |
background-color: red; |
| 73 |
} |
| 74 |
|
| 75 |
.darkorange { |
| 76 |
animation: none; |
| 77 |
background-color: rgb(255,51,0); |
| 78 |
} |
| 79 |
|
| 80 |
.lightorange { |
| 81 |
animation: none; |
| 82 |
background-color: rgb(255,204,0); |
| 83 |
} |