-
Notifications
You must be signed in to change notification settings - Fork 0
/
Show Hide Social Media Icons.html
121 lines (118 loc) Β· 2.88 KB
/
Show Hide Social Media Icons.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css"/>
<style>
body {
background: #3d405bd7;
color: #fff;
font-family: "Raleway", sans-serif;
}
a {
color: #fff;
text-decoration: none;
}
.me {
width: 400px;
margin: 90px auto;
}
.me p,
.me h1 {
letter-spacing: 3px;
text-align: center;
}
.me p {
font-weight: 200;
}
.me span {
font-weight: bold;
}
.social {
position: fixed;
top: 30%;
left: 15px;
}
.social ul {
padding: 0px;
transform: translate(-270px, 0);
}
.social ul li {
display: block;
margin: 5px;
background: rgba(0, 0, 0, 0.36);
width: 300px;
text-align: right;
padding: 10px;
border-radius: 0 30px 30px 0;
transition: all 1s;
}
.social ul li:hover {
transform: translate(110px, 0);
background: rgba(255, 255, 255, 0.4);
}
.social ul li:hover a {
color: #fff;
font-weight: 500;
letter-spacing: 0.1em;
font-size: 18px;
}
.social ul li:hover i {
background: #fff;
transform: rotate(360deg);
transition: all 1s;
}
.social ul li:hover .fa-instagram {
color: #e1306c;
}
.social ul li:hover .fa-github {
color: #6e5494;
}
.social ul li:hover .fa-telegram {
color: #229ed9;
}
.social ul li:hover .fa-twitter {
color: #1da1f2;
}
.social ul li:hover .fa-linkedin-in {
color: #0077b5;
}
.social ul li i {
margin-left: 10px;
color: #fff;
background: #000;
padding: 10px;
border-radius: 50%;
width: 30px;
height: 30px;
font-size: 30px;
transform: rotate(0deg);
}
</style>
<title>Show Hide Social Media Icons</title>
</head>
<body>
<nav class="social">
<ul>
<li>
<a href="">Instagram <i class="fa-brands fa-instagram"></i></a>
</li>
<li>
<a href="">Github <i class="fa-brands fa-github"></i></a>
</li>
<li>
<a href="">Telegram <i class="fa-brands fa-telegram"></i></a>
</li>
<li>
<a href="">Twitter <i class="fa-brands fa-twitter"></i></a>
</li>
<li>
<a href="">Linkedin <i class="fa-brands fa-linkedin-in"></i></a>
</li>
</ul>
</nav>
</body>
</html>