Log in
Start Coding
All
Accordion
border
Buttons
Cards
Carousel
Css Animation
Hexagons
Hover
Layout
Loaders
Menu
Navigation
Slider
Tables
Wave
All
body { background: #fff; display: flex; align-items: center; justify-content: center; height: 100vh; margin: 0; padding: 0; } .container { background: #181c21; width: 100%; height: 100%; margin: 0; display: flex; align-items: stretch; justify-content: stretch; } .loader { width: 45px; height: 90px; position: relative; } .loader:after { content: ""; position: absolute; inset: 0 0 20px; border-radius: 15px 15px 10px 10px; padding: 1px; background: repeating-linear-gradient(-45deg, #91d2e2 0 8px, #1296a7 0 12px) content-box; --c: radial-gradient(farthest-side, #000 94%, #0000); -webkit-mask: linear-gradient(#0000 0 0), var(--c) -10px -10px, var(--c) 15px -14px, var(--c) 9px -6px, var(--c) -12px 9px, var(--c) 14px 9px, var(--c) 23px 27px, var(--c) -8px 35px, var(--c) 50% 50%, linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0), var(--c) -10px -10px, var(--c) 15px -14px, var(--c) 9px -6px, var(--c) -12px 9px, var(--c) 14px 9px, var(--c) 23px 27px, var(--c) -8px 35px, var(--c) 50% 50%, linear-gradient(#0000 0 0); -webkit-mask-composite: destination-out; mask-composite: exclude, add, add, add, add, add, add, add, add; -webkit-mask-repeat: no-repeat; animation: l2 3s infinite ease-out; } .loader:before { content: ""; position: absolute; inset: 50% calc(50% - 4px) 0; background: #e0a267; border-radius: 50px; } @keyframes l2 { 0% { -webkit-mask-size: auto, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0; } 10% { -webkit-mask-size: auto, 25px 25px, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0; } 20% { -webkit-mask-size: auto, 25px 25px, 25px 25px, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0; } 30% { -webkit-mask-size: auto, 25px 25px, 25px 25px, 30px 30px, 0 0, 0 0, 0 0, 0 0, 0 0; } 40% { -webkit-mask-size: auto, 25px 25px, 25px 25px, 30px 30px, 30px 30px, 0 0, 0 0, 0 0, 0 0; } 50% { -webkit-mask-size: auto, 25px 25px, 25px 25px, 30px 30px, 30px 30px, 25px 25px, 0 0, 0 0, 0 0; } 60% { -webkit-mask-size: auto, 25px 25px, 25px 25px, 30px 30px, 30px 30px, 25px 25px, 25px 25px, 0 0, 0 0; } 70% { -webkit-mask-size: auto, 25px 25px, 25px 25px, 30px 30px, 30px 30px, 25px 25px, 25px 25px, 25px 25px, 0 0; } 80%, 100% { -webkit-mask-size: auto, 25px 25px, 25px 25px, 30px 30px, 30px 30px, 25px 25px, 25px 25px, 25px 25px, 200% 200%; } }
2
Popsicle Loader
By:
Nethan Pogi
.loader-container { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 1rem; } .traffic-light { background: linear-gradient(145deg, #1a1a1a 0%, #2d2d2d 40%, #1e1e1e 100%); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 28px; padding: 24px; box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5), 0 20px 40px rgba(0, 0, 0, 0.3), 0 8px 16px rgba(0, 0, 0, 0.2), inset 0 2px 0 rgba(255, 255, 255, 0.05), inset 0 -2px 20px rgba(0, 0, 0, 0.8); backdrop-filter: blur(20px) saturate(180%); position: relative; width: 100px; } .light-row { margin: 18px 0; display: flex; align-items: center; justify-content: center; position: relative; } .light-row:first-child { margin-top: 0; } .light-row:last-child { margin-bottom: 0; } .light { width: 40px; height: 40px; border-radius: 50%; position: relative; overflow: hidden; border: 2px solid rgba(255, 255, 255, 0.06); transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1); } .light::before { content: ""; position: absolute; top: 16px; left: 20px; width: 28px; height: 24px; background: linear-gradient( 135deg, rgba(255, 255, 255, 0.15) 0%, transparent 60% ); border-radius: 50%; filter: blur(6px); opacity: 0.4; } .light::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient( circle at 35% 35%, rgba(255, 255, 255, 0.08) 0%, transparent 65% ); } .red-light { background: radial-gradient(circle at center, #2d1515 0%, #1a0808 80%), linear-gradient(135deg, #331212, #1a0606); box-shadow: inset 0 6px 12px rgba(0, 0, 0, 0.4), inset 0 -3px 6px rgba(255, 255, 255, 0.02); animation: redSequence 4s ease-in-out infinite; } @keyframes redSequence { 0% { background: radial-gradient(circle at center, #ff4444 0%, #cc1111 80%), linear-gradient(135deg, #ff5555, #dd2222); border-color: rgba(255, 68, 68, 0.25); box-shadow: 0 0 40px rgba(255, 68, 68, 0.6), 0 0 80px rgba(255, 68, 68, 0.3), 0 0 120px rgba(255, 68, 68, 0.15), inset 0 3px 6px rgba(255, 255, 255, 0.15), inset 0 -3px 6px rgba(0, 0, 0, 0.4); transform: scale(1.05); } 25%, 75%, 100% { background: radial-gradient(circle at center, #2d1515 0%, #1a0808 80%), linear-gradient(135deg, #331212, #1a0606); border-color: rgba(255, 255, 255, 0.06); box-shadow: inset 0 6px 12px rgba(0, 0, 0, 0.4), inset 0 -3px 6px rgba(255, 255, 255, 0.02); transform: scale(1); } } .yellow-light { background: radial-gradient(circle at center, #2d2d15 0%, #1a1a08 80%), linear-gradient(135deg, #333312, #1a1a06); box-shadow: inset 0 6px 12px rgba(0, 0, 0, 0.4), inset 0 -3px 6px rgba(255, 255, 255, 0.02); animation: yellowSequence 4s ease-in-out infinite; } @keyframes yellowSequence { 0%, 50%, 100% { background: radial-gradient(circle at center, #2d2d15 0%, #1a1a08 80%), linear-gradient(135deg, #333312, #1a1a06); border-color: rgba(255, 255, 255, 0.06); box-shadow: inset 0 6px 12px rgba(0, 0, 0, 0.4), inset 0 -3px 6px rgba(255, 255, 255, 0.02); transform: scale(1); } 25% { background: radial-gradient(circle at center, #ffdd44 0%, #cc9900 80%), linear-gradient(135deg, #ffee55, #ddaa22); border-color: rgba(255, 221, 68, 0.25); box-shadow: 0 0 40px rgba(255, 221, 68, 0.6), 0 0 80px rgba(255, 221, 68, 0.3), 0 0 120px rgba(255, 221, 68, 0.15), inset 0 3px 6px rgba(255, 255, 255, 0.15), inset 0 -3px 6px rgba(0, 0, 0, 0.4); transform: scale(1.05); } } .green-light { background: radial-gradient(circle at center, #152d15 0%, #081a08 80%), linear-gradient(135deg, #123312, #061a06); box-shadow: inset 0 6px 12px rgba(0, 0, 0, 0.4), inset 0 -3px 6px rgba(255, 255, 255, 0.02); animation: greenSequence 4s ease-in-out infinite; } @keyframes greenSequence { 0%, 25%, 75% { background: radial-gradient(circle at center, #152d15 0%, #081a08 80%), linear-gradient(135deg, #123312, #061a06); border-color: rgba(255, 255, 255, 0.06); box-shadow: inset 0 6px 12px rgba(0, 0, 0, 0.4), inset 0 -3px 6px rgba(255, 255, 255, 0.02); transform: scale(1); } 50%, 100% { background: radial-gradient(circle at center, #44ff44 0%, #11cc11 80%), linear-gradient(135deg, #55ff55, #22dd22); border-color: rgba(68, 255, 68, 0.25); box-shadow: 0 0 40px rgba(68, 255, 68, 0.6), 0 0 80px rgba(68, 255, 68, 0.3), 0 0 120px rgba(68, 255, 68, 0.15), inset 0 3px 6px rgba(255, 255, 255, 0.15), inset 0 -3px 6px rgba(0, 0, 0, 0.4); transform: scale(1.05); } } .loading-status { font-size: 12px; color: #0317fc; font-weight: 500; letter-spacing: 0.5px; animation: statusUpdate 4s ease-in-out infinite; } .loading-status::before { content: "Initializing red signal..."; animation: textUpdate 4s ease-in-out infinite; } @keyframes textUpdate { 0%, 24% { content: "Initializing red signal..."; } 25%, 49% { content: "Preparing yellow transition..."; } 50%, 74% { content: "Activating green protocol..."; } 75%, 100% { content: "Completing traffic sequence..."; } } @keyframes statusUpdate { 0%, 100% { opacity: 1; } 12.5%, 37.5%, 62.5%, 87.5% { opacity: 0.5; } }
2
Traffic Light Loader Animation
By:
Nethan Pogi
Push
body { width: 100%; height: 100vh; margin: 0; padding: 0; display: flex; align-items: center; justify-content: center; font-size: 3rem; background-color: rgba(225, 225, 225, 1); font-family: "Inter", sans-serif; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow: hidden; } button { all: unset; cursor: pointer; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); position: relative; border-radius: 999vw; background-color: rgba(0, 0, 0, 0.75); box-shadow: -0.15em -0.15em 0.15em -0.075em rgba(5, 5, 5, 0.25), 0.0375em 0.0375em 0.0675em 0 rgba(5, 5, 5, 0.1); } button::after { content: ""; position: absolute; z-index: 0; width: calc(100% + 0.3em); height: calc(100% + 0.3em); top: -0.15em; left: -0.15em; border-radius: inherit; background: linear-gradient(-135deg, rgba(5, 5, 5, 0.5), transparent 20%, transparent 100%); filter: blur(0.0125em); opacity: 0.25; mix-blend-mode: multiply; } button .button-outer { position: relative; z-index: 1; border-radius: inherit; transition: box-shadow 300ms ease; will-change: box-shadow; box-shadow: 0 0.05em 0.05em -0.01em rgba(5, 5, 5, 1), 0 0.01em 0.01em -0.01em rgba(5, 5, 5, 0.5), 0.15em 0.3em 0.1em -0.01em rgba(5, 5, 5, 0.25); } button:hover .button-outer { box-shadow: 0 0 0 0 rgba(5, 5, 5, 1), 0 0 0 0 rgba(5, 5, 5, 0.5), 0 0 0 0 rgba(5, 5, 5, 0.25); } .button-inner { --inset: 0.035em; position: relative; z-index: 1; border-radius: inherit; padding: 1em 1.5em; background-image: linear-gradient(135deg, rgba(230, 230, 230, 1), rgba(180, 180, 180, 1)); transition: box-shadow 300ms ease, clip-path 250ms ease, background-image 250ms ease, transform 250ms ease; will-change: box-shadow, clip-path, background-image, transform; overflow: clip; clip-path: inset(0 0 0 0 round 999vw); box-shadow: /* 1 */ 0 0 0 0 inset rgba(5, 5, 5, 0.1), /* 2 */ -0.05em -0.05em 0.05em 0 inset rgba(5, 5, 5, 0.25), /* 3 */ 0 0 0 0 inset rgba(5, 5, 5, 0.1), /* 4 */ 0 0 0.05em 0.2em inset rgba(255, 255, 255, 0.25), /* 5 */ 0.025em 0.05em 0.1em 0 inset rgba(255, 255, 255, 1), /* 6 */ 0.12em 0.12em 0.12em inset rgba(255, 255, 255, 0.25), /* 7 */ -0.075em -0.25em 0.25em 0.1em inset rgba(5, 5, 5, 0.25); } button:hover .button-inner { clip-path: inset(clamp(1px, 0.0625em, 2px) clamp(1px, 0.0625em, 2px) clamp(1px, 0.0625em, 2px) clamp(1px, 0.0625em, 2px) round 999vw); box-shadow: /* 1 */ 0.1em 0.15em 0.05em 0 inset rgba(5, 5, 5, 0.75), /* 2 */ -0.025em -0.03em 0.05em 0.025em inset rgba(5, 5, 5, 0.5), /* 3 */ 0.25em 0.25em 0.2em 0 inset rgba(5, 5, 5, 0.5), /* 4 */ 0 0 0.05em 0.5em inset rgba(255, 255, 255, 0.15), /* 5 */ 0 0 0 0 inset rgba(255, 255, 255, 1), /* 6 */ 0.12em 0.12em 0.12em inset rgba(255, 255, 255, 0.25), /* 7 */ -0.075em -0.12em 0.2em 0.1em inset rgba(5, 5, 5, 0.25); } button .button-inner span { position: relative; z-index: 4; font-family: "Inter", sans-serif; letter-spacing: -0.05em; font-weight: 500; color: rgba(0, 0, 0, 0); background-image: linear-gradient(135deg, rgba(25, 25, 25, 1), rgba(75, 75, 75, 1)); -webkit-background-clip: text; background-clip: text; transition: transform 250ms ease; display: block; will-change: transform; text-shadow: rgba(0, 0, 0, 0.1) 0 0 0.1em; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } button:hover .button-inner span { transform: scale(0.975); } button:active .button-inner { transform: scale(0.975); }
2
Push Button
By:
Nethan Pogi
OFF
ON
body { background: #e8e8e8; display: flex; align-items: center; justify-content: center; height: 100vh; margin: 0; padding: 0; } /* From Uiverse.io by santhosh_2608 */ .toggle-switch { display: inline-flex; align-items: center; gap: 16px; cursor: pointer; user-select: none; position: relative; } .toggle-input { position: absolute; opacity: 0; width: 0; height: 0; } .toggle-track { position: relative; width: 76px; height: 38px; background: linear-gradient(160deg, #1c1c1c 0%, #0a0a0a 40%, #151515 100%); border: 2px solid #3a302a; border-radius: 6px; transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1); overflow: hidden; box-sizing: border-box; box-shadow: inset 0 4px 12px rgba(0, 0, 0, 0.5), inset 0 -2px 6px rgba(255, 255, 255, 0.02), 0 4px 16px rgba(0, 0, 0, 0.4); } .toggle-track::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient( 90deg, transparent 0px, transparent 3px, rgba(0, 0, 0, 0.08) 3px, rgba(0, 0, 0, 0.08) 4px ); pointer-events: none; opacity: 0.5; } .toggle-track::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient( 90deg, transparent, rgba(255, 255, 255, 0.05), transparent ); } .toggle-rust { position: absolute; inset: 0; background: radial-gradient( ellipse at 5% 90%, rgba(139, 69, 19, 0.2) 0%, transparent 35% ), radial-gradient( ellipse at 95% 10%, rgba(120, 60, 20, 0.15) 0%, transparent 30% ), radial-gradient( ellipse at 50% 100%, rgba(100, 50, 15, 0.1) 0%, transparent 40% ); pointer-events: none; transition: all 0.6s ease; } .toggle-input:checked + .toggle-track { border-color: #b04528; background: linear-gradient(160deg, #281815 0%, #140a08 40%, #1c100c 100%); box-shadow: inset 0 4px 12px rgba(0, 0, 0, 0.5), inset 0 -2px 6px rgba(179, 74, 40, 0.08), 0 4px 24px rgba(179, 74, 40, 0.25), 0 0 50px rgba(179, 74, 40, 0.15); } .toggle-input:checked + .toggle-track .toggle-rust { background: radial-gradient( ellipse at 5% 90%, rgba(179, 74, 40, 0.2) 0%, transparent 35% ), radial-gradient( ellipse at 95% 10%, rgba(220, 90, 45, 0.3) 0%, transparent 45% ), radial-gradient( ellipse at 80% 50%, rgba(255, 120, 60, 0.15) 0%, transparent 55% ); } .toggle-glow { position: absolute; inset: 0; background: radial-gradient( ellipse at 78% 50%, rgba(255, 100, 50, 0.3) 0%, transparent 55% ); opacity: 0; transition: opacity 0.6s ease; pointer-events: none; } .toggle-input:checked + .toggle-track .toggle-glow { opacity: 1; animation: glowPulse 2.5s ease-in-out infinite; } @keyframes glowPulse { 0%, 100% { opacity: 0.7; filter: brightness(1); } 50% { opacity: 1; filter: brightness(1.2); } } .toggle-thumb { position: absolute; top: 4px; left: 4px; width: 26px; height: 26px; background: linear-gradient(145deg, #5a5048 0%, #3a3028 40%, #4a4038 100%); border: 1px solid #6a5a4a; border-radius: 4px; transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5), 0 2px 4px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.08), inset 0 -1px 0 rgba(0, 0, 0, 0.2); box-sizing: border-box; z-index: 2; } .toggle-input:checked + .toggle-track .toggle-thumb { left: calc(100% - 30px); background: linear-gradient(145deg, #e05a30 0%, #b04020 40%, #d04a28 100%); border-color: #ff7040; box-shadow: 0 4px 24px rgba(224, 90, 48, 0.65), 0 0 35px rgba(224, 90, 48, 0.45), 0 0 70px rgba(224, 90, 48, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.25), inset 0 -1px 0 rgba(0, 0, 0, 0.1); } .thumb-inner { width: 12px; height: 12px; background: linear-gradient(145deg, #6a5a4a 0%, #4a3a30 100%); border-radius: 50%; transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1); box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4); position: relative; } .toggle-input:checked + .toggle-track .thumb-inner { background: linear-gradient(145deg, #ff9060 0%, #ff7040 100%); box-shadow: 0 0 14px rgba(255, 144, 96, 0.9), 0 0 28px rgba(255, 112, 64, 0.6), 0 0 42px rgba(255, 90, 50, 0.3), inset 0 1px 2px rgba(255, 255, 255, 0.4); animation: emberGlow 1.2s ease-in-out infinite; } @keyframes emberGlow { 0%, 100% { box-shadow: 0 0 14px rgba(255, 144, 96, 0.9), 0 0 28px rgba(255, 112, 64, 0.6); transform: scale(1); } 50% { box-shadow: 0 0 18px rgba(255, 144, 96, 1), 0 0 36px rgba(255, 112, 64, 0.8), 0 0 54px rgba(255, 90, 50, 0.4); transform: scale(1.08); } } .thumb-shine { position: absolute; top: 0; left: 0; right: 0; height: 45%; background: linear-gradient( 180deg, rgba(255, 255, 255, 0.12) 0%, transparent 100% ); border-radius: 4px 4px 0 0; pointer-events: none; transition: all 0.6s ease; } .toggle-input:checked + .toggle-track .thumb-shine { background: linear-gradient( 180deg, rgba(255, 255, 255, 0.25) 0%, transparent 100% ); } .toggle-icons { position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between; padding: 0 11px; pointer-events: none; z-index: 1; } .toggle-icons svg { width: 16px; height: 16px; transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1); } .icon-off { color: #6a6050; opacity: 1; transform: rotate(0deg) scale(1); } .icon-on { color: #4a3828; opacity: 0.35; transform: rotate(-20deg) scale(0.9); } .toggle-input:checked + .toggle-track .icon-off { opacity: 0.15; color: #3a3028; transform: rotate(180deg) scale(0.8); } .toggle-input:checked + .toggle-track .icon-on { opacity: 1; color: #ff9060; transform: rotate(0deg) scale(1.1); filter: drop-shadow(0 0 8px rgba(255, 144, 96, 0.7)); } .toggle-label { position: relative; font-family: "Consolas", "Courier New", monospace; font-size: 0.8rem; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; height: 24px; display: flex; align-items: center; min-width: 32px; } .label-off, .label-on { position: absolute; transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1); } .label-off { color: #5a5040; opacity: 1; transform: translateY(0); } .label-on { color: #e05a30; opacity: 0; transform: translateY(10px); } .toggle-input:checked ~ .toggle-label .label-off { opacity: 0; transform: translateY(-10px); } .toggle-input:checked ~ .toggle-label .label-on { opacity: 1; transform: translateY(0); text-shadow: 0 0 12px rgba(224, 90, 48, 0.6), 0 0 24px rgba(224, 90, 48, 0.3); animation: labelGlow 2s ease-in-out infinite; } @keyframes labelGlow { 0%, 100% { text-shadow: 0 0 12px rgba(224, 90, 48, 0.6), 0 0 24px rgba(224, 90, 48, 0.3); } 50% { text-shadow: 0 0 16px rgba(224, 90, 48, 0.8), 0 0 32px rgba(224, 90, 48, 0.5); } } .toggle-switch:hover .toggle-track { border-color: #5a4838; transform: scale(1.03); } .toggle-switch:hover .toggle-input:checked + .toggle-track { border-color: #d45030; } .toggle-switch:hover .toggle-thumb { box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6), 0 2px 4px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.12); } .toggle-switch:hover .toggle-input:checked + .toggle-track .toggle-thumb { box-shadow: 0 6px 28px rgba(224, 90, 48, 0.75), 0 0 50px rgba(224, 90, 48, 0.55), 0 0 90px rgba(224, 90, 48, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3); } .toggle-switch:active .toggle-thumb { width: 32px; transition: all 0.12s ease; } .toggle-switch:active .toggle-input:checked + .toggle-track .toggle-thumb { left: calc(100% - 36px); width: 32px; } .toggle-input:focus-visible + .toggle-track { outline: 2px solid #ff7040; outline-offset: 4px; } .toggle-switch::before { content: ""; position: absolute; top: -6px; left: -6px; right: -6px; bottom: -6px; background: radial-gradient( ellipse at center, rgba(224, 90, 48, 0.08) 0%, transparent 70% ); opacity: 0; transition: opacity 0.6s ease; pointer-events: none; border-radius: 12px; } .toggle-switch:hover::before { opacity: 1; } .toggle-switch::after { content: ""; position: absolute; bottom: -14px; left: 10px; width: 56px; height: 14px; background: radial-gradient(ellipse, rgba(0, 0, 0, 0.35) 0%, transparent 70%); filter: blur(5px); opacity: 0.7; transition: all 0.6s ease; pointer-events: none; } .toggle-switch:hover::after { opacity: 0.9; transform: scale(1.08); }
2
Ember Glow Toggle Effect Button
By:
Nethan Pogi
Home
Articles
Videos
About
Contact
* { box-sizing: border-box; } body { font-family: system-ui; color: #fff; margin: 0; padding: 80px 30px; background-color: #030303; } nav { display: flex; justify-content: center; align-items: center; gap: 50px; } nav a { font-size: 18px; font-weight: 700; text-transform: uppercase; text-decoration: none; color: #fff; padding: 0.4rem 0; transition: color 0.3s ease-in-out, opacity 0.3s ease-in-out; } nav a:hover { color: #ff7a18; } nav:has(a:hover) a:not(:hover) { opacity: 0.3; }
2
Simple Hover Menu
By:
Nethan Pogi
Hover Me
.hover { border: 8px solid; border-image: repeating-linear-gradient(135deg,#F8CA00 0 10px,#E97F02 0 20px,#BD1550 0 30px) 8; -webkit-mask: conic-gradient(from 180deg at top 8px right 8px, #0000 90deg,#000 0) var(--_i,200%) 0 /200% var(--_i,8px) border-box no-repeat, conic-gradient(at bottom 8px left 8px, #0000 90deg,#000 0) 0 var(--_i,200%)/var(--_i,8px) 200% border-box no-repeat, linear-gradient(#000 0 0) padding-box no-repeat; transition: .3s, -webkit-mask-position .3s .3s; } .hover:hover { --_i: 100%; color: #CC333F; transition: .3s, -webkit-mask-size .3s .3s; } body { height: 100vh; margin: 0; display: grid; place-content: center; align-items: center; } h3 { font-family: system-ui, sans-serif; font-size: 4rem; margin:0; cursor: pointer; padding: 0 .1em; }
2
Gradient Hover Effect
By:
Nethan Pogi
Previous
1
…
22
23
24