-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathexample.html
More file actions
53 lines (51 loc) · 1.04 KB
/
example.html
File metadata and controls
53 lines (51 loc) · 1.04 KB
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
<!DOCTYPE html>
<html>
<head>
<title>Spin</title>
<style type="text/css">
body {
padding: 25px;
font: 12px "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.one,
.two,
.three,
.four {
display: inline-block;
border: 1px dashed #ddd;
border-radius: 3px;
background: white;
position: relative;
}
.one {
padding: 50px;
}
.two {
padding: 100px 30px;
}
.three {
padding: 40px 100px;
}
.four {
padding: 20px;
}
</style>
</head>
<body>
<div class="one"></div>
<div class="two"></div>
<div class="three"></div>
<div class="four"></div>
<script src="build/build.js"></script>
<script>
var spin = require('spin');
var a = spin(document.querySelector('.one')).text('one');
var b = spin(document.querySelector('.two')).text('two');
var c = spin(document.querySelector('.three'));
var d = spin(document.querySelector('.four'));
setTimeout(function(){
b.remove();
}, 2000);
</script>
</body>
</html>