mirror of
https://github.com/uiverse-io/galaxy.git
synced 2025-11-28 05:00:22 +08:00
61 lines
1.6 KiB
HTML
61 lines
1.6 KiB
HTML
<button>
|
|
<a href="#">
|
|
<svg viewBox="0 0 16 16" fill="currentColor" id="facebook">
|
|
<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.951z"></path>
|
|
</svg>
|
|
</a>
|
|
</button>
|
|
<style>
|
|
/* From Uiverse.io by htwarriors108 - Tags: glassmorphism, facebook, button, hover, share, social media, clean, links, hover effect, buttons */
|
|
button {
|
|
position: relative;
|
|
border: none;
|
|
margin: 10px;
|
|
background-color: transparent;
|
|
}
|
|
|
|
button a {
|
|
width: 80px;
|
|
height: 80px;
|
|
border-radius: 15px;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
border: 1px solid rgba(255, 255, 255, 0.5);
|
|
border-right: 1px solid rgba(255, 255, 255, 0.2);
|
|
border-bottom: 1px solid rgba(255, 255, 255, 0.2);
|
|
box-shadow: 0 5px 45px rgba(0, 0, 0, 0.3);
|
|
backdrop-filter: blur(2px);
|
|
transition: 0.5s;
|
|
overflow: hidden;
|
|
background-color: rgba(255, 255, 255, 0.1);
|
|
}
|
|
|
|
button a:hover {
|
|
transform: translateY(-20px);
|
|
}
|
|
|
|
button a::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 50px;
|
|
height: 100%;
|
|
background-color: rgba(255, 255, 255, 0.5);
|
|
transform: skewX(45deg) translateX(150px);
|
|
transition: 0.5s ease;
|
|
}
|
|
|
|
button a:hover::before {
|
|
transform: skewX(45deg) translateX(-150px);
|
|
}
|
|
|
|
button a svg {
|
|
width: 3em;
|
|
}
|
|
|
|
#facebook {
|
|
color: rgba(10, 128, 236, 0.7);
|
|
}
|
|
</style>
|