Gombok és CTA
Elegáns CTA
Élő előnézet – a komponens teljes méretben.
Élő előnézet
HTML · CSS · JS
<div class="cta-container">
<a href="https://webelements.hu/" class="cta-button">
<span>Fedezd fel a lehetőségeket</span>
<span class="cta-arrow" aria-hidden="true">↗</span>
</a>
</div>
.cta-container {
display: flex;
justify-content: center;
align-items: center;
padding: 40px 20px;
}
.cta-button {
position: relative;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 22px;
padding: 17px 26px;
border: 1px solid rgba(99, 235, 190, 0.45);
border-radius: 12px;
background: linear-gradient(
135deg,
#183e36,
#102a26
);
color: #f1fff9;
font-family: Inter, Arial, sans-serif;
font-size: 15px;
font-weight: 600;
letter-spacing: 0.2px;
text-decoration: none;
box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
transition:
transform 0.3s ease,
border-color 0.3s ease,
box-shadow 0.3s ease,
background 0.3s ease;
overflow: hidden;
}
.cta-button::before {
content: "";
position: absolute;
top: 0;
left: -120%;
width: 70%;
height: 100%;
background: linear-gradient(
110deg,
transparent,
rgba(255, 255, 255, 0.13),
transparent
);
transform: skewX(-20deg);
transition: left 0.6s ease;
}
.cta-button:hover {
transform: translateY(-3px);
border-color: #72f0c2;
background: linear-gradient(
135deg,
#20594a,
#123a31
);
box-shadow: 0 14px 36px rgba(37, 190, 139, 0.2);
}
.cta-button:hover::before {
left: 150%;
}
.cta-arrow {
display: inline-flex;
align-items: center;
justify-content: center;
width: 30px;
height: 30px;
border: 1px solid rgba(150, 255, 215, 0.35);
border-radius: 8px;
color: #9affd6;
font-size: 19px;
line-height: 1;
transition:
transform 0.3s ease,
background 0.3s ease;
}
.cta-button:hover .cta-arrow {
transform: translate(3px, -3px);
background: rgba(114, 240, 194, 0.12);
}
.cta-button:focus-visible {
outline: 2px solid #9affd6;
outline-offset: 5px;
}
@media (prefers-reduced-motion: reduce) {
.cta-button,
.cta-button::before,
.cta-arrow {
transition: none;
}
}
Ehhez az elemhez nincs külön JavaScript.