-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex.html
109 lines (106 loc) · 2.95 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="description" content="The power of CSS3 animations" />
<link rel="stylesheet/less" type="text/css" href="css/jquery.harlem-shake-1.0.less">
<script type="text/javascript" src="js/less-1.3.3.min.js"></script>
<script>
less.refreshStyles();
</script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
<script type="text/javascript" src="js/jquery.harlem-shake-1.0.js"></script>
<title>jQuery Harlem Shake plugin (development version)</title>
<style>
#container {
width: 960px;
margin: auto;
}
.harlem-shake {
width: 150px;
height: 100px;
background-color: #44f;
margin: 10px;
float: left;
}
.clearfix {
clear: both;
}
</style>
<script>
$(function() {
$('.start').click(function() {
$('.harlem-shake').harlemShake();
});
$('.stop').click(function() {
$('.harlem-shake').harlemShake('stop');
});
});
</script>
</head>
<body>
<div id="container">
<div class="harlem-shake" data-animation="rotate">
rotate
</div>
<div class="harlem-shake" data-pivot="true" data-animation="rotateHalf">
rotateHalf
</div>
<div class="harlem-shake" data-animation="scale">
scale
</div>
<div class="harlem-shake" data-animation="jump" data-animation-speed="fast">
jump
</div>
<div class="harlem-shake" data-animation="flash">
flash
</div>
<div class="harlem-shake" data-animation="shake">
shake
</div>
<div class="harlem-shake" data-animation="bounce">
bounce
</div>
<div class="harlem-shake" data-animation="tada">
tada
</div>
<div class="harlem-shake" data-animation="swing">
swing
</div>
<div class="harlem-shake" data-animation="wobble">
wobble
</div>
<div class="harlem-shake" data-animation="wiggle">
wiggle
</div>
<div class="harlem-shake" data-animation="pulse">
pulse
</div>
<div class="harlem-shake" data-animation="flip">
flip
</div>
<div class="harlem-shake" data-animation="flipInX">
flipInX
</div>
<div class="harlem-shake" data-animation="flipOutX">
flipOutX
</div>
<div class="harlem-shake" data-animation="flipInY">
flipInY
</div>
<div class="harlem-shake" data-animation="flipOutY">
flipOutY
</div>
<div class="harlem-shake" data-animation="fadeIn">
fadeIn
</div>
<div class="harlem-shake">
default
</div>
<div class="clearfix">
<button class="start">START Harlem shake!</button>
<button class="stop">STOP Harlem shake!</button>
</div>
</div>
</body>
</html>