Gombanimációk
Zöld spirál
Élő előnézet – az animáció teljes méretben.
Élő előnézet
HTML · CSS · JS
<button class="we-btn-spiral" type="button">
<span class="we-btn-spiral-shape"></span>
<span class="we-btn-spiral-text">Tovább</span>
<span class="we-btn-spiral-arrow">→</span>
</button>
.we-btn-spiral {
position: relative;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 16px;
min-width: 175px;
height: 54px;
padding: 0 26px;
border: 1px solid rgba(63,159,99,.35);
border-radius: 12px;
background: #101713;
color: #f1f3ee;
font-family: Arial, sans-serif;
font-size: 14px;
font-weight: 500;
letter-spacing: .4px;
cursor: pointer;
overflow: hidden;
transition:
transform .7s cubic-bezier(.22,1,.36,1),
border-radius .7s ease,
box-shadow .7s ease;
}
.we-btn-spiral-shape {
position: absolute;
left: 50%;
top: 50%;
width: 22px;
height: 22px;
background: #3f9f63;
border-radius: 50%;
transform:
translate(-50%, -50%)
scale(0)
rotate(-180deg);
transition:
transform 1.15s cubic-bezier(.22,1,.36,1),
border-radius 1.15s ease;
}
.we-btn-spiral:hover {
transform:
translateY(-4px);
border-radius: 18px;
box-shadow:
0 20px 42px rgba(0,0,0,.42);
}
.we-btn-spiral:hover .we-btn-spiral-shape {
transform:
translate(-50%, -50%)
scale(12)
rotate(360deg);
border-radius: 38%;
}
.we-btn-spiral-text,
.we-btn-spiral-arrow {
position: relative;
z-index: 2;
transition:
transform .9s cubic-bezier(.22,1,.36,1),
color .6s ease;
}
.we-btn-spiral-arrow {
font-size: 20px;
}
.we-btn-spiral:hover .we-btn-spiral-text {
color: #08110b;
transform:
translateX(-4px);
}
.we-btn-spiral:hover .we-btn-spiral-arrow {
color: #08110b;
transform:
translateX(8px)
scale(1.12);
}
.we-btn-spiral:active {
transform:
translateY(-1px)
scale(.97);
}
Ehhez az animációhoz nincs külön JavaScript.