-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
36 lines (33 loc) · 1.47 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
<html>
<head>
<title>singularities</title>
<link href='http://fonts.googleapis.com/css?family=Oxygen' rel='stylesheet' type='text/css'>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js"></script>
<style>
h1 { font-family: 'Oxygen', sans-serif; size: 4em; color: #734d8f; }
.logo { background: transparent url('logo_bg.png') no-repeat center center; display: block; width: 20px; height: 50px; margin-top: -2px; padding: 0px 15px; float: left; -webkit-transform: rotateX(45deg); transform: rotateX(45deg); }
#text { float: left; display: block; margin: 0px 10px; }
h1:hover #text { text-shadow:0px 0px 20px #734d8f; }
</style>
</head>
<body>
<h1> <span class="logo"></span> <span id="text"> singularities.org </span> <span class="logo"> </span> </h1>
<script>
var globalDegrees = 0,
rotation,
setRotation = function() {
rotation = setInterval(
function () {
globalDegrees = (globalDegrees - 1) % 360;
$('.logo').css('-webkit-transform', 'rotateX(45deg) rotateZ(' + globalDegrees + 'deg)').css('transform', 'rotateX(45deg) rotateZ(' + globalDegrees + 'deg);');
},
30
);
},
unsetRotation = function() {
clearInterval(rotation);
};
$('h1').hover(setRotation, unsetRotation);
</script>
</body>
</html>