mirror of https://github.com/sveltejs/svelte
17 lines
261 B
17 lines
261 B
8 years ago
|
<div class='animated'>animated</div>
|
||
7 years ago
|
<div class='also-animated'>also animated</div>
|
||
8 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;
|
||
|
}
|
||
8 years ago
|
</style>
|