townie/button.html -rw-r--r-- 474 bytes View raw
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<!DOCTYPE html>
<meta charset="utf-8">
<title>button, button, who's got the button?</title>

<button id=button>
    button!
</button>
<span id=text>
<span id=counter>
</span><a href="index.html">return</a></span>

<style>
body{min-height:100vh;margin:0;padding:0;overflow:hidden;}
#button{
    position:absolute;
    transition: top 2s, left 3s;
    z-index: 1000;
}
#text{position:absolute;font:italic 40px/2 script;top:-80px;}
</style>

<script src="button.js"> </script>