blob: f5a6c39936dff11be637134d3387cb0007fa2369 (
plain)
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
|
<!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 {
width: 429px;
height: 231px;
border: 2px solid white;
margin: 10px
}
#logo {
position: relative;
border: 1px solid red;
}
#ltear, #rtear {
height: 151px;
position: absolute; /* halves must overlap */
border: 2px solid white;
}
#logo img {
}
#rtear {
margin-top: 80px;
margin-left: 200px;
}
</style>
<script type="text/javascript" src="jquery-1.10.1.min.js"></script>
<script type="text/javascript">
<![CDATA[
$(function() {
$("#rtear").animate({'margin-left': 100}, 1000);
$("#ltear").animate({'margin-left': 100}, 1000, function() {
$("#logo").each(function() {
$(this).css({
'transform-origin': '24% 1% 0',
'-webkit-transform': 'rotate(90deg)',
'-moz-transform': 'rotate(90deg)',
'-ms-transform': 'rotate(90deg)',
'-o-transform': 'rotate(90deg)',
'transform': 'rotate(90deg)',
'zoom': 1
});
});
});
});
]]>
</script>
</head>
<body>
<br />
<br />
<br />
<br /><br />
<br />
<br />
<br />
<p>Sample text above the animated logo.</p>
<div id="logospace">
<div id="logo">
<div id="ltear" class="logoimg"><img src="kane-logo/ltear.png" alt="" /></div>
<div id="rtear" class="logoimg"><img src="kane-logo/rtear.png" alt="" /></div>
</div>
</div>
<p>Sample text below the animated logo.</p>
</body>
</html>
|