Revision control

1
<div id="target" style="width: 100px; height: 100px; background-color: black;"></div>
2
<script>
3
4
document.getElementById("target").animate([
5
{ opacity: 1 },
6
{ opacity: 0 }
7
], 1000);
8
9
</script>