-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathexample.html
More file actions
32 lines (23 loc) · 791 Bytes
/
example.html
File metadata and controls
32 lines (23 loc) · 791 Bytes
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
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>jQuery Element Shaker Example</title>
<script src="/js/jquery-1.7.1.min.js"></script>
<script src="/js/jquery-element-shaker.js"></script>
<script>
function shakerDidFinish() {
alert('done!');
}
function shakeItUp() {
$('#shaking_div').shake({dur: 500, drift: 10});
$('#img').shake({dur: 1000, drift: 5}, shakerDidFinish);
}
</script>
</head>
<body>
<div id='shaking_div'>Shaking Shaking</div>
<img id='img' style='display: block;' src='http://upload.wikimedia.org/wikipedia/en/5/5c/Spongebob-squarepants.png'/>
<a href='#' onclick='shakeItUp()'>Click To Shake</a>
</body>
</html>