-
-
Notifications
You must be signed in to change notification settings - Fork 509
/
landscape.html
88 lines (88 loc) · 2.51 KB
/
landscape.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
79
80
81
82
83
84
85
86
87
88
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<title>横屏提示</title>
<link rel="stylesheet" href="css/global.css">
<link rel="stylesheet" href="../src/zepto.fullpage.css">
<style>
.landscape {
display: none;
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
text-align: center;
color: #ffd40a;
font-size: 22px;
background: #32373b;
}
.landscape img {
margin-top: 20px;
-webkit-transform: rotate(-90deg);
transform: rotate(-90deg);
-webkit-animation: landscape 1.5s infinite;
animation: landscape 1.5s infinite;
}
@-webkit-keyframes landscape {
0% {
-webkit-transform: rotate(-90deg);
}
30% {
-webkit-transform: rotate(0deg);
}
70% {
-webkit-transform: rotate(0deg);
}
100% {
-webkit-transform: rotate(-90deg);
}
}
@keyframes landscape {
0% {
transform: rotate(-90deg);
}
30% {
transform: rotate(0deg);
}
70% {
transform: rotate(0deg);
}
100% {
transform: rotate(-90deg);
}
}
</style>
</head>
<body>
<div class="wp">
<div class="wp-inner">
<div class="page page1">1</div>
<div class="page page2">2</div>
<div class="page page3">3</div>
<div class="page page4">4</div>
</div>
</div>
<span class="start"><b></b></span>
<div class="landscape">
<img src="img/landscape.png" height="194" width="128">
<p>为了更好的体验,请将手机/平板竖过来</p>
</div>
<script src="js/zepto.js"></script>
<script src="../src/zepto.fullpage.js"></script>
<script>
$('.wp-inner').fullpage({
orientationchange: function(e) {
if (e === 'landscape') {
$('.landscape').show();
} else {
$('.landscape').hide();
}
}
});
</script>
</body>
</html>