forked from Grafikart/Zoombox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathloading.html
38 lines (36 loc) · 1013 Bytes
/
loading.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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Loading</title>
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<style type="text/css">
#zoombox { position: absolute; height: 200px; width: 30%; margin: 10% 35%; padding: 10px; border: 1px solid red; text-align: center; vertical-align: middle;}
</style>
<link type="text/css" href="zoombox.css" rel="stylesheet" media="screen" />
</head>
<body>
<div id="zoombox" class="zoombox">
Coucou, c'est nous !!
<div id="zoombox_loader">
</div>
</div>
<script type="text/javascript">
var i = 0;
var timer = window.setInterval(
function(){
var elmt = document.getElementById('zoombox_loader');
if (elmt) {
if (i >= 0) {
i = -1056;
} else {
i += 96;
}
elmt.style.backgroundPosition = i+'px 0';
}
},
150
);
</script>
</body>
</html>