-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
78 lines (71 loc) · 1.6 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
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
76
77
78
<!DOCTYPE HTML>
<html>
<head>
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name = "viewport" content = "width = 320,
initial-scale = 1, user-scalable = no">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<title>Magic Text!</title>
<style>
body {
background: #000;
margin: 0;
padding: 0;
}
* {
height: 480px;
width: 320px;
}
div {
position: absolute;
}
.sliver {
/*left: 154px;*/
overflow: hidden;
width: 2px;
}
div.text {
font-family: monospace;
color: #fff;
font-size: 500px;
font-weight: normal;
line-height: 360px;
width: 3em;
-webkit-animation-name: slide;
-webkit-animation-duration: 4s;
-webkit-animation-direction: alternate;
-webkit-animation-timing-function: linear;
}
@-webkit-keyframes slide {
0% {
-webkit-transform: translate(0, 0)
}
10% {
-webkit-transform: translate(0, 0)
}
100% {
-webkit-transform: translate(-1200px, 0)
}
}
/*
@-webkit-keyframes slideLeft {
0% {
left: 0
}
10% {
left: 0
}
100% {
left: -1500px;
}
}
*/
</style>
</head>
<body onload="window.scrollTo(0,1)" style="display:none">
<div class="sliver">
<div class="text">MPG</div>
</div>
<script src="magic.js"></script>
</body>
</html>