yet another web agency

css3 keyframes

carrito

target



<style>
.target {
-webkit-animation: target-fade 6s 1;
-moz-animation: target-fade 6s 1;
}
@-webkit-keyframes target-fade {
0% { background-color: rgba(203,229,158,1);}
100% { background-color: rgba(0,0,0,0); }
}
@-moz-keyframes target-fade {
0% { background-color: rgba(203,229,158,1); }
100% { background-color: rgba(0,0,0,0); }
}
</style>
<script>
$("#myButton").click(function(){
$("#h2").addClass('target');
});
</script>

Some HTML is OK