Log in
Start Coding
All
Accordion
border
Buttons
Cards
Carousel
Css Animation
Hexagons
Hover
Layout
Loaders
Menu
Navigation
Slider
Tables
Wave
border
body { margin: 0; padding: 0; background-color: #000; } .block { position: relative; margin: 300px auto 0; width: 500px; height: 250px; background: linear-gradient(0deg, #000, #272727); } .block:before, .block:after { content: ''; position: absolute; left: -2px; top: -2px; background: linear-gradient(45deg, #fb0094, #0000ff, #00ff00,#ffff00, #ff0000, #fb0094, #0000ff, #00ff00,#ffff00, #ff0000); background-size: 400%; width: calc(100% + 4px); height: calc(100% + 4px); z-index: -1; animation: steam 20s linear infinite; } @keyframes steam { 0% { background-position: 0 0; } 50% { background-position: 400% 0; } 100% { background-position: 0 0; } } .block:after { filter: blur(50px); }
24
Colorful Border Animation
By:
Nethan Pogi
border-style : none
border-style : dotted
border-style : dashed
border-style : solid
border-style : double
border-style : groove
border-style : ridge
border-style : inset
border-style : outset
border-style : dashed inset groove double
.default{ border-color : #665; border-width : 5px; margin : 10px 0; padding :2px;} .exemple-none{ border-style : none } .exemple-dotted { border-style : dotted } .exemple-dashed { border-style : dashed } .exemple-solid { border-style : solid } .exemple-double { border-style : double } .exemple-groove { border-style : groove } .exemple-ridge { border-style : ridge } .exemple-inset { border-style : inset } .exemple-outset { border-style : outset } .exemple-dashed-inset-groove-double {border-style : dashed inset groove double }
22
Border Style
By:
Jusar Pogi
Border style value
solid
double
dashed
dotted
groove
ridge
inset
outset
hidden
none
h2 { margin: 10px 20px; } .border-style-box { display: flex; flex-wrap: wrap; margin: 10px 20px; } .border-style { display: flex; align-items: center; padding: 0.5rem; background-color: rgb(186, 85, 211, 0.1); height: 200px; margin: 1rem 0.4rem; } .solid { border: 2px solid #ba55d3; } .double { border: 4px double #ba55d3; } .dashed { border: 2px dashed #ba55d3; } .dotted { border: 2px dotted #ba55d3; } .groove { border: 4px groove #ba55d3; } .ridge { border: 4px ridge #ba55d3; } .inset { border: 4px inset #ba55d3; } .outset { border: 4px outset #ba55d3; } .hodden { border: 2px hidden #ba55d3; } .none { border: none; }
15
Border Style Value
By:
Nethan Pogi
Border Trace
It looks complex, but it’s just a rotating gradient wrapper.
body{ margin:0; min-height:100vh; display:grid; place-items:center; background:#fff; font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial; color:#0b1020; } /* Animated gradient wrapper */ .ccs-traceWrap{ width:min(380px, 92vw); border-radius:18px; padding:2.5px; --ccs-angle: 0deg; background: conic-gradient( from var(--ccs-angle), #3b82f6, #111827, #ec4899, #06b6d4, #3b82f6 ); animation: ccs-rotate 1.9s ease-in infinite; } /* Inner card stays static */ .ccs-traceCard{ border-radius:17px; padding:12px; background:#fff; border:1px solid rgba(0,0,0,.08); box-shadow: 0 18px 40px rgba(0,0,0,.08); } /* Animate the gradient angle */ @keyframes ccs-rotate{ to{ --ccs-angle: 180deg; } }
9
Border Trace
By:
Nethan Pogi
body { display: grid; place-content: center; height: 100vh; background: #222; margin: 0; } .container { --size: min(80vmin, 300px); position: relative; width: var(--size); height: var(--size); } img { clip-path: url(#squircleClip); width: 100%; height: 100%; object-fit: cover; } .border { position: absolute; inset: 0; clip-path: url(#squircleClip); scale: 1; opacity: 0; background: #fd5; box-shadow: inset 10px 10px 20px #ffcb, inset -10px -10px 20px #ea18; border-radius: calc(var(--size) / 6); transition: 0.3s cubic-bezier(.51,.61,0,2.3); } .container:hover .border { scale: 1.1; opacity: 1; }
8
Hover Effect Border
By:
Nethan Pogi
C
O
D
E
/*=============== GOOGLE FONTS ===============*/ @import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap"); /*=============== VARIABLES CSS ===============*/ :root { /*========== Colors ==========*/ /*Color mode HSL(hue, saturation, lightness)*/ --white-color: hsl(0, 0%, 100%); --black-color: hsl(0, 0%, 0%); /*========== Font and typography ==========*/ /*.5rem = 8px | 1rem = 16px ...*/ --body-font: "Poppins", sans-serif; --h1-font-size: 1.5rem; --normal-font-size: 0.938rem; /*========== Font weight ==========*/ --font-regular: 400; --font-medium: 500; /*========== z index ==========*/ --z-tooltip: 10; --z-fixed: 100; } /*========== Responsive typography ==========*/ @media screen and (min-width: 968px) { :root { --normal-font-size: 1rem; } } /*=============== BASE ===============*/ *, *:after, *:before { padding: 0; margin: 0; box-sizing: border-box; } html { scroll-behavior: smooth; } body { font-family: var(--body-font); font-size: var(--normal-font-size); background-color: var(--black-color); } ul { list-style: none; } a { text-decoration: none; } /*=============== REUSABLE CSS CLASSES ===============*/ .container { max-width: 1140px; width: 100%; margin: 0 auto; padding: 3rem; min-height: 100vh; display: grid; place-items: center; } .section__container { --white-color: #ffffff; --dark-color: #222222; --dark-color-alt: #444444; --color-1: #ff1d50; --color-2: #2196f3; display: flex; justify-content: center; align-items: center; width: 100%; min-height: 100vh; } /*==================== ZigZag Border Animation ====================*/ .zigzag__container { --skin-color: #00ff00; --dark-black-color: #292929; --border-color: #928b8b; position: absolute; display: flex; gap: 38px; } .zigzag__container:nth-child(2) { transform: rotate(180deg); z-index: -1; } .zigzag__item { display: block; height: 100px; width: 100px; position: relative; overflow: hidden; transform: rotate(315deg); } .zigzag__item::before { content: ""; position: absolute; width: 100%; height: 2px; background: linear-gradient(90deg, transparent, var(--skin-color)); transform: translateX(-100%); animation: animateBefore 4s linear infinite; animation-delay: calc(1s * var(--i)); } @keyframes animateBefore { 0% { transform: translateX(-100%); } 25%, 100% { transform: translateX(100%); } } .zigzag__item::after { content: ""; position: absolute; right: 0; width: 2px; height: 100%; background: linear-gradient(180deg, transparent, var(--skin-color)); transform: translateY(-100%); animation: animateAfter 4s linear infinite; animation-delay: calc(1s * var(--i)); } @keyframes animateAfter { 0%, 12.5% { transform: translateY(-100%); } 37.5%, 100% { transform: translateY(100%); } } .zigzag__item span { position: absolute; cursor: pointer; inset: 10px; display: flex; justify-content: center; align-items: center; background-color: var(--dark-black-color); outline: 1px solid var(--border-color); transition: 0.3s linear; } .zigzag__container:nth-child(1) .zigzag__item span:hover { outline-offset: -5px; } .zigzag__item span b { font-weight: normal; font-size: 2em; transform: rotate(45deg); color: var(--white-color); } @media screen and (max-width: 600px) { .zigzag__container { gap: 19px; } .zigzag__item { height: 50px; width: 50px; } .zigzag__item span b { font-size: 1em; } }
4
ZigZag Border Animation
By:
Nethan Pogi