mirror of https://github.com/sveltejs/svelte
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
550 B
35 lines
550 B
6 years ago
|
<div class='animated'>animated</div>
|
||
|
<div class='also-animated'>also animated</div>
|
||
|
|
||
|
<style>
|
||
|
@keyframes why {
|
||
|
0% { color: red; }
|
||
|
100% { color: blue; }
|
||
|
}
|
||
|
|
||
|
@-webkit-keyframes why {
|
||
|
0% { color: red; }
|
||
|
100% { color: blue; }
|
||
|
}
|
||
|
|
||
|
@-moz-keyframes why {
|
||
|
0% { color: red; }
|
||
|
100% { color: blue; }
|
||
|
}
|
||
|
|
||
|
@-o-keyframes why {
|
||
|
0% { color: red; }
|
||
|
100% { color: blue; }
|
||
|
}
|
||
|
|
||
|
.animated {
|
||
6 years ago
|
-webkit-animation: why 2s;
|
||
6 years ago
|
animation: why 2s;
|
||
|
}
|
||
|
|
||
|
.also-animated {
|
||
6 years ago
|
-webkit-animation: not-defined-here 2s;
|
||
6 years ago
|
animation: not-defined-here 2s;
|
||
|
}
|
||
|
</style>
|