-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcard_design_modfied.html
154 lines (140 loc) · 4.01 KB
/
card_design_modfied.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
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
<!DOCTYPE html>
<html>
<head>
<title>第戎层叠卡片式布局</title>
<style type="text/css">
html,body{
height: 100%;
}
body{
background-color:black;
display: grid;
font-family: Avenir,sans-serif;
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%;
-moz-osx-font-smoothing: grayscale;
-moz-font-smoothing: antialiased;
-webkit-font-smoothing: antialiased;
font-smoothing: antialiased;
}
.tariffCards{
position: absolute;
top: 50%;
left: 50%;
margin: 180px 0 0 -140px;
user-select: none;
transform: translate3d(0,0,0)
transform-style:preserve-3d;
}
.tariffCards:after{
position: absolute;
bottom: -27px;
left: 5%;
content: "";
width: 65%;
height: 10px;
border-radius: 100%;
background-image: radial-gradient(rgba(34, 50, 84, 0.04), rgba(34, 50, 84, 0));
}
.tariffCards > div{
position: relative;
width: 280px;
height: 140px;
border-radius: 12px;
color: white;
transform: rotateX(45deg) rotateY(-15deg) rotate(45deg);
transition: all 0.4s ease;
overflow: hidden;
cursor: pointer;
}
.tariffCards > div:after{
position: absolute;
top: -70px;
left: 0;
content: "";
width: 200%;
height: 200%;
background-image: linear-gradient(60deg, rgba(255, 255, 255, 0) 20%, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0) 80%);
transform: translateX(-100%);
}
.tariffCards > div img{
margin-top: 15px;
pointer-events: none;
}
.tariffCards >div h3{
position: absolute;
bottom: 28px;
left: 15px;
font-size: 18px;
font-weight: 800;
}
.tariffCards > div span{
position: absolute;
font-weight: 700;
bottom: 15px;
left: 15px;
font-size: 12px;
font-weight: 600;
opacity: 0.8;
}
.tariffCards > .card1{
margin-top: 0;
z-index: 3;
background-color:#21fed5;
background-image: linear-gradient(135deg, #21fed5, #408881);
box-shadow: 20px 20px 60px rgba(34, 50, 84, 0.5), 1px 1px 0px 1px #21fed5;
}
.tariffCards > .card2{
margin-top: -70px;
z-index: 2;
background-color:#21fed5;
background-image: linear-gradient(135deg, #21fed5, #408881);
box-shadow: 20px 20px 60px rgba(34, 50, 84, 0.5), 1px 1px 0px 1px #21fed5;
}
.tariffCards > .card3{
margin-top: -70px;
z-index: 1;
background-color:#21fed5;
background-image: linear-gradient(135deg, #21fed5, #408881);
box-shadow: 20px 20px 60px rgba(34, 50, 84, 0.5), 1px 1px 0px 1px #21fed5;
}
.tariffCards > .card4{
margin-top: -70px;
background-color:#21fed5;
background-image: linear-gradient(135deg, #21fed5, #408881);
box-shadow: 20px 20px 60px rgba(34, 50, 84, 0.5), 1px 1px 0px 1px #21fed5;
}
.tariffCards > div:hover {
transform: rotateX(30deg) rotateY(-35deg) rotate(30deg) translate(-25px, 50px);
}
.tariffCards > div:hover:after {
transform: translateX(100%);
transition: all 1.2s ease-in-out;
}
</style>
</head>
<body>
<div class="tariffCards">
<div class="card1">
<img src="http://jq22.qiniudn.com/tarcs.png" alt="Economy" height="74">
<h3>apple cards</h3>
<span>仅需199元起</span>
</div>
<div class="card2">
<img src="http://jq22.qiniudn.com/tarcs.png" alt="premiumeconomy" height="74">
<h3>apple cards</h3>
<span>仅需299元起</span>
</div>
<div class="card3">
<img src="http://jq22.qiniudn.com/tarcs.png" alt="business" height="74">
<h3>apple cards</h3>
<span>仅需399元起</span>
</div>
<div class="card4">
<img src="http://jq22.qiniudn.com/tarcs.png" alt="first" height="74">
<h3>apple cards</h3>
<span>仅需499元起</span>
</div>
</div>
</body>
</html>