אפקט Hover טוב על כפתור הוא לא רק תוספת קוסמטית – הוא מסמן למשתמש שמדובר באלמנט אינטראקטיבי שמגיב לפעולה. כפתור סטטי בלי פידבק ויזואלי מרגיש שטוח וחסר חיים.
בפוסט זה אציג 43 אפקטי Hover יצירתיים על כפתורים. החל מ-10 אפקטים שימושיים ומלוטשים שיכולים להתאים כמעט לכל פרויקט, ועד 33 אפקטים נועזים וניסיוניים שמשתמשים ב-@property, clip-path, אנימציות גרדיאנט, backdrop-filter וטכניקות CSS מודרניות נוספות.
שימו לב: האפקטים נראים הכי טוב במחשב עם עכבר. משתמשי מקלדת יכולים להגיע לכל דוגמה בעזרת מקש Tab, והקוד של כל אפקט עובד גם עם פוקוס מהמקלדת.
כפתורים שימושיים עם סטייל
10 אפקטים שנראים מלוטשים ומקצועיים ומתאימים לשימוש בממשקים אמיתיים.
1. Glass Shift
כפתור זכוכית חלבית עם backdrop-filter שמתרומם בריחוף.
.btn {
background: rgba(255, 255, 255, 0.08);
backdrop-filter: blur(12px);
border: 1px solid rgba(255, 255, 255, 0.15);
border-radius: 10px;
color: #e0e6ed;
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn:is(:hover, :focus-visible) {
background: rgba(255, 255, 255, 0.16);
border-color: rgba(255, 255, 255, 0.35);
transform: translateY(-3px);
box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}
<button class="btn">Hover Me</button>
2. Ember Press
כפתור תלת-ממדי שנלחץ פנימה עם הילת זוהר חמימה.
.btn {
background: #c0560a;
border-radius: 6px;
color: #fff;
font-weight: 600;
box-shadow: 0 6px 0 #8b3d06, 0 8px 20px rgba(192, 86, 10, 0.3);
transition: all 0.15s ease;
}
.btn:is(:hover, :focus-visible) {
transform: translateY(6px);
box-shadow: 0 0 0 #8b3d06, 0 2px 8px rgba(192, 86, 10, 0.4),
0 0 30px rgba(255, 140, 50, 0.25);
}
<button class="btn">Hover Me</button>
3. Ink Spread
עיגול כהה שמתפשט מהמרכז וממלא את הכפתור.
.btn {
border: 2px solid #2c2c2c;
border-radius: 4px;
color: #2c2c2c;
font-weight: 600;
position: relative;
z-index: 1;
overflow: hidden;
}
.btn::before {
content: '';
position: absolute;
top: 50%;
left: 50%;
width: 0;
height: 0;
border-radius: 50%;
background: #2c2c2c;
transform: translate(-50%, -50%);
transition: width 0.5s ease, height 0.5s ease;
z-index: -1;
}
.btn:is(:hover, :focus-visible)::before {
width: 340px;
height: 340px;
}
.btn:is(:hover, :focus-visible) {
color: #faf3e8;
}
<button class="btn">Hover Me</button>
4. Velvet Sweep
מילוי משמאל לימין עם גרדיאנט סגול עשיר.
.btn {
border: 1px solid #9b4dca;
border-radius: 4px;
color: #c084fc;
position: relative;
z-index: 1;
overflow: hidden;
}
.btn::before {
content: '';
position: absolute;
inset: 0;
background: linear-gradient(90deg, #7c3aed, #a855f7);
transform: scaleX(0);
transform-origin: left;
transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
z-index: -1;
}
.btn:is(:hover, :focus-visible)::before {
transform: scaleX(1);
}
.btn:is(:hover, :focus-visible) {
color: #fff;
}
<button class="btn">Hover Me</button>
5. Wire Frame
סוגריים בפינות שגדלים לגבול מלא בריחוף.
.btn {
color: #a0a0a0;
position: relative;
}
.btn::before, .btn::after {
content: '';
position: absolute;
width: 14px;
height: 14px;
border: 2px solid #666;
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn::before {
top: 4px; left: 4px;
border-right: none; border-bottom: none;
}
.btn::after {
bottom: 4px; right: 4px;
border-left: none; border-top: none;
}
.btn:is(:hover, :focus-visible)::before, .btn:is(:hover, :focus-visible)::after {
width: calc(100% - 8px);
height: calc(100% - 8px);
border-color: #00ff88;
}
.btn:is(:hover, :focus-visible) {
color: #00ff88;
}
<button class="btn">Hover Me</button>
6. Pulse Ring
טבעת קו מתאר שפועמת החוצה מהכפתור.
.btn {
border: 2px solid #64ffda;
border-radius: 50px;
color: #64ffda;
background: transparent;
}
.btn:is(:hover, :focus-visible) {
animation: pulse 1s ease-out;
box-shadow: 0 0 20px rgba(100, 255, 218, 0.15);
}
@keyframes pulse {
0% { box-shadow: 0 0 0 0 rgba(100, 255, 218, 0.5); }
100% { box-shadow: 0 0 0 16px rgba(100, 255, 218, 0); }
}
<button class="btn">Hover Me</button>
7. Silk Slide
הטקסט מחליק למעלה וטקסט חדש נכנס מלמטה.
.btn {
background: #e63946;
border-radius: 4px;
color: #fff;
overflow: hidden;
position: relative;
}
.btn span {
display: inline-block;
transition: transform 0.35s ease, opacity 0.35s ease;
}
.btn::after {
content: attr(data-hover);
position: absolute;
left: 50%; top: 50%;
transform: translate(-50%, 80%);
opacity: 0;
transition: transform 0.35s ease, opacity 0.35s ease;
}
.btn:is(:hover, :focus-visible) span {
transform: translateY(-130%);
opacity: 0;
}
.btn:is(:hover, :focus-visible)::after {
transform: translate(-50%, -50%);
opacity: 1;
}
<button class="btn" data-hover="Click!"><span>Hover Me</span></button>
8. Horizon Line
קווים עליון ותחתון שגדלים מהמרכז החוצה.
.btn {
color: #8ec5fc;
padding: 16px 36px;
position: relative;
}
.btn::before, .btn::after {
content: '';
position: absolute;
left: 50%;
transform: translateX(-50%);
height: 2px;
width: 0;
background: #8ec5fc;
transition: width 0.4s ease;
}
.btn::before { top: 0; }
.btn::after { bottom: 0; }
.btn:is(:hover, :focus-visible)::before, .btn:is(:hover, :focus-visible)::after {
width: 100%;
}
.btn:is(:hover, :focus-visible) {
color: #fff;
}
<button class="btn">Hover Me</button>
9. Matte Flip
היפוך צבעים – הרקע והטקסט מחליפים מקומות.
.btn {
background: #2c2c2c;
border-radius: 6px;
color: #e8e0d4;
font-weight: 600;
border: 2px solid #2c2c2c;
transition: all 0.3s ease;
}
.btn:is(:hover, :focus-visible) {
background: #e8e0d4;
color: #2c2c2c;
}
<button class="btn">Hover Me</button>
10. Shadow Stack
צל רטרו שנמעך לשטוח בלחיצה – אפקט כפתור מישוש.
.btn {
background: #fff;
border: 2px solid #333;
color: #333;
font-weight: 600;
box-shadow: 5px 5px 0 #333;
transition: all 0.15s ease;
}
.btn:is(:hover, :focus-visible) {
box-shadow: 0 0 0 #333;
transform: translate(5px, 5px);
}
<button class="btn">Hover Me</button>
אפקטים יצירתיים, נועזים וניסיוניים
כאן מתחיל החלק המעניין. 20 אפקטים שדוחפים את הגבולות עם גרדיאנטים מונפשים, clip-path, @property, ניאון, גליץ' ועוד.
11. Aurora Border
גבול מונפש עם conic-gradient מסתובב דרך @property.
@property --angle {
syntax: '<angle>';
initial-value: 0deg;
inherits: false;
}
.btn {
color: #e0e0e0;
border-radius: 8px;
background: #141428;
position: relative;
z-index: 1;
--angle: 0deg;
}
.btn::before {
content: '';
position: absolute;
inset: -2px;
border-radius: 10px;
background: conic-gradient(
from var(--angle),
#ff006e, #fb5607, #ffbe0b, #8338ec, #3a86ff, #ff006e
);
z-index: -2;
opacity: 0;
transition: opacity 0.3s;
}
.btn::after {
content: '';
position: absolute;
inset: 2px;
border-radius: 6px;
background: #141428;
z-index: -1;
}
.btn:is(:hover, :focus-visible)::before {
opacity: 1;
animation: spin 2s linear infinite;
}
@keyframes spin {
to { --angle: 360deg; }
}
<button class="btn">Hover Me</button>
12. Neon Surge
ניאון ציאן עוצמתי עם שכבות זוהר ו-text-shadow מתגבר.
.btn {
border: 1px solid #0ff;
color: #0ff;
border-radius: 4px;
text-shadow: 0 0 6px rgba(0, 255, 255, 0.4);
transition: all 0.3s ease;
}
.btn:is(:hover, :focus-visible) {
box-shadow:
0 0 10px rgba(0, 255, 255, 0.6),
0 0 40px rgba(0, 255, 255, 0.3),
0 0 80px rgba(0, 255, 255, 0.1),
inset 0 0 20px rgba(0, 255, 255, 0.08);
text-shadow:
0 0 8px #0ff,
0 0 20px rgba(0, 255, 255, 0.5);
color: #fff;
}
<button class="btn">Hover Me</button>
13. Cyberpunk Clip
חיתוך זוויתי עם clip-path שמתמלא בזוהר בריחוף.
.btn {
border: 1px solid #ff2a6d;
color: #ff2a6d;
clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
text-transform: uppercase;
letter-spacing: 2px;
position: relative;
z-index: 1;
overflow: hidden;
}
.btn::before {
content: '';
position: absolute;
inset: 0;
background: #ff2a6d;
clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
opacity: 0;
transition: opacity 0.3s;
z-index: -1;
}
.btn:is(:hover, :focus-visible)::before {
opacity: 1;
}
.btn:is(:hover, :focus-visible) {
color: #fff;
box-shadow: 0 0 30px rgba(255, 42, 109, 0.3);
}
<button class="btn">Hover Me</button>
14. Glitch Tremor
אפקט גליץ' עם פיצול RGB ורעידות מבוקרות.
.btn {
background: #1a1a2e;
border: 1px solid #e94560;
color: #e94560;
font-family: 'Courier New', monospace;
}
.btn:is(:hover, :focus-visible) {
animation: glitch 0.3s steps(2) infinite;
}
@keyframes glitch {
0% { transform: translate(0); text-shadow: none; }
20% { transform: translate(-3px, 2px);
text-shadow: 3px 0 #00f0ff, -3px 0 #e94560; }
40% { transform: translate(3px, -2px);
text-shadow: -2px 0 #e94560, 2px 0 #00f0ff; }
60% { transform: translate(-1px, -1px); }
80% { transform: translate(2px, 1px);
text-shadow: -3px 0 #e94560, 3px 0 #00f0ff; }
100% { transform: translate(0); text-shadow: none; }
}
<button class="btn">Hover Me</button>
15. Liquid Morph
הכפתור מתעוות לצורה אורגנית עם border-radius מורפי.
.btn {
background: linear-gradient(135deg, #667eea, #764ba2);
border-radius: 12px;
color: #fff;
transition: border-radius 0.6s cubic-bezier(0.4, 0, 0.2, 1),
transform 0.4s ease,
box-shadow 0.4s ease;
}
.btn:is(:hover, :focus-visible) {
border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
transform: scale(1.05) rotate(-2deg);
box-shadow: 0 10px 40px rgba(118, 75, 162, 0.4);
}
<button class="btn">Hover Me</button>
16. Prismatic Shift
גרדיאנט שמשנה גוון ברציפות דרך @property.
@property --hue {
syntax: '<number>';
initial-value: 0;
inherits: false;
}
.btn {
--hue: 0;
background: oklch(0.5 0.18 calc(var(--hue) + 300));
border-radius: 6px;
color: #fff;
font-weight: 600;
}
.btn:is(:hover, :focus-visible) {
animation: prismatic 2.5s linear infinite;
transform: scale(1.04);
}
@keyframes prismatic {
to { --hue: 360; }
}
<button class="btn">Hover Me</button>
17. Magnetic Field
הכפתור עוקב אחרי סמן העכבר עם זוהר רדיאלי שעוקב אחר תנועת המאוס (דורש JS).
.btn {
background: #21262d;
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 8px;
color: #c9d1d9;
transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94),
box-shadow 0.3s ease;
}
.btn:is(:hover, :focus-visible) {
border-color: rgba(136, 198, 255, 0.3);
box-shadow: 0 0 20px rgba(136, 198, 255, 0.08);
background: radial-gradient(
circle at var(--mx, 50%) var(--my, 50%),
rgba(136, 198, 255, 0.12) 0%,
transparent 60%
) #21262d;
}
btn.addEventListener('mousemove', function (e) {
var r = btn.getBoundingClientRect();
btn.style.setProperty('--mx', ((e.clientX - r.left) / r.width * 100) + '%');
btn.style.setProperty('--my', ((e.clientY - r.top) / r.height * 100) + '%');
});
<button class="btn">Hover Me</button>
18. Terminal Scan
קו סריקה ירוק שעובר על הכפתור – אסתטיקת טרמינל.
.btn {
background: rgba(0, 255, 65, 0.05);
border: 1px solid rgba(0, 255, 65, 0.3);
color: #00ff41;
font-family: 'Courier New', monospace;
text-transform: uppercase;
position: relative;
z-index: 1;
}
.btn::after {
content: '';
position: absolute;
top: -100%;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(
transparent 30%,
rgba(0, 255, 65, 0.2) 50%,
transparent 70%
);
z-index: -1;
}
.btn:is(:hover, :focus-visible)::after {
animation: scan 1.2s ease-in-out infinite;
}
.btn:is(:hover, :focus-visible) {
text-shadow: 0 0 8px rgba(0, 255, 65, 0.6);
}
@keyframes scan {
0% { top: -100%; }
100% { top: 200%; }
}
<button class="btn">EXECUTE</button>
19. Holographic Foil
גרדיאנט אירידסנטי שמחליף גוונים ברציפות.
.btn {
background: linear-gradient(
135deg,
hsl(300, 80%, 60%),
hsl(200, 80%, 60%),
hsl(60, 80%, 60%),
hsl(120, 80%, 60%),
hsl(300, 80%, 60%)
);
background-size: 400% 400%;
border-radius: 8px;
color: #1a1a2e;
font-weight: 600;
text-shadow: 0 1px 2px rgba(255, 255, 255, 0.35);
}
.btn:is(:hover, :focus-visible) {
animation: holo 3s ease infinite;
transform: scale(1.03);
}
@keyframes holo {
0%, 100% { background-position: 0% 50%; }
50% { background-position: 100% 50%; }
}
<button class="btn">Hover Me</button>
20. Diamond Shatter
צורת יהלום שמתפרקת למלבן עם clip-path.
.btn {
background: linear-gradient(135deg, #f72585, #b5179e);
color: #fff;
clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
width: 130px;
height: 130px;
transition: clip-path 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn:is(:hover, :focus-visible) {
clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
box-shadow: 0 8px 30px rgba(247, 37, 133, 0.3);
}
<button class="btn">Hover Me</button>
21. Conic Spotlight
ספוטלייט מסתובב דרך conic-gradient ו-@property.
@property --angle {
syntax: '<angle>';
initial-value: 0deg;
inherits: false;
}
.btn {
--angle: 0deg;
background: conic-gradient(
from var(--angle),
transparent 0%,
rgba(255, 200, 50, 0.2) 10%,
transparent 20%
), #1a1a2a;
border: 1px solid rgba(255, 200, 50, 0.2);
border-radius: 6px;
color: #ffc832;
}
.btn:is(:hover, :focus-visible) {
animation: spotlight 2s linear infinite;
}
@keyframes spotlight {
to { --angle: 360deg; }
}
<button class="btn">Hover Me</button>
22. Stitch Craft
אפקט תפירה מונפש עם outline מקווקו שמתהדק.
.btn {
background: #c1440e;
color: #ffeedd;
border-radius: 6px;
outline: 2px dashed transparent;
outline-offset: -7px;
transition: outline-color 0.3s, outline-offset 0.3s;
}
.btn:is(:hover, :focus-visible) {
outline-color: rgba(255, 238, 221, 0.7);
outline-offset: -5px;
}
<button class="btn">Hover Me</button>
23. Smoke Trail
שכבות צללים שנפרסות כלפי מטה כמו עקבות עשן.
.btn {
background: #fff;
color: #141414;
font-weight: 700;
border-radius: 4px;
transition: all 0.2s ease;
}
.btn:is(:hover, :focus-visible) {
box-shadow:
0 2px 0 rgba(255, 255, 255, 0.7),
0 5px 0 rgba(255, 255, 255, 0.5),
0 9px 0 rgba(255, 255, 255, 0.3),
0 14px 0 rgba(255, 255, 255, 0.15),
0 20px 0 rgba(255, 255, 255, 0.06);
transform: translateY(-4px);
}
<button class="btn">Hover Me</button>
24. Venetian Reveal
דפוס פסים אופקיים שמופיע בריחוף כמו תריס ונציאני.
.btn {
border: 1px solid rgba(255, 255, 255, 0.15);
color: #ccd6e0;
position: relative;
z-index: 1;
}
.btn::before {
content: '';
position: absolute;
inset: 0;
background: repeating-linear-gradient(
to bottom,
#4a90d9 0px, #4a90d9 3px,
transparent 3px, transparent 8px
);
opacity: 0;
transition: opacity 0.4s ease;
z-index: -1;
}
.btn:is(:hover, :focus-visible)::before {
opacity: 1;
}
.btn:is(:hover, :focus-visible) {
border-color: #4a90d9;
color: #fff;
}
<button class="btn">Hover Me</button>
25. Brutalist Shake
רעידה אגרסיבית עם גבולות עבים – אסתטיקה ברוטליסטית.
.btn {
background: #000;
border: 3px solid #000;
color: #f0e68c;
font-weight: 900;
text-transform: uppercase;
letter-spacing: 2px;
}
.btn:is(:hover, :focus-visible) {
animation: shake 0.4s steps(4) infinite;
background: #f0e68c;
color: #000;
}
@keyframes shake {
0% { transform: translate(0); }
25% { transform: translate(-4px, 3px) rotate(-1deg); }
50% { transform: translate(4px, -2px) rotate(1deg); }
75% { transform: translate(-2px, -3px); }
100% { transform: translate(0); }
}
<button class="btn">Hover Me</button>
26. Warp Drive
אשליית זום פנימה עם סיבוב פרספקטיבה.
.btn {
background: linear-gradient(135deg, #3a0ca3, #4361ee);
border-radius: 6px;
color: #fff;
transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
box-shadow 0.5s ease;
}
.btn:is(:hover, :focus-visible) {
transform: perspective(600px) rotateY(-10deg) scale(1.08);
box-shadow: 12px 6px 30px rgba(67, 97, 238, 0.35);
}
<button class="btn">Hover Me</button>
27. Paper Fold
פינה שנקפלת לאחור וחושפת צבע כהה יותר.
.btn {
background: #4a7c59;
color: #e8f5e9;
clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
transition: clip-path 0.4s ease;
}
.btn:is(:hover, :focus-visible) {
clip-path: polygon(
0 0, 100% 0,
100% calc(100% - 16px),
calc(100% - 16px) 100%,
0 100%
);
}
<button class="btn">Hover Me</button>
28. Chromatic Ring
גבול כפול עם הסטה כרומטית באדום וכחול.
.btn {
color: #e0e0e0;
border-radius: 6px;
box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.2);
transition: all 0.3s ease;
}
.btn:is(:hover, :focus-visible) {
box-shadow:
inset 0 0 0 2px rgba(255, 255, 255, 0.6),
3px 3px 0 0 rgba(255, 50, 50, 0.5),
-3px -3px 0 0 rgba(50, 100, 255, 0.5);
color: #fff;
}
<button class="btn">Hover Me</button>
29. Particle Burst
חלקיקים שמתפזרים החוצה מהכפתור דרך pseudo-elements.
.btn {
background: rgba(168, 85, 247, 0.15);
border: 1px solid rgba(168, 85, 247, 0.4);
border-radius: 6px;
color: #c084fc;
position: relative;
z-index: 1;
}
.btn::before, .btn::after {
content: '';
position: absolute;
width: 8px;
height: 8px;
border-radius: 50%;
background: #a855f7;
opacity: 0;
z-index: -1;
}
.btn::before { top: 50%; left: 25%; }
.btn::after { top: 40%; right: 25%; }
.btn:is(:hover, :focus-visible)::before {
animation: p1 0.6s ease-out forwards;
}
.btn:is(:hover, :focus-visible)::after {
animation: p2 0.6s ease-out 0.05s forwards;
}
@keyframes p1 {
0% { transform: translate(0, 0) scale(1); opacity: 1; }
100% { transform: translate(-28px, -35px) scale(0); opacity: 0; }
}
@keyframes p2 {
0% { transform: translate(0, 0) scale(1); opacity: 1; }
100% { transform: translate(28px, -30px) scale(0); opacity: 0; }
}
<button class="btn">Hover Me</button>
30. Supernova
התפוצצות רדיאלית עם @property שמדמה סופרנובה.
@property --scale {
syntax: '<number>';
initial-value: 0;
inherits: false;
}
.btn {
--scale: 0;
background: radial-gradient(
circle at center,
rgba(255, 100, 50, calc(var(--scale) * 0.4)) 0%,
rgba(255, 50, 80, calc(var(--scale) * 0.2)) 40%,
transparent 70%
), #1a1020;
border: 1px solid rgba(255, 100, 50, 0.3);
border-radius: 50px;
color: #ffb088;
transition: --scale 0.5s ease,
box-shadow 0.5s ease;
}
.btn:is(:hover, :focus-visible) {
--scale: 1;
box-shadow:
0 0 20px rgba(255, 100, 50, 0.3),
0 0 60px rgba(255, 50, 80, 0.15);
color: #fff;
}
<button class="btn">Hover Me</button>
31. Lava Lamp
כתם אורגני המשנה את צורתו ללא הפסקה, גרדיאנט חם המתגלה באמצעות border-radius משתנה.
.btn {
background: #6b21a8;
border-radius: 50px;
color: #e9d5ff;
font-weight: 600;
position: relative;
z-index: 1;
}
.btn::before {
content: '';
position: absolute;
inset: 0;
border-radius: 50px;
background: linear-gradient(135deg, #f97316, #ec4899, #8b5cf6);
opacity: 0;
transition: opacity 0.4s;
z-index: -1;
animation: lava 4s ease-in-out infinite;
}
.btn:is(:hover, :focus-visible)::before {
opacity: 1;
}
@keyframes lava {
0% { border-radius: 50px; }
25% { border-radius: 40% 60% 60% 40% / 60% 40% 60% 40%; }
50% { border-radius: 60% 40% 40% 60% / 40% 60% 40% 60%; }
75% { border-radius: 40% 60% 50% 50% / 50% 50% 60% 40%; }
100% { border-radius: 50px; }
}
<button class="btn">Hover Me</button>
32. Frost Bite
אפקט קרח – ה-border מלבין, ה-letter-spacing מתרחב והכפתור "קופא".
.btn {
background: rgba(147, 197, 253, 0.08);
border: 2px solid rgba(147, 197, 253, 0.3);
border-radius: 8px;
color: #93c5fd;
transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn:is(:hover, :focus-visible) {
background: rgba(147, 197, 253, 0.15);
border-color: #fff;
color: #fff;
box-shadow:
0 0 15px rgba(147, 197, 253, 0.4),
0 0 40px rgba(147, 197, 253, 0.2),
inset 0 0 15px rgba(200, 220, 255, 0.1);
text-shadow: 0 0 8px rgba(200, 230, 255, 0.6);
letter-spacing: 2px;
}
<button class="btn">Hover Me</button>
33. Circuit Board
קווים הנעים לאורך הכפתור כמו על לוח מעגלים, באסתטיקה טכנולוגית.
.btn {
background: rgba(34, 197, 94, 0.06);
border: 1px solid rgba(34, 197, 94, 0.25);
color: #4ade80;
font-family: 'Courier New', monospace;
text-transform: uppercase;
position: relative;
}
.btn::before, .btn::after {
content: '';
position: absolute;
background: #22c55e;
height: 2px;
width: 0;
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn::before { top: 0; left: 0; }
.btn::after { bottom: 0; right: 0; }
.btn:is(:hover, :focus-visible)::before, .btn:is(:hover, :focus-visible)::after {
width: 100%;
box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
}
.btn:is(:hover, :focus-visible) {
border-color: #22c55e;
color: #fff;
}
<button class="btn">Hover Me</button>
34. Solar Eclipse
עיגול כהה שמתכווץ וחושף מתחתיו גרדיאנט בוהק, בדיוק כמו ליקוי חמה.
.btn {
background: linear-gradient(135deg, #f59e0b, #ef4444);
border-radius: 50px;
color: #fff;
position: relative;
overflow: hidden;
z-index: 1;
}
.btn::after {
content: '';
position: absolute;
inset: 0;
border-radius: 50px;
background: #0a0610;
transform: scale(1);
transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
z-index: -1;
}
.btn:is(:hover, :focus-visible)::after {
transform: scale(0);
}
.btn:is(:hover, :focus-visible) {
box-shadow:
0 0 30px rgba(245, 158, 11, 0.5),
0 0 60px rgba(239, 68, 68, 0.3);
}
<button class="btn">Hover Me</button>
35. Typewriter Strike
ה-letter-spacing מתכווץ כמו הקשה של מכונת כתיבה, יחד עם היפוך צבעים חד.
.btn {
background: #1a1a1a;
color: #f7f3ee;
border: 2px solid #1a1a1a;
font-family: 'Courier New', monospace;
font-weight: 700;
letter-spacing: 6px;
text-transform: uppercase;
transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn:is(:hover, :focus-visible) {
letter-spacing: 1px;
background: #f7f3ee;
color: #1a1a1a;
transform: scale(0.97);
box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15);
}
<button class="btn">Hover Me</button>
36. Gravity Well
הכפתור נמשך כלפי מטה כאילו כוח הכבידה פועל עליו, וצל מתרחב מתחתיו.
.btn {
background: linear-gradient(180deg, #818cf8, #6366f1);
border-radius: 10px;
color: #fff;
font-weight: 600;
box-shadow: 0 4px 0 #4338ca, 0 6px 16px rgba(99, 102, 241, 0.25);
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn:is(:hover, :focus-visible) {
transform: translateY(4px) scale(0.98);
box-shadow: 0 0 0 #4338ca, 0 2px 40px rgba(99, 102, 241, 0.5);
border-radius: 14px;
background: linear-gradient(180deg, #6366f1, #4f46e5);
}
<button class="btn">Hover Me</button>
37. Neon Sign Flicker
שלט ניאון כבוי שמהבהב ונדלק ב-hover, עם הבהוב שנראה אמיתי לגמרי.
.btn {
background: transparent;
border: 2px solid rgba(251, 146, 60, 0.3);
border-radius: 4px;
color: rgba(251, 146, 60, 0.5);
font-weight: 700;
text-transform: uppercase;
letter-spacing: 3px;
}
.btn:is(:hover, :focus-visible) {
animation: flicker 0.15s ease-in-out 2,
glow 0.3s ease 0.3s forwards;
}
@keyframes flicker {
0%, 100% { color: rgba(251, 146, 60, 0.5); text-shadow: none; }
50% { color: #fb923c;
text-shadow: 0 0 10px #fb923c, 0 0 30px rgba(251, 146, 60, 0.5); }
}
@keyframes glow {
to { color: #fff; border-color: #fb923c;
text-shadow: 0 0 10px #fb923c, 0 0 40px rgba(251, 146, 60, 0.6);
box-shadow: 0 0 15px rgba(251, 146, 60, 0.4); }
}
<button class="btn">Hover Me</button>
38. X-Ray Scan
פס סריקה שעובר לרוחב הכפתור והופך את הצבעים – כמו צילום רנטגן.
.btn {
background: #1a1a2e;
border: 2px solid #1a1a2e;
border-radius: 6px;
color: #f0f0f0;
font-weight: 600;
overflow: hidden;
position: relative;
z-index: 1;
transition: all 0.4s ease;
}
.btn::before {
content: '';
position: absolute;
top: 0; left: -100%;
width: 100%; height: 100%;
background: linear-gradient(90deg,
transparent 30%, rgba(255, 255, 255, 0.9) 48%,
rgba(255, 255, 255, 0.9) 52%, transparent 70%);
z-index: 1;
}
.btn:is(:hover, :focus-visible)::before {
animation: xray 0.8s ease-in-out forwards;
}
.btn:is(:hover, :focus-visible) {
background: #f0f0f0;
color: #1a1a2e;
}
@keyframes xray {
0% { left: -100%; }
100% { left: 100%; }
}
<button class="btn">Hover Me</button>
39. Molten Edge
הקצה התחתון של הכפתור זוהר כמו מתכת מותכת, עם הילה לוהטת.
.btn {
background: #2a1a14;
border: 2px solid rgba(234, 88, 12, 0.2);
border-radius: 6px;
color: #fdba74;
transition: all 0.5s ease;
}
.btn:is(:hover, :focus-visible) {
border-color: #ea580c;
color: #fff;
box-shadow:
0 4px 0 #ea580c,
0 6px 20px rgba(234, 88, 12, 0.4),
0 12px 40px rgba(234, 88, 12, 0.2),
inset 0 -8px 16px rgba(234, 88, 12, 0.15);
background: linear-gradient(180deg, #2a1a14, #3d1e10);
text-shadow: 0 0 8px rgba(234, 88, 12, 0.5);
}
<button class="btn">Hover Me</button>
40. Dimension Rift
סדק זוהר שנפתח במרכז הכפתור, כמו קרע בין ממדים.
.btn {
background: linear-gradient(135deg, #312e81, #4338ca);
border-radius: 8px;
color: #c7d2fe;
font-weight: 600;
overflow: hidden;
position: relative;
z-index: 1;
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn::before {
content: '';
position: absolute;
left: 50%; top: 0;
width: 0; height: 100%;
background: linear-gradient(90deg,
transparent, rgba(167, 139, 250, 0.3) 30%,
rgba(255, 255, 255, 0.8) 50%,
rgba(167, 139, 250, 0.3) 70%, transparent);
transform: translateX(-50%);
transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
z-index: -1;
}
.btn:is(:hover, :focus-visible)::before {
width: 120%;
}
.btn:is(:hover, :focus-visible) {
color: #fff;
box-shadow: 0 0 30px rgba(99, 102, 241, 0.4),
0 0 60px rgba(139, 92, 246, 0.2);
transform: scale(1.05);
letter-spacing: 2px;
}
<button class="btn">Hover Me</button>
41. Spark Shower
מטר ניצוצות היורד על הכפתור כמו ממתכת לוהטת, עם זוהר כתום העולה מלמטה.
.btn {
background:
repeating-linear-gradient(
90deg,
transparent 0px, transparent 3px,
rgba(251, 191, 36, 0.06) 3px,
rgba(251, 191, 36, 0.06) 4px
),
linear-gradient(180deg, #3a3028, #2a2018);
background-size: 4px 100%, 100% 100%;
border: 1px solid rgba(251, 146, 60, 0.3);
border-radius: 6px;
color: #fdba74;
overflow: hidden;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3),
inset 0 -6px 16px rgba(251, 146, 60, 0.05);
}
.btn:is(:hover, :focus-visible) {
background:
repeating-linear-gradient(
90deg,
transparent 0px, transparent 3px,
rgba(251, 191, 36, 0.15) 3px,
rgba(251, 191, 36, 0.15) 4px
),
linear-gradient(180deg, #4a3828, #3a2818);
background-size: 4px 100%, 100% 100%;
border-color: #fb923c;
color: #fff;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3),
inset 0 -10px 24px rgba(251, 146, 60, 0.2),
0 6px 30px rgba(251, 146, 60, 0.25);
animation: sparks 0.8s steps(3) infinite;
}
@keyframes sparks {
0% { background-position: 0 0, 0 0; }
33% { background-position: 2px -4px, 0 0; }
66% { background-position: -1px -8px, 0 0; }
100% { background-position: 1px -12px, 0 0; }
}
<button class="btn">Hover Me</button>
42. Confetti Pop
מסיבת צבעים – הרקע מתפוצץ בגרדיאנט פרוע שקופץ בין ורוד, צהוב, טורקיז וסגול.
.btn {
background: #fff;
border: 2px solid #e5e5e5;
border-radius: 10px;
color: #333;
font-weight: 600;
transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn:is(:hover, :focus-visible) {
background: linear-gradient(135deg, #ec4899, #fbbf24, #14b8a6, #8b5cf6);
background-size: 400% 400%;
animation: confetti 2s ease infinite;
border-color: #ec4899;
color: #fff;
font-weight: 700;
transform: scale(1.06);
box-shadow: 0 8px 30px rgba(236, 72, 153, 0.3);
}
@keyframes confetti {
0% { background-position: 0% 50%; border-color: #ec4899; }
25% { background-position: 50% 0%; border-color: #fbbf24; }
50% { background-position: 100% 50%; border-color: #14b8a6; }
75% { background-position: 50% 100%; border-color: #8b5cf6; }
100% { background-position: 0% 50%; border-color: #ec4899; }
}
<button class="btn">Hover Me</button>
43. Nebula Dust
הילה פועמת של ערפילית העוטפת את הכפתור בשכבות של זוהר סגול, כחול וורוד.
.btn {
background: rgba(139, 92, 246, 0.08);
border: 1px solid rgba(139, 92, 246, 0.3);
border-radius: 10px;
color: #c4b5fd;
transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
backdrop-filter: blur(4px);
}
.btn:is(:hover, :focus-visible) {
background: rgba(139, 92, 246, 0.12);
border-color: rgba(167, 139, 250, 0.5);
color: #fff;
animation: nebula 2.5s ease-in-out infinite;
}
@keyframes nebula {
0%, 100% {
box-shadow:
0 0 12px rgba(139, 92, 246, 0.5),
0 0 30px rgba(59, 130, 246, 0.3),
0 0 60px rgba(236, 72, 153, 0.15);
}
33% {
box-shadow:
0 0 18px rgba(139, 92, 246, 0.7),
0 0 40px rgba(59, 130, 246, 0.4),
0 0 80px rgba(236, 72, 153, 0.25);
}
66% {
box-shadow:
0 0 14px rgba(139, 92, 246, 0.55),
0 0 35px rgba(59, 130, 246, 0.35),
0 0 70px rgba(236, 72, 153, 0.2);
}
}
<button class="btn">Hover Me</button>
בונוס: אפקטים עם corner-shape ב-CSS
ארבעת האפקטים הבאים משתמשים בתכונה החדשה corner-shape בכדי ליצור צורות שאי אפשר להשיג עם border-radius בלבד.
מכיוון ש-corner-shape נתמכת כרגע רק בדפדפני Chromium (Chrome 139 ומעלה, Edge 139 ומעלה), תוצג הודעה אם הדפדפן שלכם עדיין אינו תומך בה.
44. Squircle Reactor
ליבת כור רדומה. ב-hover הכפתור מתנפח לצורת squircle, ו-border של conic-gradient מסתובב ונדלק סביבו.
צורת ה-squircle גורמת לטבעת הצבעונית להיראות אורגנית הרבה יותר ממלבן רגיל עם פינות מעוגלות.
.btn {
background: #0a0a1a;
color: #e0d4ff;
border-radius: 18px;
corner-shape: round;
z-index: 1;
}
/* Spinning conic-gradient border */
.btn::before {
content: '';
position: absolute;
inset: -3px;
border-radius: 21px;
corner-shape: round;
background: conic-gradient(
from var(--angle),
#7c3aed, #ec4899, #f59e0b, #10b981, #3b82f6, #7c3aed
);
z-index: -2;
opacity: 0;
transition: corner-shape 0.6s, opacity 0.4s;
}
/* Inner fill to mask the gradient border */
.btn::after {
content: '';
position: absolute;
inset: 0;
border-radius: 18px;
corner-shape: round;
background: #0a0a1a;
z-index: -1;
transition: corner-shape 0.6s;
}
.btn:is(:hover, :focus-visible) {
corner-shape: squircle;
border-radius: 26px;
transform: scale(1.04);
}
.btn:is(:hover, :focus-visible)::before {
corner-shape: squircle;
border-radius: 29px;
opacity: 1;
animation: spin 1.8s linear infinite;
}
.btn:is(:hover, :focus-visible)::after {
corner-shape: squircle;
border-radius: 26px;
}
<button class="btn">Hover Me</button>
45. Notch Lock
אפקט נעילה בסגנון HUD. הפינות נחתכות פנימה בחריצי notch חדים של 90 מעלות, כמו מערכת כוונון שננעלת על מטרה.
.btn {
background: rgba(0, 255, 136, 0.06);
border: 1px solid rgba(0, 255, 136, 0.3);
color: #00ff88;
border-radius: 0;
corner-shape: round;
font-family: 'Courier New', monospace;
text-transform: uppercase;
letter-spacing: 2px;
transition: corner-shape 0.35s, border-radius 0.35s,
border-color 0.35s, box-shadow 0.35s;
}
.btn:is(:hover, :focus-visible) {
corner-shape: notch;
border-radius: 12px;
border-color: #00ff88;
color: #fff;
box-shadow:
0 0 12px rgba(0, 255, 136, 0.3),
inset 0 0 12px rgba(0, 255, 136, 0.06);
}
<button class="btn">Hover Me</button>
46. Scoop Vortex
ארבע הפינות שוקעות פנימה בעיקולי scoop עמוקים, הכפתור מתכווץ מעט ואור רדיאלי קורס אל המרכז, כמו חומר שנשאב לבור כבידה.
.btn {
background: linear-gradient(135deg, #7c3aed, #a855f7);
color: #fff;
border-radius: 8px;
corner-shape: round;
z-index: 1;
transition: corner-shape 0.5s cubic-bezier(0.4, 0, 0.2, 1),
border-radius 0.5s cubic-bezier(0.4, 0, 0.2, 1),
transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
box-shadow 0.5s;
}
/* Collapsing radial light */
.btn::before {
content: '';
position: absolute;
inset: 0;
border-radius: 8px;
corner-shape: round;
background: radial-gradient(circle, rgba(255,255,255,0.25), transparent 60%);
opacity: 0;
transform: scale(1.6);
transition: corner-shape 0.5s, opacity 0.5s, transform 0.5s;
z-index: -1;
}
.btn:is(:hover, :focus-visible) {
corner-shape: scoop;
border-radius: 28px;
transform: scale(0.95);
box-shadow:
0 0 30px rgba(124, 58, 237, 0.4),
inset 0 0 20px rgba(0, 0, 0, 0.3);
}
.btn:is(:hover, :focus-visible)::before {
corner-shape: scoop;
border-radius: 28px;
opacity: 1;
transform: scale(0.4);
}
<button class="btn">Hover Me</button>
47. Bevel Shift
נקי וארכיטקטוני. ב-hover הפינות נחתכות באלכסון לצורת bevel והמרווח בין האותיות גדל, כך שהטקסט מקבל מראה חרוט ויוקרתי.
.btn {
background: #18181b;
color: #fafafa;
border-radius: 4px;
corner-shape: round;
transition: corner-shape 0.4s, border-radius 0.4s,
transform 0.3s, letter-spacing 0.3s;
}
.btn:is(:hover, :focus-visible) {
corner-shape: bevel;
border-radius: 14px;
transform: translateY(-2px);
letter-spacing: 2px;
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
<button class="btn">Hover Me</button>
מקלדת, מסכי מגע ו-Reduced Motion
אפקט hover זמין רק למי שמשתמש בעכבר. שלוש תוספות קטנות הופכות כל אחד מהאפקטים שראינו לבטוח לשימוש באתר אמיתי. בלוקי הקוד בפוסט זה כבר כוללים את הראשונה מביניהן.
משתמשי מקלדת ו-focus-visible
מי שמנווט באתר בעזרת מקש Tab לעולם לא מפעיל את :hover. בכדי שאותו אפקט יופיע גם כשהכפתור מקבל פוקוס מהמקלדת, צרפו לו את :focus-visible:
.btn:is(:hover, :focus-visible) {
transform: translateY(-3px);
}
בניגוד ל-:focus, דפדפנים בדרך כלל לא מפעילים את :focus-visible כשלוחצים על הכפתור בעכבר. כך האפקט לא נשאר "תקוע" אחרי הלחיצה.
השאירו גם מסגרת פוקוס (outline) גלויה. אם ה-reset שלכם מסיר אותה בעזרת outline: none, הוסיפו מסגרת משלכם ב-:focus-visible. אפקט ה-hover הוא תוספת, לא תחליף לסימון הפוקוס.
מסכי מגע ו-hover: hover
בטלפונים אין hover אמיתי. חלק מדפדפני המובייל מפעילים את :hover אחרי נגיעה ומשאירים אותו פעיל עד שנוגעים במקום אחר במסך. בכדי להגביל את האפקט למכשירים שבאמת יודעים לעשות hover, עטפו אותו ב-media query:
@media (hover: hover) {
.btn:hover {
transform: translateY(-3px);
}
}
.btn:focus-visible {
transform: translateY(-3px);
}
כלל ה-:focus-visible נשאר מחוץ ל-media query, כך שמשתמשי מקלדת יקבלו את האפקט בכל מכשיר.
"תכונת המדיה hover ב-CSS מאפשרת לבדוק האם אמצעי הקלט העיקרי של המשתמש יכול לרחף מעל אלמנטים." (MDN Web Docs)
תנועה מופחתת ו-prefers-reduced-motion
אפקטים כמו Glitch Tremor ו-Brutalist Shake כוללים לא מעט תנועה. חלק מהמשתמשים מפעילים במערכת ההפעלה הגדרה של הפחתת תנועה (Reduce Motion), מכיוון שתנועה חזקה עלולה לגרום לסחרחורת או לבחילה. תוכלו לכבד את אותה הגדרה בעזרת media query אחת:
@media (prefers-reduced-motion: reduce) {
.btn,
.btn::before,
.btn::after {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
}
}
הכפתור עדיין מגיע למצב ה-hover שלו, רק בלי התנועה בדרך.
הדוגמאות בעמוד זה משתמשות בכללים של המקלדת ושל התנועה המופחתת. את הכלל של מסכי המגע השמטתי בכוונה, כך שתוכלו לנסות את האפקטים גם מהטלפון.
שאלות נפוצות
transition מגדיר מעבר חלק בין שני מצבים כאשר מאפיין כלשהו משתנה, למשל בריחוף. animation מאפשר להגדיר רצף שלבים מורכב באמצעות @keyframes, שיכול לרוץ ברציפות, בלולאה ועם שליטה מלאה בתזמון.
@property מאפשר להגדיר custom property עם טיפוס מוגדר, למשל <angle> או <number>. בזכות הגדרת הטיפוס, הדפדפן יודע לבצע אינטרפולציה (מעבר חלק) של הערך, דבר שמאפשר להנפיש גרדיאנטים, זוויות וצבעים בצורה שבלי @property פשוט אינה עובדת.
:active או באנימציות שמופעלות בלחיצה, ולעטוף את כללי ה-hover ב-@media (hover: hover) כך שיחולו רק על מכשירים שבאמת יודעים לעשות hover.
clip-path חותך את הצורה הנראית של אלמנט. כשמשלבים אותו עם transition, אפשר לעבור בריחוף בין צורות שונות, למשל מיהלום למלבן או מצורה חתוכה בזוויות לצורה מלאה. הצורות צריכות לכלול את אותו מספר נקודות ב-polygon() כדי שהמעבר יהיה חלק.
background ישירות בין שני גרדיאנטים. יש שתי דרכים עיקריות לעשות זאת: להזיז את background-position של גרדיאנט שגדול מגודל האלמנט, או להשתמש ב-@property כדי להגדיר את הערכים שמרכיבים את הגרדיאנט ולהנפיש אותם בנפרד.
::before ו-::after מוסיפים שתי שכבות נוספות לאלמנט בלי צורך ב-HTML נוסף. אפשר למקם אותן מאחורי הטקסט עם z-index: -1 ולהנפיש כל אחת מהן בנפרד, למשל כמילוי שזוחל מהצד, כעיגול שמתרחב מהמרכז או כחלקיקים שמתפזרים החוצה.
:focus-visible לצד :hover, למשל .btn:is(:hover, :focus-visible). כך מי שמגיע לכפתור בעזרת Tab יראה את אותו אפקט. השאירו גם מסגרת פוקוס גלויה, מכיוון שאפקט ה-hover לא מחליף אותה.
@media (prefers-reduced-motion: reduce) ובטלו בתוכה אנימציות ו-transitions ארוכים. המשתמשים מפעילים את ההגדרה באפשרויות הנגישות של macOS, Windows, iOS ו-Android, והכפתור עדיין מגיע למצב ה-hover שלו, רק בלי התנועה.
סיכום
ראינו 43 אפקטי hover על כפתורים, מאפקטים שימושיים ומלוטשים כמו Glass Shift ו-Shadow Stack, ועד אפקטים ניסיוניים כמו Aurora Border, Glitch Tremor ו-Supernova שדוחפים את מה ש-CSS יכול לעשות.
כל האפקטים בדוגמאות נבנו ב-CSS בלבד, מלבד אפקט Magnetic Field שדורש כמה שורות JS. אתם מוזמנים להעתיק כל אפקט ולהתאים אותו לפרויקטים שלכם. אם אהבתם את הפוסט, כדאי לראות גם את האוסף שלי של אפקטי hover על תמונות.
לפני שאתם משתמשים באחד מהם באתר אמיתי, עברו על כללי המקלדת, מסכי המגע והתנועה המופחתת שלמעלה.
תודה רבה, יש פה כמה ממש יפים!
האם יש דרך לשנות את הטקסט עצמו לאחר הלחיצה על הכפתור?
אפשר תומס, אך זה דורש מעט Javascript (במרבית המקרים)…
דוגמאות נהדרות 🙂 תודה על השיתוף
ממש תודה!
רעיונות יפים!
אם אני משתמשת בתמונה ככפתור ,איך אני גורמת לה להגיב במשהו בעת מעבר?
אולי ליצור תמונה נוספת מקבילה עם השוני הרצוי ואז- מה?
היי מירי,
עקרונית את צריכה לעטוף אותה בתגית a ולהוסיף קישור. אך קחי בחשבון שכנראה ותהיה לכך השפעה על האפקטי בתמונה. נסי לתת לתגית display: block בתור התחלה – בכל מקרה – תאלצי לנסות ולטעות ולנסות שוב… 🙂
תודה!
ואוו תודה רבה!! הימים ולילות מהמם!! השתמשתי……
לא הבנתי איפה כתוב הCSS של הכפתור?
לחצי על הפתור עצמו בשביל לראות את ה CSS..
יואו! זה מדהים!!
אבל למה זה לא עובד לי?
יש הגדרות נוספות שאני צריכה לכתוב?
למה זה לא עובד לי? שמתי את הקוד באלמנטור בהתאמה אישית של הכפתור..
היי תהילה, אני לא יכול לדעת, צריך לדעת CSS בשביל לוודא שאין styling אחר שמונע מזה לעבוד.
יש מצב שהסלקטור לא נכון או משהו כזה?… איך מגדירים אותו?