Gombanimációk
Lebegő zöld kapszula
Élő előnézet – az animáció teljes méretben.
Élő előnézet
HTML · CSS · JS
<button class="we-btn-float" type="button">
<span class="we-btn-float-surface"></span>
<span class="we-btn-float-text">Megnézem</span>
<span class="we-btn-float-arrow">→</span>
</button>
.we-btn-float {
position: relative;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 16px;
min-width: 180px;
height: 54px;
padding: 0 26px;
border: 1px solid rgba(63,159,99,.3);
border-radius: 14px;
background: #101713;
color: #f1f3ee;
font-family: Arial, sans-serif;
font-size: 14px;
font-weight: 500;
letter-spacing: .4px;
cursor: pointer;
overflow: hidden;
transition:
transform .85s cubic-bezier(.22,1,.36,1),
border-radius .75s ease,
box-shadow .85s ease;
}
.we-btn-float-surface {
position: absolute;
inset: 6px;
border-radius: 9px;
background: #3f9f63;
transform:
translateY(110%)
scale(.92);
transition:
transform 1s cubic-bezier(.22,1,.36,1),
border-radius .9s ease;
}
.we-btn-float-text,
.we-btn-float-arrow {
position: relative;
z-index: 2;
transition:
transform .9s cubic-bezier(.22,1,.36,1),
color .6s ease;
}
.we-btn-float-arrow {
font-size: 20px;
}
.we-btn-float:hover {
transform:
translateY(-6px);
border-radius: 18px;
box-shadow:
0 24px 48px rgba(0,0,0,.45);
}
.we-btn-float:hover .we-btn-float-surface {
transform:
translateY(0)
scale(1);
border-radius: 11px;
}
.we-btn-float:hover .we-btn-float-text {
color: #08110b;
transform:
translateY(-2px)
translateX(-4px);
}
.we-btn-float:hover .we-btn-float-arrow {
color: #08110b;
transform:
translateY(-2px)
translateX(8px)
scale(1.12);
}
.we-btn-float:active {
transform:
translateY(-1px)
scale(.97);
}
Ehhez az animációhoz nincs külön JavaScript.