-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
139 lines (106 loc) · 2.19 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
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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Merry Christmas</title>
<!--<link rel="stylesheet" href= "style.css"-->
<style>
body{
background: #333;
padding-top: 150px;
}
.present{
width:410px;
margin: 0 auto;
}
.box,.lid{
background:
radial-gradient(white 15%, transparent 15.1%),
rgb(240, 58, 58);
background-position: 0 0, 25px 25px;
background-size:50px 50px;
position:relative;
margin:0 auto;
}
.box{
width:400px;
height: 250px;
}
.lid{
width:400px;
height:70px;
box-shadow:1px 2px 3px rgba( 0, 0 ,0 ,0.2);
z-index:1;
padding: 0 2px;
background-color: rgb(216,52,52);
top:0;
left:0;
transition:
top ease-out 0.5s,
left ease-out 0.5s,
transform ease-out 0.5s;
}
.box span , .lid span{
position: absolute;
display:block;
background:rgba(8, 150, 84, 0.8);
box-shadow:1px 2px 3px rgba(0,0,0,0.1);
}
.box span:first-child{
width:100%;
height:60px;
top: 80px;
}
.box span:last-child, .lid span{
width:60px;
height:100%;
left: 170px;
}
.lid span{
left:172px;
}
.promo{
color: white;
font-family:Georgia, 'Times New Roman', Times, serif;
text-align: center;
position:relative;
top:10px;
height:0;
transition :all ease-out 0.7s;
}
.promo p{
font-size:24px;
margin:0;
}
.promo h2{
font-size:40px;
margin:0;
}
.present:hover .lid{
top:-100px;
transform:rotatez(10deg);
left:10px;
}
.present:hover .promo {
top: -80px;
}
</style>
</head>
<body>
<div class="present">
<div class="lid">
<span></span>
</div>
<div class="promo">
<p>Merry Christmas</p>
<h2>My love</h2>
</div>
<div class="box">
<span></span>
<span></span>
</div>
</div>
</body>
</html>