galaxy/Buttons/vinodjangid07_dull-ladybug-18.html

141 lines
No EOL
2.7 KiB
HTML

<button class="reward-btn">
<span class="IconContainer">
<svg
xmlns="http://www.w3.org/2000/svg"
fill="none"
viewBox="0 0 60 20"
class="box-top box"
>
<path
stroke-linecap="round"
stroke-width="4"
stroke="#6A8EF6"
d="M2 18L58 18"
></path>
<circle
stroke-width="5"
stroke="#6A8EF6"
fill="#101218"
r="7"
cy="9.5"
cx="20.5"
></circle>
<circle
stroke-width="5"
stroke="#6A8EF6"
fill="#101218"
r="7"
cy="9.5"
cx="38.5"
></circle>
</svg>
<svg
xmlns="http://www.w3.org/2000/svg"
fill="none"
viewBox="0 0 58 44"
class="box-body box"
>
<mask fill="white" id="path-1-inside-1_81_19">
<rect rx="3" height="44" width="58"></rect>
</mask>
<rect
mask="url(#path-1-inside-1_81_19)"
stroke-width="8"
stroke="#6A8EF6"
fill="#101218"
rx="3"
height="44"
width="58"
></rect>
<line
stroke-width="6"
stroke="#6A8EF6"
y2="29"
x2="58"
y1="29"
x1="-3.61529e-09"
></line>
<path
stroke-linecap="round"
stroke-width="5"
stroke="#6A8EF6"
d="M45.0005 20L36 3"
></path>
<path
stroke-linecap="round"
stroke-width="5"
stroke="#6A8EF6"
d="M21 3L13.0002 19.9992"
></path>
</svg>
<span class="coin"></span>
</span>
<span class="text">Rewards</span>
</button>
<style>
/* From Uiverse.io by vinodjangid07 - Tags: animation, button, hover, hover effect, gift, rewards, bonus */
.reward-btn {
width: 120px;
height: 40px;
background-color: #101218;
display: flex;
align-items: center;
justify-content: center;
border: none;
border-radius: 8px;
cursor: pointer;
transition: all 0.3s;
}
.IconContainer {
width: 40px;
height: 40px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
position: relative;
}
.IconContainer svg {
width: 40%;
z-index: 3;
}
.box-top {
transition: all 0.3s;
}
.text {
width: 70px;
height: 100%;
font-size: 13px;
color: #6a8ef6;
display: flex;
align-items: center;
justify-content: flex-start;
font-weight: 600;
}
.reward-btn:hover .IconContainer .box-top {
transform: translateY(-5px);
}
.reward-btn:hover {
background-color: #202531;
}
.reward-btn:hover .coin {
transform: translateY(-5px);
transition-delay: 0.2s;
}
.coin {
width: 25%;
height: 25%;
background-color: #e4d61a;
position: absolute;
border-radius: 50%;
transition: all 0.3s;
z-index: 1;
border: 2px solid #ffe956;
margin-top: 4px;
}
</style>