-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
55 lines (52 loc) · 1.99 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<!DOCTYPE html>
<html lang="en-US" class="scheme-1">
<meta charset="utf-8">
<title>draf: double requestAnimationFrame</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="double RAF JavaScript module">
<link rel="stylesheet" href="https://unpkg.com/[email protected]">
<style>
html { font: 1em/2 sans-serif }
html { font-size: calc(.9em + .5vw + .5vh) }
body { margin: 0 auto; padding: 1rem }
code { font-family: inherit; display: inline-block }
* { box-sizing: border-box }
.line-compact { line-height: 1.3333 }
:focus { outline: 3px dotted Black }
:link { text-decoration-skip: ink }
:link, :visited { color: inherit }
.scheme-1 { background: #ccc; color: Black }
.scheme-2 { background: #ccc; color: Black }
.scheme-3 { background: Gold; color: Black }
.scheme-4 { background: MediumSpringGreen; color: Black }
.inline-block { display: inline-block }
.block { display: block }
.natural { display: table }
.button {
display: inline-block;
border: 0;
padding: 2rem 1rem;
font-size: 1rem;
font-family: inherit;
text-align: left;
}
.button::-moz-focus-inner { border-style: none; padding: 0 }
.button:enabled { cursor: pointer }
.zoomable {
transition: transform 450ms;
transform: scale(1);
}
.zoomed { transform: scale(.625) }
</style>
<header class="natural m0 mb2 p2 scheme-2">
<h1 class="block m0 line-compact"><a href="" class="inline-block scheme-2">draf</a></h1>
<a class="inline-block scheme-2 mr1" href="https://github.com/ryanve/draf">github</a>
<a class="inline-block scheme-2 mr1" href="https://www.npmjs.com/package/draf">npm</a>
<a class="inline-block scheme-2 mr1" href="https://unpkg.com/draf@latest">unpkg</a>
</header>
<figure class="m-auto mb1">
<button class="button zoomable scheme-4 mr1 mb1" data-click="reactive" autofocus>Press for reactive motion</button>
<button class="button zoomable scheme-3 mr1 mb1" data-click="janky">Press for janky motion</button>
</figure>
<script src="draf.js"></script>
<script src="test.js"></script>