Log in
Start Coding
All
Accordion
border
Buttons
Cards
Carousel
Css Animation
Hexagons
Hover
Layout
Loaders
Menu
Navigation
Slider
Tables
Wave
All
Loading…
/* Absolute Center Spinner */ .loading { position: fixed; z-index: 999; height: 2em; width: 2em; overflow: visible; margin: auto; top: 0; left: 0; bottom: 0; right: 0; } /* Transparent Overlay */ .loading:before { content: ''; display: block; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.3); } /* :not(:required) hides these rules from IE9 and below */ .loading:not(:required) { /* hide "loading..." text */ font: 0/0 a; color: transparent; text-shadow: none; background-color: transparent; border: 0; } .loading:not(:required):after { content: ''; display: block; font-size: 10px; width: 1em; height: 1em; margin-top: -0.5em; -webkit-animation: spinner 1500ms infinite linear; -moz-animation: spinner 1500ms infinite linear; -ms-animation: spinner 1500ms infinite linear; -o-animation: spinner 1500ms infinite linear; animation: spinner 1500ms infinite linear; border-radius: 0.5em; -webkit-box-shadow: rgba(0, 0, 0, 0.75) 1.5em 0 0 0, rgba(0, 0, 0, 0.75) 1.1em 1.1em 0 0, rgba(0, 0, 0, 0.75) 0 1.5em 0 0, rgba(0, 0, 0, 0.75) -1.1em 1.1em 0 0, rgba(0, 0, 0, 0.5) -1.5em 0 0 0, rgba(0, 0, 0, 0.5) -1.1em -1.1em 0 0, rgba(0, 0, 0, 0.75) 0 -1.5em 0 0, rgba(0, 0, 0, 0.75) 1.1em -1.1em 0 0; box-shadow: rgba(0, 0, 0, 0.75) 1.5em 0 0 0, rgba(0, 0, 0, 0.75) 1.1em 1.1em 0 0, rgba(0, 0, 0, 0.75) 0 1.5em 0 0, rgba(0, 0, 0, 0.75) -1.1em 1.1em 0 0, rgba(0, 0, 0, 0.75) -1.5em 0 0 0, rgba(0, 0, 0, 0.75) -1.1em -1.1em 0 0, rgba(0, 0, 0, 0.75) 0 -1.5em 0 0, rgba(0, 0, 0, 0.75) 1.1em -1.1em 0 0; } /* Animation */ @-webkit-keyframes spinner { 0% { -webkit-transform: rotate(0deg); -moz-transform: rotate(0deg); -ms-transform: rotate(0deg); -o-transform: rotate(0deg); transform: rotate(0deg); } 100% { -webkit-transform: rotate(360deg); -moz-transform: rotate(360deg); -ms-transform: rotate(360deg); -o-transform: rotate(360deg); transform: rotate(360deg); } } @-moz-keyframes spinner { 0% { -webkit-transform: rotate(0deg); -moz-transform: rotate(0deg); -ms-transform: rotate(0deg); -o-transform: rotate(0deg); transform: rotate(0deg); } 100% { -webkit-transform: rotate(360deg); -moz-transform: rotate(360deg); -ms-transform: rotate(360deg); -o-transform: rotate(360deg); transform: rotate(360deg); } } @-o-keyframes spinner { 0% { -webkit-transform: rotate(0deg); -moz-transform: rotate(0deg); -ms-transform: rotate(0deg); -o-transform: rotate(0deg); transform: rotate(0deg); } 100% { -webkit-transform: rotate(360deg); -moz-transform: rotate(360deg); -ms-transform: rotate(360deg); -o-transform: rotate(360deg); transform: rotate(360deg); } } @keyframes spinner { 0% { -webkit-transform: rotate(0deg); -moz-transform: rotate(0deg); -ms-transform: rotate(0deg); -o-transform: rotate(0deg); transform: rotate(0deg); } 100% { -webkit-transform: rotate(360deg); -moz-transform: rotate(360deg); -ms-transform: rotate(360deg); -o-transform: rotate(360deg); transform: rotate(360deg); } }
60
Single Element Absolute Center Overlay Spinner
By:
pixeldev
@keyframes move_wave { 0% { transform: translateX(0) translateZ(0) scaleY(1) } 50% { transform: translateX(-25%) translateZ(0) scaleY(0.55) } 100% { transform: translateX(-50%) translateZ(0) scaleY(1) } } .waveWrapper { overflow: hidden; position: absolute; left: 0; right: 0; bottom: 0; top: 0; margin: auto; } .waveWrapperInner { position: absolute; width: 100%; overflow: hidden; height: 100%; bottom: -1px; background-image: linear-gradient(to top, #D97A2B 20%, #C44A3A 80%); } .bgTop { z-index: 15; opacity: 0.5; } .bgMiddle { z-index: 10; opacity: 0.75; } .bgBottom { z-index: 5; } .wave { position: absolute; left: 0; width: 200%; height: 100%; background-repeat: repeat no-repeat; background-position: 0 bottom; transform-origin: center bottom; } .waveTop { background-size: 50% 100px; } .waveAnimation .waveTop { animation: move-wave 3s; -webkit-animation: move-wave 3s; -webkit-animation-delay: 1s; animation-delay: 1s; } .waveMiddle { background-size: 50% 120px; } .waveAnimation .waveMiddle { animation: move_wave 10s linear infinite; } .waveBottom { background-size: 50% 100px; } .waveAnimation .waveBottom { animation: move_wave 15s linear infinite; }
60
Wave Animation Using .png
By:
pixeldev
Free
$0/mo
Some feature
Some feature
Some feature
Some feature
Some feature
Buy Now
Premium
$0/mo
Some feature
Some feature
Some feature
Some feature
Some feature
Buy Now
Free
$0/mo
Some feature
Some feature
Some feature
Some feature
Some feature
Buy Now
.pricing-table { width: 700px; margin: 30px auto 30px auto; font-family:"Arial"; } .pricing-table ul { width: 33%; text-align: center; background: #fff; float: left; margin: 0px; padding: 0px; list-style: none; -webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px; -webkit-box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); -moz-box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); -ms-box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); -o-box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); z-index: 99; position: relative; } .pricing-table ul.highlight-low { margin-right: -5px; } .pricing-table ul.highlight-low .heading { font-size: 22px; padding: 15px 0; border: 5px solid #cfcfcf; -webkit-border-radius: 5px 5px 0 0; -moz-border-radius: 5px 5px 0 0; border-radius: 5px 5px 0 0; background-color: #e3e3e3; background-image: -moz-linear-gradient(top, #f0f0f0, #cfcfcf); background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#f0f0f0), to(#cfcfcf)); background-image: -webkit-linear-gradient(top, #f0f0f0, #cfcfcf); background-image: -o-linear-gradient(top, #f0f0f0, #cfcfcf); background-image: linear-gradient(to bottom, #f0f0f0, #cfcfcf); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff0f0f0', endColorstr='#ffcfcfcf', GradientType=0); } .pricing-table ul.highlight-low .price { background: #dfe9f0; border-left: 5px solid #cfcfcf; border-right: 5px solid #cfcfcf; font-size: 20px; padding: 15px 0; } .pricing-table ul.highlight-low .feature { border-left: 5px solid #cfcfcf; border-right: 5px solid #cfcfcf; } .pricing-table ul.highlight-low .feature span { padding: 10px 0; border-bottom: 1px dashed rgba(0, 0, 0, 0.2); margin: 0 10px; display: block; font-size: 90%; } .pricing-table ul.highlight-low .feature:nth-last-child(2) span { border-bottom: 0px !important; } .pricing-table ul.highlight-low .call-to-action { background: #f0f0f0; -webkit-border-radius: 0 0 5px 5px; -moz-border-radius: 0 0 5px 5px; border-radius: 0 0 5px 5px; border: 5px solid #cfcfcf; border-top: 0px; padding: 15px 0; font-size: 22px; } .pricing-table ul.highlight-high { z-index: 100; -webkit-box-shadow: 0 0 15px rgba(0, 0, 0, 0.1); -moz-box-shadow: 0 0 15px rgba(0, 0, 0, 0.1); -ms-box-shadow: 0 0 15px rgba(0, 0, 0, 0.1); -o-box-shadow: 0 0 15px rgba(0, 0, 0, 0.1); box-shadow: 0 0 15px rgba(0, 0, 0, 0.1); margin-top: -12px; } .pricing-table ul.highlight-high .heading { font-size: 22px; padding: 24px 0; border: 5px solid #21507d; -webkit-border-radius: 5px 5px 0 0; -moz-border-radius: 5px 5px 0 0; border-radius: 5px 5px 0 0; background-color: #2c5d8e; background-image: -moz-linear-gradient(top, #336699, #21507d); background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#336699), to(#21507d)); background-image: -webkit-linear-gradient(top, #336699, #21507d); background-image: -o-linear-gradient(top, #336699, #21507d); background-image: linear-gradient(to bottom, #336699, #21507d); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff336699', endColorstr='#ff21507d', GradientType=0); color: #fff; } .pricing-table ul.highlight-high .price { background: #dfe9f0; border-left: 5px solid #21507d; border-right: 5px solid #21507d; font-size: 20px; padding: 15px 0; } .pricing-table ul.highlight-high .feature { border-left: 5px solid #21507d; border-right: 5px solid #21507d; } .pricing-table ul.highlight-high .feature span { padding: 10px 0; border-bottom: 1px dashed rgba(0, 0, 0, 0.2); margin: 0 10px; display: block; font-size: 90%; } .pricing-table ul.highlight-high .feature:nth-last-child(2) span { border-bottom: 0px !important; } .pricing-table ul.highlight-high .call-to-action { background: #f0f0f0; -webkit-border-radius: 0 0 5px 5px; -moz-border-radius: 0 0 5px 5px; border-radius: 0 0 5px 5px; border: 5px solid #21507d; border-top: 0px; padding: 24px 0; font-size: 22px; } .pricing-table ul.highlight-medium { margin-left: -5px; } .pricing-table ul.highlight-medium .heading { font-size: 22px; padding: 15px 0; border: 5px solid #589f0c; -webkit-border-radius: 5px 5px 0 0; -moz-border-radius: 5px 5px 0 0; border-radius: 5px 5px 0 0; background-color: #6abc12; background-image: -moz-linear-gradient(top, #76cf16, #589f0c); background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#76cf16), to(#589f0c)); background-image: -webkit-linear-gradient(top, #76cf16, #589f0c); background-image: -o-linear-gradient(top, #76cf16, #589f0c); background-image: linear-gradient(to bottom, #76cf16, #589f0c); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff76cf16', endColorstr='#ff589f0c', GradientType=0); color: #fff; } .pricing-table ul.highlight-medium .price { background: #dfe9f0; border-left: 5px solid #589f0c; border-right: 5px solid #589f0c; font-size: 20px; padding: 15px 0; } .pricing-table ul.highlight-medium .feature { border-left: 5px solid #589f0c; border-right: 5px solid #589f0c; } .pricing-table ul.highlight-medium .feature span { padding: 10px 0; border-bottom: 1px dashed rgba(0, 0, 0, 0.2); margin: 0 10px; display: block; font-size: 90%; } .pricing-table ul.highlight-medium .feature:nth-last-child(2) span { border-bottom: 0px !important; } .pricing-table ul.highlight-medium .call-to-action { background: #f0f0f0; -webkit-border-radius: 0 0 5px 5px; -moz-border-radius: 0 0 5px 5px; border-radius: 0 0 5px 5px; border: 5px solid #589f0c; border-top: 0px; padding: 15px 0; font-size: 22px; }
60
Pure CSS Pricing Table
By:
pixeldev
The Wave
html,body { height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(#FFCDD2, #F48FB1); } .๐ { width: 400px; height: 400px; background-color: whitesmoke; background-image: linear-gradient( darkblue, rgba(255, 255, 255, 0) 80%, rgba(255, 255, 255, 0.5) ); border-radius: 5px; box-shadow: 0 2px 30px rgba(0, 0, 0, 0.2); position: relative; overflow:hidden; } .๐ .title { color: white; font-size: 24px; font-family: serif; text-align: center; text-transform: uppercase; line-height: 250px; letter-spacing: 0.4em; z-index: 1; position: absolute; width: 100%; } .๐ .wave { width: 600px; height: 600px; position: absolute; background-color: #039BE5; top: -250px; left: -100px; filter: opacity(0.4); border-radius: 43%; animation: drift linear infinite; transform-origin: 50% 48%; } .sp{ width:100px; height:100px; background-color:red; } .๐ .wave:nth-of-type(1) { animation-duration: 5s; } .๐ .wave:nth-of-type(2) { animation-duration: 7s; } .๐ .wave:nth-of-type(3) { animation-duration: 9s; background-color: red; filter: opacity(0.1); } @keyframes drift { from { transform: rotate(360deg); } }
60
Waves animation Pure CSS
By:
pixeldev
body{ margin: 0; padding: 0; background-color: #95d0ff; } .container{ position: absolute; margin: auto; top: 0; left: 0; right: 0; bottom: 0; width:350px; height:510px; } .sun{ height: 0; width: 0; position: absolute; top: 50px; left: 20px; } .circle{ height: 44px; width: 44px; position: absolute; top: 3px; left: 3px; background-color: #ff0; border-radius: 50%; } .sunrays{ height: 50px; width: 50px; position: relative; background-color: #ffdd4a; box-shadow: 0 0 20px 3px #ff8, 0 0 80px 10px #ff6; animation: rotate 12s linear infinite; } @keyframes rotate{ 100%{transform: rotate(360deg);} } .sunrays:before{ content: ''; height: 50px; width: 50px; position: absolute; background-color: #ffdd4a; transform: rotate(30deg); } .sunrays:after{ content: ''; height: 50px; width: 50px; position: absolute; background-color: #ffdd4a; transform: rotate(60deg); } .shadow{ position: absolute; width: 110px; height: 14px; border-radius: 50%; background-color: rgba(0, 0, 0,0.1); bottom: 95px; left: 135px; } .pot{ position: absolute; width: 70px; height: 0; border-left: 12px solid transparent; border-right: 12px solid transparent; border-top: 60px solid #FF7043; bottom: 104px; left: 125px; z-index: 2; } .pot:before{ position: absolute; content: ''; width: 87px; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 9px solid #F4511E; top: -60px; left: -12px; } .pot:after{ position: absolute; content: ''; width: 110px; height: 18px; top: -78px; left: -20px; border-radius: 5px; background-color: #FF7043; } .water-jar{ position: absolute; width: 40px; height: 55px; background-color: #c5f; border-radius: 5px; bottom: 235px; left: 65px; opacity: 0; box-shadow: inset -9px 0 15px #cc70ff; animation: show 10s linear; } @keyframes show{ 5%{opacity: 1;} 7%{transform: rotate(40deg);} 24%{opacity: 1;} 25%{opacity: 0;} } .water-jar:before{ position: absolute; content: ''; width: 15px; height: 0; left: 40px; top: 5px; border-left: 4px solid transparent; border-right: 4px solid transparent; border-bottom: 40px solid #c6f; transform: rotate(65deg); } .water-jar:after{ position: absolute; content: ''; width: 20px; height: 30px; top: 5px; left: -20px; border-radius: 20px 0 0 20px; background-color: transparent; border: 5px solid #c5f; box-shadow: 70px -4px 0 -6px #c6f; } .water{ position: absolute; width: 20px; height: 50px; border-radius: 50% 50% 0 0; border-right: 4px dashed #0bf; bottom: 180px; left: 115px; z-index: 1; opacity: 0; animation: water 10s linear; } @keyframes water{ 7%{opacity: 0;} 8%{opacity: 1;} 21%{opacity: 1;} 22%{opacity: 0;} } .water:before{ position: absolute; content: ''; width: 45px; height: 52px; top: -2px; left: -10px; border-radius: 70% 80% 20% 0; border-right: 4px dashed #0bf; z-index: 1; } .water:after{ position: absolute; content: ''; width: 65px; height: 62px; top: -10px; left: -10px; border-radius: 70% 90% 28% 0; border-right: 4px dashed #0bf; z-index: 1; } .flower{ position: absolute; bottom: 180px; left: 0; right: 0; margin: 0 auto; width: 50px; transform: rotate(180deg); } .stem{ position: absolute; left: 25px; width: 5px; height: 0px; background: linear-gradient(-90deg, #0d0, #0a0); animation: grow 10s linear forwards; } @keyframes grow{ 25%{height: 0;} 34%{height: 22px;} 39%{height: 22px;} 41%{height: 27px;} 45%{height: 27px;} 52%{height: 92px;} 55%{height: 94px;} 100%{height: 120px;} } .leaf{ position: absolute; width: 25px; top: -10px; left: 18px; height: 38px; border-radius: 1% 100%; background: linear-gradient(70deg, #0e0, #0a0); transform-origin: bottom; transform: rotate(-110deg); animation: leaf-1 10s linear; } @keyframes leaf-1{ 0%{transform: scaleY(0) rotate(-180deg);} 38%{transform: scaleY(0) rotate(-110deg);} 50%{transform: scaleY(1) rotate(-110deg);} } .leaf:before{ position: absolute; content: ''; top: 18px; left: -33px; width: 30px; height: 45px; border-radius: 1% 100%; background: linear-gradient(70deg, #0e0, #0a0); transform: rotate(110deg); animation: leaf-2 10s linear; } @keyframes leaf-2{ 0%{transform: scaleY(0) rotate(110deg);} 45%{transform: scaleY(0) rotate(110deg);} 52%{transform: scaleY(1) rotate(110deg);} } .leaf:after{ position: absolute; content: ''; top: -20px; left: -60px; width: 25px; height: 35px; border-radius: 1% 100%; background: linear-gradient(70deg, #0e0, #0a0); transform-origin: bottom; animation: leaf-3 10s linear; } @keyframes leaf-3{ 0%{transform: scaleY(0);} 55%{transform: scaleY(0);} 72%{transform: scaleY(1);} } .dot{ position: absolute; top: 147px; left: 24px; height: 15px; width: 15px; border-radius: 50%; background-color: #f8d545; box-shadow: 0 0 0 4px #d85, 0 0 8px 4px #444, inset 0 0 8px #fd0; opacity: 0; animation: flower 10s linear forwards; } @keyframes flower{ 72%{opacity: 0;} 74%{opacity: 1;} 100%{opacity: 1;} } .petal{ position: absolute; width: 0px; height: 40px; border-radius: 100% 0% 50% 50% /50% 0% 100% 50%; background: linear-gradient( 185deg, #941346 0%, #E63B94 50%, #FF5AB0 75%, #FF7DC1 100% ); opacity: 0; animation: petal 10s linear forwards; } @keyframes petal{ 72%{opacity: 0;} 84%{opacity: 1; width: 40px;} 100%{opacity: 1; width: 40px;} } .petal-1{ top: 155px; left: -9px; } .petal-2{ top: 125px; left: -18px; transform: rotate(60deg); } .petal-3{ top: 105px; left: 5px; transform: rotate(120deg); } .petal-4{ top: 110px; left: 35px; transform: rotate(180deg); } .petal-5{ top: 140px; left: 42px; transform: rotate(240deg); } .petal-6{ top: 160px; left: 18px; transform: rotate(300deg); }
60
Growing Flower Plant Animation
By:
pixeldev
Slide 1
Slide 2
Slide 3
Slide 4
Slide 5
Slide 6
Slide 7
Slide 8
Slide 9
Slide 10
html{ background: #aaa; } section{ width: 200px; height: 200px; position: relative; left: 50%; top: 1em; margin-left: -100px; overflow: hidden; background: #292929; border: 10px solid #fff; } /*section:hover article{ animation-play-state: paused; }*/ article{ position: absolute; left: 200px; background: #292929; color: #e3e3e3; width: 200px; height: 200px; text-align: center; font: 2em/1em sans-serif; border-box: box-sizing; padding-top: 80px; } article:nth-of-type(1){ animation: slideIn 50s linear 0s infinite; } article:nth-of-type(2){ animation: slideIn 50s linear 5s infinite; } article:nth-of-type(3){ animation: slideIn 50s linear 10s infinite; } article:nth-of-type(4){ animation: slideIn 50s linear 15s infinite; } article:nth-of-type(5){ animation: slideIn 50s linear 20s infinite; } article:nth-of-type(6){ animation: slideIn 50s linear 25s infinite; } article:nth-of-type(7){ animation: slideIn 50s linear 30s infinite; } article:nth-of-type(8){ animation: slideIn 50s linear 35s infinite; } article:nth-of-type(9){ animation: slideIn 50s linear 40s infinite; } article:nth-of-type(10){ animation: slideIn 50s linear 45s infinite; } @keyframes slideIn{ 0% {left: 200px;} 1% {left: 0;} 10% {left: 0;} 11% {left: -200px;} 100%{left: -200px;} }
60
Pure CSS Image Slider
By:
pixeldev
.container { padding: 3rem; } .row { columns: 4; column-gap: 3rem; } .item { display: block; width: 100%; margin-bottom: 3rem; } .item img { width: 100%; }
59
Pure CSS Masonry grid layout
By:
pixeldev
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; }
59
Hover Effect Border
By:
pixeldev
45%
.container { position: absolute; width: 200px; height: 200px; padding: 5px; border: 5px solid rgb(118, 218, 255); top: 50%; left: 50%; transform: translate(-50%, -50%); border-radius: 50%; overflow: hidden; } .wave { position: relative; width: 200px; height: 200px; background-color: rgb(118, 218, 255); border-radius: 50%; } .wave::before, .wave::after { content: ""; position: absolute; width: 400px; height: 400px; top: 0; left: 50%; background-color: rgba(255, 255, 255, 0.4); border-radius: 45%; transform: translate(-50%, -70%) rotate(0); animation: rotate 6s linear infinite; z-index: 1; } .wave::after { border-radius: 47%; background-color: rgba(255, 255, 255, 0.9); transform: translate(-50%, -70%) rotate(0); animation: rotate 10s linear -5s infinite; z-index: 2; } p { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 36px; color: #000; z-index: 10; } @keyframes rotate { 50% { transform: translate(-50%, -73%) rotate(180deg); } 100% { transform: translate(-50%, -70%) rotate(360deg); } }
59
Pure Css Wave Progress bar
By:
pixeldev
My close button 2
.close-button { height: 50px; width: 50px; position: relative; box-sizing: border-box; line-height: 50px; display: inline-block; } .close-button:before, .close-button:after { content: ''; position: absolute; top: 50%; left: 50%; margin-top: -5px; margin-left: -25px; display: block; height: 10px; width: 50px; background-color: #fff; transition: all 0.25s ease-out; transform: rotate(-45deg); } .close-button:after { transform: rotate(-135deg); } .close-button:hover:before, .close-button:hover:after { transform: rotate(0deg); } body { color: #fff; font-family: arial, sans-serif; background-color: #333; text-align: center; }
57
Pure css close button animation
By:
pixeldev
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; }
55
Border Style Value
By:
pixeldev
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; } }
54
ZigZag Border Animation
By:
pixeldev
Previous
1
…
15
16
17
18
19
…
24
Next