-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path3D Layered Icon.html
161 lines (158 loc) · 4.58 KB
/
3D Layered Icon.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
155
156
157
158
159
160
161
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>3D Layered Icons</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<style>
*{
margin: 0;
padding: 0;
box-sizing: border-box;
user-select: none;
}
body{
display: flex;
align-items: center;
justify-content: center;
min-height: 100vh;
background: #222;
}
ul{
position: relative;
display: flex;
transform-style: preserve-3d;
transform: rotate(-25deg) skew(25deg);
}
ul li::before{
content: "";
position: absolute;
bottom: -10px;
left: 0;
width: 100%;
height: 10px;
background: #2a2a2a;
transform-origin: top;
transform: skewX(-41deg);
}
ul li::after{
content: "";
position: absolute;
top: 0px;
left: -9px;
width: 9px;
height: 100%;
background: #464646;
transform-origin: right;
transform: skewY(-49deg);
}
ul li{
position: relative;
list-style: none;
height: 60px;
width: 60px;
margin: 0 10px;
}
ul li span{
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
display: flex !important;
justify-content: center;
align-items: center;
background: #333;
color: rgba(255,255,255,0.2);
font-size: 30px !important;
transition: 0.1s;
}
ul li:hover span{
z-index: 1000;
transition: 0.5s;
color: #fff;
box-shadow: -1px 1px 1px rgba(0, 0, 0, 0.05);
}
ul li:hover .icon{
transform: translate(40px,-40px);
opacity: 1;
}
ul li:hover .first{
transform: translate(0px,0px);
opacity: 0.2;
}
ul li:hover .second{
transform: translate(10px,-10px);
opacity: 0.4;
}
ul li:hover .third{
transform: translate(20px,-20px);
opacity: 0.6;
}
ul li:hover .fourth{
transform: translate(30px,-30px);
opacity: 0.5;
}
ul li:nth-child(1):hover span{
background: #3b5999;
}
ul li:nth-child(2):hover span{
background: #007785;
}
ul li:nth-child(3):hover span{
background: #e4405f;
}
ul li:nth-child(4):hover span{
background: #55acee;
}
ul li:nth-child(5):hover span{
background: #43bf51;
}
</style>
</head>
<body>
<ul>
<li>
<a href="#"></a>
<span class="first"></span>
<span class="second"></span>
<span class="third"></span>
<span class="fourth"></span>
<span class="icon fa fa-facebook"></span>
</li>
<li>
<a href="#"></a>
<span class="first"></span>
<span class="second"></span>
<span class="third"></span>
<span class="fourth"></span>
<span class="icon fa fa-linkedin"></span>
</li>
<li>
<a href="#"></a>
<span class="first"></span>
<span class="second"></span>
<span class="third"></span>
<span class="fourth"></span>
<span class="icon fa fa-instagram"></span>
</li>
<li>
<a href="#"></a>
<span class="first"></span>
<span class="second"></span>
<span class="third"></span>
<span class="fourth"></span>
<span class="icon fa fa-twitter"></span>
</li>
<li>
<a href="#"></a>
<span class="first"></span>
<span class="second"></span>
<span class="third"></span>
<span class="fourth"></span>
<span class="icon fa fa-whatsapp"></span>
</li>
</ul>
</body>
</html>