Skip to content

Commit b85d753

Browse files
committed
THis code is for glowing icons
1 parent b591985 commit b85d753

File tree

3 files changed

+70
-1
lines changed

3 files changed

+70
-1
lines changed

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"liveServer.settings.port": 5501
2+
"liveServer.settings.port": 5502
33
}

Glowing icons/index.html

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
7+
<title>Document</title>
8+
<link rel="stylesheet" href="style.css">
9+
<script src="https://kit.fontawesome.com/55b8c65a7e.js" crossorigin="anonymous"></script>
10+
</head>
11+
<body>
12+
<div class="container">
13+
<i class="fa fa-apple" id="apple"></i>
14+
<i class="fa fa-twitter" id="twitter"></i>
15+
<i class="fa fa-instagram" id="github"></i>
16+
</div>
17+
</body>
18+
</html>

Glowing icons/style.css

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
*{
2+
margin: 0;
3+
padding: 0;
4+
}
5+
body{
6+
height: 100vh;
7+
width: 100vh;
8+
background: #18191f;
9+
}
10+
.container{
11+
display: flex;
12+
justify-content: center;
13+
align-items: center;
14+
height: 100vh;
15+
width: 100vw;
16+
}
17+
#apple,
18+
#twitter,
19+
#github,
20+
#facebook{
21+
font-size: 8em;
22+
background-color: #18191f;
23+
color: #fff;
24+
box-shadow: 2px 2px 2px #00000080, 10px 1px 12px #00000080,2px 2px 10px #00000080,2px 2px 3px #00000080,inset
25+
2px 2px 10px #00000080,inset
26+
2px 2px 10px #00000080,inset
27+
2px 2px 10px #00000080,inset
28+
2px 2px 10px #00000080;
29+
border-radius: 29px;
30+
padding: 11px 19px;
31+
margin: 0 40px;
32+
animation: animate 3s linear infinite;
33+
text-shadow: 0 0 50px #0072ff, 0 0 100px #0072ff,0 0 50px #0072ff, 0 0 100px #0072ff ;
34+
}
35+
#twitter{
36+
animation-delay: 0.3s;
37+
}
38+
#facebook{
39+
animation-delay: 0.7s;
40+
}
41+
#github{
42+
animation-delay: 0.1s;
43+
}
44+
@keyframes animate{
45+
from{
46+
filter:hue-rotate(0deg);
47+
}
48+
to{
49+
filter: hue-rotate(360deg);
50+
}
51+
}

0 commit comments

Comments
 (0)