-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
59 lines (58 loc) · 1.42 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
56
57
58
59
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>Object transition</title>
<link rel="stylesheet" href="demo.css" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
</head>
<body>
<h1>
<a href="https://github.com/sunify/object-transit">object-transit</a> demo
</h1>
<div class="demos">
<div class="demo demo-playground">
<h2>Playground</h2>
<form>
<div>
<h4>Transition to</h4>
<textarea id="json" cols="30" rows="7">
{
"bg1": "#0fc",
"bg2": "#f00",
"scale": 1.2,
"left": 10,
"count": 0
}
</textarea>
</div>
<div>
<h4>Result</h4>
<textarea id="result" readonly cols="30" rows="10"></textarea>
</div>
</form>
<div id="obj"></div>
</div>
<div class="demo">
<h2>Gradient</h2>
<div class="cols">
<div id="grad"></div>
<form>
<textarea type="text" id="colors" rows="10" cols="8">
#cf0
#0fc
#ff0
#f0c
#fc0
</textarea
><br />
<button type="button" id="colorsSubmit">Switch</button>
</form>
</div>
</div>
</div>
<script src="demo.js"></script>
</body>
</html>