-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathanimation-practice-one.html
More file actions
111 lines (107 loc) · 3.14 KB
/
animation-practice-one.html
File metadata and controls
111 lines (107 loc) · 3.14 KB
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>one</title>
<style>
html, body{
height:100%;
}
body {
margin:0;
padding:0;
font-family:sans-serif;
text-align:center;
color:#FFF;
overflow:hidden;
position:relative;
-webkit-perspective: 1500px;
perspective: 1500px;
}
article{
position: absolute;
width:100%;
height:100%;
padding:100px;
box-sizing:border-box;
-webkit-transition:all 1s ease-in-out;
transition:all 1s ease-in-out;
top:0;
-webkit-backface-visibility: hidden;
backface-visibility: hidden;
}
#tablet{
background:#4ac4aa;
/*left:0;*/
/*top:0;*/
/*-webkit-transform:scale(1,1);*/
/*transform:scale(1,1);*/
-webkit-transform:scale(1,1) rotateY(0deg);
transform:scale(1,1) rotateY(0deg);
}
#wifi{
background:#ea5634;
/*left:100%;*/
/*top:100%;*/
/*-webkit-transform:scale(0,0);*/
/*transform:scale(0,0);*/
-webkit-transform:scale(0,0) rotateY(180deg);
transform:scale(0,0) rotateY(180deg);
}
h1{
font-size:4em;
border-bottom:1px solid rgba(255,255,255,.2);
padding-bottom:30px;
}
p{
color:rgba(255,255,255,.8);
margin-bottom:30px;
}
a{
font-size:1.5em;
padding:5px 50px;
border:1px solid #FFF;
border-radius:4px;
text-decoration:none;
}
#tablet.move{
/*left:-100%;*/
/*top:-100%;*/
/*-webkit-transform:scale(0,0);*/
/*transform:scale(0,0);*/
-webkit-transform:scale(0,0) rotateY(-180deg);
transform:scale(0,0) rotateY(-180deg);
}
#wifi.move{
/*left:0;*/
/*top:0;*/
/*-webkit-transform:scale(1,1);*/
/*transform:scale(1,1);*/
-webkit-transform:scale(1,1) rotateY(0deg);
transform:scale(1,1) rotateY(0deg);
}
</style>
</head>
<body>
<article id="tablet">
<h1>Comprehensam</h1>
<p><a href="https://mp.weixin.qq.com/s?__biz=MjM5MTA1MjAxMQ==&mid=2651226612&idx=1&sn=3ef3641e9005be44ad276e0869880775&chksm=bd4958708a3ed166d1d62dc0a424e6a40763cb750ea3278f0f33c5f4ec317f6db266cce7da49&scene=0#rd">Mel homero labores ce maluisset ... aliquam te.</a></p>
<a href="#wifi">Next</a>
</article>
<article id="wifi">
<h1>Adversarium</h1>
<p>Ea qui graece facilisi persequeris ... similique ex qui.</p>
<a href="#tablet">Next</a>
</article>
<script src="./js/jquery.min.js"></script>
<script>
$(document).ready(function() {
$('a').click(function(e){
e.preventDefault();
$('#tablet').toggleClass('move');
$('#wifi').toggleClass('move');
});
});
</script>
</body>
</html>