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.
17 lines
261 B
17 lines
261 B
7 years ago
|
<div class='animated'>animated</div>
|
||
7 years ago
|
<div class='also-animated'>also animated</div>
|
||
7 years ago
|
|
||
|
<style>
|
||
|
@keyframes why {
|
||
|
0% { color: red; }
|
||
|
100% { color: blue; }
|
||
|
}
|
||
|
|
||
|
.animated {
|
||
|
animation: why 2s;
|
||
|
}
|
||
7 years ago
|
|
||
|
.also-animated {
|
||
|
animation: not-defined-here 2s;
|
||
|
}
|
||
7 years ago
|
</style>
|