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
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Logo Animation</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<style type="text/css">
body {
color: white;
background-color: black;
}
#logospace {
position: relative;
width: 120px;
height: 55px;
//border: 1px solid white;
margin: 10px
}
#tear_top, #tear_bottom {
position: absolute; /* halves must overlap */
width: 54;
height: 35px;
margin: 0;
//border: 1px solid red;
}
#tear_bottom {
margin-top: 20px;
right: 0px; /* anchor the right of the div */
}
#tear_logo {
opacity: 0.0;
margin-left: 32px;
}
</style>
<script type="text/javascript" src="jquery-1.10.1.min.js"></script>
<script type="text/javascript" src="jQueryRotateCompressed.2.2.js"></script>
<script type="text/javascript">
<![CDATA[
$(function() {
$("#tear_top").animate({'margin-left': 32}, 500, function() {
$(this).animate({opacity: 0.0}, 100);
});
$("#tear_bottom").animate({'margin-right': 32}, 500, function() {
$(this).animate({opacity: 0.0}, 100);
$("#tear_logo").css({opacity: 100});
$("#tear_logo").rotate({angle: 0, animateTo: 90, easing: $.easing.easeInOutExpo,
duration: 800, callback: function() {
$("#tear_logo").rotate({bind: {
click: function(){
$(this).rotate({
angle: 0,
animateTo: 270,
easing: $.easing.easeInOutElastic
})
}
}})
}
});
});
});
]]>
</script>
</head>
<body>
<p>Sample text above the animated logo for testing purposes.</p>
<div id="logospace">
<div id="tear_top" class="logoimg"><img src="kane-logo/tear-top.png" alt="" /></div>
<div id="tear_bottom" class="logoimg"><img src="kane-logo/tear-bottom.png" alt="" /></div>
<img id="tear_logo" src="kane-logo/logo.png" alt="" />
</div>
<p>Sample text below the animated logo for testing purposes.</p>
<br />
</body>
</html>
|