mirror of
https://github.com/uiverse-io/galaxy.git
synced 2025-11-28 05:00:22 +08:00
120 lines
No EOL
2.4 KiB
HTML
120 lines
No EOL
2.4 KiB
HTML
<ul>
|
|
<li>
|
|
<a class="facebook" href="#">
|
|
<span></span>
|
|
<span></span>
|
|
<span></span>
|
|
<span></span>
|
|
<svg
|
|
xmlns="http://www.w3.org/2000/svg"
|
|
width="29"
|
|
height="29"
|
|
fill="currentColor"
|
|
class="bi bi-facebook"
|
|
viewBox="0 0 16 16"
|
|
>
|
|
<path
|
|
d="M16 8.049c0-4.446-3.582-8.05-8-8.05C3.58 0-.002 3.603-.002 8.05c0 4.017 2.926 7.347 6.75 7.951v-5.625h-2.03V8.05H6.75V6.275c0-2.017 1.195-3.131 3.022-3.131.876 0 1.791.157 1.791.157v1.98h-1.009c-.993 0-1.303.621-1.303 1.258v1.51h2.218l-.354 2.326H9.25V16c3.824-.604 6.75-3.934 6.75-7.951"
|
|
></path>
|
|
</svg>
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
|
|
<style>
|
|
/* From Uiverse.io by Juanes200122 - Tags: icon, animation, social, twitter, facebook, instagram, button, hover */
|
|
ul {
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
margin: 0;
|
|
padding: 0;
|
|
display: flex;
|
|
}
|
|
ul li {
|
|
list-style: none;
|
|
}
|
|
ul li a {
|
|
display: block;
|
|
position: relative;
|
|
width: 100px;
|
|
height: 100px;
|
|
line-height: 100px;
|
|
font-size: 40px;
|
|
text-align: center;
|
|
text-decoration: none;
|
|
color: #404040;
|
|
margin: 0 30px;
|
|
transition: 0.5s;
|
|
}
|
|
ul li a span {
|
|
position: absolute;
|
|
transition: transform 0.5s;
|
|
}
|
|
ul li a span:nth-child(1),
|
|
ul li a span:nth-child(3) {
|
|
width: 100%;
|
|
height: 3px;
|
|
background: #404040;
|
|
}
|
|
ul li a span:nth-child(1) {
|
|
top: 0;
|
|
left: 0;
|
|
transform-origin: right;
|
|
}
|
|
ul li a:hover span:nth-child(1) {
|
|
transform: scaleX(0);
|
|
transform-origin: left;
|
|
transition: transform 0.5s;
|
|
}
|
|
|
|
ul li a span:nth-child(3) {
|
|
bottom: 0;
|
|
left: 0;
|
|
transform-origin: left;
|
|
}
|
|
ul li a:hover span:nth-child(3) {
|
|
transform: scaleX(0);
|
|
transform-origin: right;
|
|
transition: transform 0.5s;
|
|
}
|
|
|
|
ul li a span:nth-child(2),
|
|
ul li a span:nth-child(4) {
|
|
width: 3px;
|
|
height: 100%;
|
|
background: #404040;
|
|
}
|
|
ul li a span:nth-child(2) {
|
|
top: 0;
|
|
left: 0;
|
|
transform: scale(0);
|
|
transform-origin: bottom;
|
|
}
|
|
ul li a:hover span:nth-child(2) {
|
|
transform: scale(1);
|
|
transform-origin: top;
|
|
transition: transform 0.5s;
|
|
}
|
|
ul li a span:nth-child(4) {
|
|
top: 0;
|
|
right: 0;
|
|
transform: scale(0);
|
|
transform-origin: top;
|
|
}
|
|
ul li a:hover span:nth-child(4) {
|
|
transform: scale(1);
|
|
transform-origin: bottom;
|
|
transition: transform 0.5s;
|
|
}
|
|
|
|
.facebook:hover {
|
|
color: #3b5998;
|
|
}
|
|
.facebook:hover span {
|
|
background: #3b5998;
|
|
}
|
|
|
|
</style>
|
|
|