Gombanimációk
Felfutó zöld sáv
Élő előnézet – az animáció teljes méretben.
Élő előnézet
HTML · CSS · JS
<button class="we-btn-rise" type="button">
<span class="we-btn-rise-fill"></span>
<span class="we-btn-rise-text">Megnézem</span>
<span class="we-btn-rise-arrow">→</span>
</button>
.we-btn-rise {
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,.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,
border-color .6s ease,
box-shadow .7s ease;
}
.we-btn-rise-fill {
position: absolute;
left: 0;
bottom: 0;
width: 100%;
height: 0;
background: #3f9f63;
transition:
height 1s cubic-bezier(.22,1,.36,1);
}
.we-btn-rise-text,
.we-btn-rise-arrow {
position: relative;
z-index: 2;
transition:
transform .8s cubic-bezier(.22,1,.36,1),
color .6s ease;
}
.we-btn-rise-arrow {
font-size: 20px;
line-height: 1;
}
.we-btn-rise:hover {
transform:
translateY(-4px);
border-radius: 17px;
border-color: #3f9f63;
box-shadow:
0 20px 42px rgba(0,0,0,.4);
}
.we-btn-rise:hover .we-btn-rise-fill {
height: 100%;
}
.we-btn-rise:hover .we-btn-rise-text {
color: #08110b;
transform:
translateX(-3px);
}
.we-btn-rise:hover .we-btn-rise-arrow {
color: #08110b;
transform:
translateX(8px)
scale(1.12);
}
.we-btn-rise:active {
transform:
translateY(-1px)
scale(.97);
}
Ehhez az animációhoz nincs külön JavaScript.