-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
104 lines (103 loc) · 2.52 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
<!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="./style.css">
<script src="https://code.jquery.com/jquery-3.4.1.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css"/>
<title>Neumorphic Social Button</title>
</head>
<body>
<div class="center">
<div class="icons first">
<li><a href="https://twitter.com/EthicalFaizan"><span class="fab fa-twitter"></span></a></li>
<li><a href="https://instagram.com/EthicalFaizan"><span class="fab fa-instagram"></span></a></li>
<li><a href="https://linkdin.com/EthicalFaizan"><span class="fab fa-linkedin-in"></span></a></li>
<li><a href="https://github.com/Faizan-Khanx"><span class="fab fa-github"></span></a></li>
</div>
<script>
$('.first li').click(function(){
$(this).toggleClass("shadow-1").siblings();
$(this).toggleClass("fill-color").siblings();
});
$('.second li').click(function(){
$(this).toggleClass("shadow-2").siblings();
$(this).toggleClass("fill-color").siblings();
});
</script>
</body>
</html>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
display: flex;
align-items: center;
justify-content: center;
min-height: 100vh;
text-align: center;
background: #dde1e7;
width: 100%;
}
.icons {
display: flex;
margin: 40px 0;
}
li {
position: relative;
list-style: none;
height: 70px;
width: 70px;
margin: 0 10px;
border-radius: 50%;
background: #dde1e7;
cursor: pointer;
box-shadow: -3px -3px 7px #ffffff73,
3px 3px 5px rgba(94,104,121,0.288);
}
li a {
line-height: 70px;
font-size: 27px;
color: #b6bbc5;
}
.first li.shadow-1 {
box-shadow: inset -3px -3px 7px #ffffff73,
inset 3px 3px 5px rgba(94,104,121,0.288);
}
.first li.shadow-1 a {
font-size: 25px;
}
.second li.shadow-2 a {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
height: 55px;
width: 55px;
line-height: 55px;
border-radius: 50%;
background: #dde1e7;
font-size: 24px;
box-shadow: inset -3px -3px 7px #ffffff73,
inset 3px 3px 5px rgba(94,104,121,0.288);
}
li:nth-child(1).fill-color a {
color: #4267B2;
}
li:nth-child(2).fill-color a {
color: #1DA1F2;
}
li:nth-child(3).fill-color a {
color: #E1306C;
}
li:nth-child(4).fill-color a {
color: #2867B2;
}
li:nth-child(5).fill-color a {
color: #333;
}
</style>