mirror of
https://github.com/uiverse-io/galaxy.git
synced 2025-11-28 05:00:22 +08:00
72 lines
1.5 KiB
HTML
72 lines
1.5 KiB
HTML
<div class="background">
|
|
<button class="menu__icon">
|
|
<span></span>
|
|
<span></span>
|
|
<span></span>
|
|
</button>
|
|
</div>
|
|
<style>
|
|
/* From Uiverse.io by ArturCodeCraft - Tags: icon, button, menu, menuicon, menu button , hamburger menu */
|
|
/* <reset-style> ============================ */
|
|
button {
|
|
border: none;
|
|
background: none;
|
|
padding: 0;
|
|
margin: 0;
|
|
cursor: pointer;
|
|
font-family: inherit;
|
|
}
|
|
/* ============================ */
|
|
/* <style for bg> ======== */
|
|
.background {
|
|
border-radius: 16px;
|
|
border: 1px solid #1a1a1a;
|
|
background: rgba(74, 74, 74, 0.39);
|
|
mix-blend-mode: luminosity;
|
|
box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.20);
|
|
backdrop-filter: blur(15px);
|
|
width: 65px;
|
|
height: 65px;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
|
|
/* <style for menu__icon> ======== */
|
|
.menu__icon {
|
|
width: 32px;
|
|
height: 32px;
|
|
padding: 4px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: space-between;
|
|
transition: transform .4s;
|
|
}
|
|
|
|
.menu__icon span {
|
|
width: 100%;
|
|
height: 0.25rem;
|
|
border-radius: 0.125rem;
|
|
background-color: rgb(0, 122, 255);
|
|
box-shadow: 0 .5px 2px 0 hsla(0, 0%, 0%, .2);
|
|
transition: width .4s, transform .4s, background-color .4s;
|
|
}
|
|
|
|
.menu__icon :nth-child(1) {
|
|
width: 75%;
|
|
}
|
|
|
|
.menu__icon :nth-child(2) {
|
|
width: 50%;
|
|
}
|
|
|
|
.menu__icon:hover {
|
|
transform: rotate(-90deg);
|
|
}
|
|
|
|
.menu__icon:hover span {
|
|
width: .25rem;
|
|
transform: translateX(10px);
|
|
background-color: rgb(255, 59, 48);
|
|
}
|
|
</style>
|