galaxy/Buttons/andrew-demchenk0_moody-penguin-72.html

63 lines
1.8 KiB
HTML

<button class="button">
<svg class="svg-icon" fill="none" height="20" viewBox="0 0 20 20" width="20" xmlns="http://www.w3.org/2000/svg"><path clip-rule="evenodd" d="m9.99998 4.16667c1.38072 0 2.50002 1.11929 2.50002 2.5 0 .85577-.4293 1.6115-1.088 2.06341l-.4536.31125.1079.53934 1.2505 6.25263h-4.63366l1.25051-6.25263.10791-.53934-.45358-.31125c-.65876-.45191-1.088-1.20764-1.088-2.06341 0-1.38071 1.11925-2.5 2.5-2.5zm-2.31684 11.66663-.19934.9968-.81715-.1634v-.8334zm5.65016.8334v-.8334h-1.0165l.1993.9968zm.8172-.1634.1993.9967h-1.0165-6.66665-1.0165l.19935-.9967 1.35023-6.75127c.14013.12727.28892.24506.44536.35237l.47144-.68715-.81716-.16342-.09964.4982c-.83832-.76139-1.36642-1.86163-1.36642-3.08536 0-2.30119 1.86549-4.16667 4.16667-4.16667 2.30112 0 4.16662 1.86548 4.16662 4.16667 0 1.22374-.5281 2.32399-1.3664 3.08538l-.0996-.49822-.8172.16342-.4714-.68717.4714.68717-.8171.16342.8171-.16342.4715.68715c.1564-.1073.3052-.22509.4453-.35235z" fill="#fff" fill-rule="evenodd"></path></svg>
<span class="lable">Key</span>
</button>
<style>
/* From Uiverse.io by andrew-demchenk0 - Tags: animation, purple, button, opacity, key , small */
.button {
display: flex;
justify-content: center;
align-items: center;
padding: 6px 12px;
gap: 8px;
height: 32px;
width: 82px;
border: none;
background: #a549dacb;
border-radius: 20px;
cursor: pointer;
}
.lable {
line-height: 20px;
font-size: 17px;
color: #fff;
font-family: sans-serif;
letter-spacing: 1px;
}
.svg-icon {
width: 20px;
height: 20px;
}
.button:hover {
background: #A649DA;
}
.button:hover .svg-icon {
animation: rot 0.5s linear infinite;
}
@keyframes rot {
0% {
transform: rotate(0deg);
}
25% {
transform: rotate(-6deg);
}
50% {
transform: rotate(0deg);
}
75% {
transform: rotate(6deg);
}
100% {
transform: rotate(0deg);
}
}
</style>