aurelia-animator-css
Version:
An implementation of the abstract Animator interface from templating which enables css-based animations.
41 lines (36 loc) • 824 B
HTML
<style type="text/css">
@keyframes hide-animation {
from { opacity: 1; }
to { opacity: 0; }
}
@-webkit-keyframes hide-animation{
from { opacity: 1; }
to { opacity: 0; }
}
@keyframes show-animation {
from { opacity: 0; }
to { opacity: 1; }
}
@-webkit-keyframes show-animation{
from { opacity: 0; }
to { opacity: 1; }
}
.animate-test {
opacity: 1;
}
.animate-test-add {
-webkit-animation:0.2s show-animation;
animation:0.2s show-animation;
}
.animate-test-remove {
-webkit-animation:0.2s hide-animation;
animation:0.2s hide-animation;
}
</style>
<div id="animation">
<ul class="sequenced-items">
<li class="au-animate">Sequence 1</li>
<li class="au-animate">Sequence 2</li>
<li class="au-animate">Sequence 3</li>
</ul>
</div>