Add files via upload

This commit is contained in:
MViper 2022-04-15 12:58:12 +02:00 committed by GitHub
parent 556f8c0ca6
commit d2ecac63b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 105 additions and 0 deletions

28
index.html Normal file
View File

@ -0,0 +1,28 @@
<!Doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Animatet Icons</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.1/css/all.min.css" integrity="sha512-KfkfwYDsLkIlwQp6LFnl8zNdLGxu9YAA1QvwINks4PhcElQSvqcyVLLD9aMhXd13uQjoXtEKNosOWaZqXgel0g==" crossorigin="anonymous" referrerpolicy="no-referrer" />
<link rel="stylesheet" href="style.css">
</head>
<body>
<ul>
<li style="--clr:#1877f2;">
<a href="#"><i class="fa-brands fa-facebook-f"></i></a>
</li>
<li style="--clr:#ff0000;">
<a href="#"><i class="fa-brands fa-youtube"></i></a>
</li>
<li style="--clr:#1da1f2;">
<a href="#"><i class="fa-brands fa-twitter"></i></a>
</li>
<li style="--clr:#c32aa3;">
<a href="#"><i class="fa-brands fa-instagram"></i></a>
</li>
<li style="--clr:#25d366;">
<a href="#"><i class="fa-brands fa-whatsapp"></i></a>
</li>
</ul>
</body>
</html>

77
style.css Normal file
View File

@ -0,0 +1,77 @@
*
{
margin: 0;
padding: 0;
box-sizing: border-box;
}
:root
{
--bg: #222;
}
body
{
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background: var(--bg);
}
ul
{
position: relative;
display: flex;
gap: 50px;
}
ul li
{
position: relative;
list-style: none;
width: 80px;
height: 80px;
display: flex;
justify-content: center;
align-items: center;
cursor: pointer;
transition: 0.5s;
}
ul li:hover
{
z-index: 10000;
transform: scale(0.75);
}
ul li::before
{
content: '';
position: absolute;
inset: 30px;
box-shadow: 0 0 0 10px var(--clr),
0 0 0 20px var(--bg),
0 0 0 22px var(--clr);
transition: 0.5s;
}
ul li:hover::before
{
inset: 0px;
}
ul li::after
{
content: '';
position: absolute;
inset: 0;
background: var(--bg);
transform: rotate(45deg);
}
ul li a
{
position: relative;
text-decoration: none;
color: var(--clr);
z-index: 10;
font-size: 2em;
transition: 0.5s;
}
ul li:hover a
{
font-size: 3em;
filter: drop-shadow(0 0 20px var(--clr)) drop-shadow(0 0 40px var(--clr)) drop-shadow(0 0 60px var(--clr));
}