-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathexample-page.html
140 lines (138 loc) · 4.26 KB
/
example-page.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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
<!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" type="text/css" href="css/jquery.harlem-shake-1.0.css">
<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</title>
<style>
#container {
width: 960px;
margin: auto;
}
.left-sidebar, .right-sidebar {
width: 200px;
padding: 15px;
}
.left-sidebar {
float: left;
border-right: 1px solid;
}
.right-sidebar {
float: right;
border-left: 1px solid;
}
.harlem-shake {
width: 150px;
height: 100px;
background-color: #44f;
margin: 10px;
float: left;
}
.mid {
width: 450px;
float: left;
padding: 15px;
}
.clearfix {
clear: both;
}
</style>
<script>
$(function() {
$('.start').click(function() {
//just add elements you want to animate
$('.harlem-shake, .header1, .header2, .header').harlemShake();
});
$('.stop').click(function() {
$('.harlem-shake, .header1, .header2, .header').harlemShake('stop');
});
});
</script>
</head>
<body>
<div id="container">
<header class="header" data-animation="rotate">
<div class="harlem-shake" data-pivot="true" data-animation="rotateHalf">This can be your logo</div>
<div class="clearfix"></div>
<button class="start">Start total crazy Harlem shake!</button>
<button class="stop">Stop Harlem shake!</button>
</header>
<aside class="left-sidebar">
<h2 class="header2" data-animation="rotate">Left sidebar</h2>
<div class="harlem-shake" data-animation="rotate">
rotate
</div>
<div class="harlem-shake" 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>
</aside>
<div class="mid">
<h1 class="header1" data-animation="pulse">Some content</h1>
<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="clearfix"></div>
<p>Created by <a href="http://hromnik.com">Elfoslav</a></p>
<p>Github:
<a href="https://github.com/Elfoslav/harlem-shake">
https://github.com/Elfoslav/harlem-shake
</a>
</p>
</div>
<aside class="right-sidebar">
<h2 class="header2" data-animation="rotateHalf">Right sidebar</h2>
<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>
</aside>
</div>
</body>
</html>