Log in
Start Coding
All
Accordion
border
Buttons
Cards
Carousel
Css Animation
Hexagons
Hover
Layout
Loaders
Menu
Navigation
Slider
Tables
Wave
All
body{ background: #333642; } .box-canvas{ position: relative; margin: auto; display: block; margin-top: 8%; margin-bottom: 8%; width: 250px; height:600px; } .cog-one { --cog-color: #898888; --cog-accent-color: #A5A2A2; --cog-inner-size: 30px; --cog-outer-size: 50px; --start-rotation: 360deg; --end-rotation: 0deg; } .cog-two { --cog-color: #A16036; --cog-accent-color: #BC7F60; --cog-inner-size: 15px; --cog-outer-size: 40px; --start-rotation: 16deg; --end-rotation: 376deg; left: 120px; top: 110px; transform: rotate(var(--start-rotation)); } .cog-three { --cog-color: #F1B72E; --cog-accent-color: #FFD100; --cog-inner-size: 20px; --cog-outer-size: 50px; --start-rotation: 300deg; --end-rotation: -60deg; left: 33px; top: 210px; transform: rotate(var(--start-rotation)); } .cog { position: absolute; width: var(--cog-inner-size); height: var(--cog-inner-size); background: transparent; border-radius: 50%; border: var(--cog-outer-size) solid var(--cog-color); animation: 5s cogRotate infinite linear; } @keyframes cogRotate { 0% { transform: rotate(var(--start-rotation)); } 100% { transform: rotate(var(--end-rotation)) } } /* Inner circle accent */ .cog::before { content: ''; position: absolute; width: calc(var(--cog-inner-size) + 10px); height: calc(var(--cog-inner-size) + 10px); border: 3px solid var(--cog-accent-color); border-radius: 50%; left: 50%; top: 50%; transform: translate(-50%, -50%); } /* Outer circle accent */ .cog::after { content: ''; position: absolute; width: calc(var(--cog-inner-size) + var(--cog-outer-size) * 2 - 20px); height: calc(var(--cog-inner-size) + var(--cog-outer-size) * 2 - 20px); border: 3px solid var(--cog-accent-color); border-radius: 50%; left: 50%; top: 50%; transform: translate(-50%, -50%); } .teeth.vertical { position: absolute; left: 50%; transform: translateX(-50%); } /* Top and bottom teeth */ .cog-one .teeth.vertical { background: linear-gradient(to bottom, var(--cog-color), var(--cog-color) 30px, transparent 30px, transparent 120px, var(--cog-color) 120px, var(--cog-color)); height: 170px; width: 25px; top: -70px; } .cog-two .teeth.vertical { width: 15px; height: 125px; top: -55px; background: linear-gradient(to bottom, var(--cog-color), var(--cog-color) 30px, transparent 30px, transparent 80px, var(--cog-color) 80px, var(--cog-color)); } .cog-three .teeth.vertical { background: linear-gradient(to bottom, var(--cog-color), var(--cog-color) 30px, transparent 30px, transparent 120px, var(--cog-color) 120px, var(--cog-color)); height: 160px; width: 25px; top: -70px; } .teeth.vertical::after { content: ''; position: absolute; transform:rotate(45deg); } /* Top right and bottom left teeth */ .cog-one .teeth.vertical::after { background: linear-gradient(to bottom, var(--cog-color), var(--cog-color) 30px, transparent 30px, transparent 120px, var(--cog-color) 120px, var(--cog-color)); height: 170px; width: 25px; } .cog-two .teeth.vertical::after { background: linear-gradient(to bottom, var(--cog-color), var(--cog-color) 30px, transparent 30px, transparent 80px, var(--cog-color) 80px, var(--cog-color)); width: 15px; height: 125px; } .cog-three .teeth.vertical::after { background: linear-gradient(to bottom, var(--cog-color), var(--cog-color) 30px, transparent 30px, transparent 120px, var(--cog-color) 120px, var(--cog-color)); height: 160px; width: 25px; } .teeth.horizontal { position: absolute; transform: translateY(-50%); top: 50%; } /* Left and right teeth */ .cog-one .teeth.horizontal { left: -70px; background: linear-gradient(to right, var(--cog-color), var(--cog-color) 30px, transparent 30px, transparent 120px, var(--cog-color) 120px, var(--cog-color)); height: 25px; width: 170px; } .cog-two .teeth.horizontal { background: linear-gradient(to right, var(--cog-color), var(--cog-color) 30px, transparent 30px, transparent 80px, var(--cog-color) 80px, var(--cog-color)); height: 15px; width: 125px; left: -55px; } .cog-three .teeth.horizontal { left: -70px; background: linear-gradient(to right, var(--cog-color), var(--cog-color) 30px, transparent 30px, transparent 120px, var(--cog-color) 120px, var(--cog-color)); height: 25px; width: 160px; } .teeth.horizontal::after { content: ''; position: absolute; transform: rotate(45deg); } /* Top left and bottom right teeth */ .cog-one .teeth.horizontal::after { background: linear-gradient(to right, var(--cog-color), var(--cog-color) 30px, transparent 30px, transparent 120px, var(--cog-color) 120px, var(--cog-color)); height: 25px; width: 170px; } .cog-two .teeth.horizontal::after { background: linear-gradient(to right, var(--cog-color), var(--cog-color) 30px, transparent 30px, transparent 80px, var(--cog-color) 80px, var(--cog-color)); height: 15px; width: 125px; } .cog-three .teeth.horizontal::after { background: linear-gradient(to right, var(--cog-color), var(--cog-color) 30px, transparent 30px, transparent 120px, var(--cog-color) 120px, var(--cog-color)); height: 25px; width: 160px; }
85
Cogs Animation
By:
pixeldev
body{ background:#133; } .container{ width:200px; height:200px; margin:10px auto; background:; } #flame-1{ height:95px; width:95px; background:#ff7200; position:relative; top:52px; left:2px; margin:30px 70px; border-radius:0% 50% 70% 50%; transform:rotateZ(45deg) scale(1.1); filter: drop-shadow(0 0 10px #d43322); animation:scale-alternate 2s ease-in-out infinite; } #flame-2{ height:75px; width:75px; background:#ef5a00; position:relative; top:162px; left:-20px; margin:30px 70px; border-radius:0% 40% 60% 40%; transform:scaleX(0.8) rotatez(45deg); filter: drop-shadow(0 0 10px #d43322); animation: scale-up 2s ease-in-out infinite; } #flame-3{ height:75px; width:75px; background:#ef5a00; position:relative; top:-60px; left:50px; margin:30px 70px; border-radius:0% 40% 60% 40%; transform:scaleX(0.8) rotatez(45deg); filter: drop-shadow(0 0 10px #d43322); animation: scale-up-3 3s ease-in-out infinite; } .wood{ width:20px; height:120px; background:#563111; border-radius:5px; } #wood-1{ transform:rotate(72deg); position:relative; top:-220px; left:117px; } #wood-2{ transform:rotate(106deg); position:relative; top:-340px; left:115px; } .small-element{ height:20px; width:20px; border-radius:50%; background: #ef5a00; position:relative; top:-130px; left:110px; } #small-element-1{ animation: particle-up 3.5s ease-in-out infinite; } #small-element-2{ animation: particle-up 3s ease-in-out infinite; } .fire-bottom .main-fire { position: relative; top: -190px; left: 90px; width: 55px; height: 55px; background-color: #ff7800; transform: scaleX(0.8) rotate(45deg); border-radius: 0 40% 100% 40%; filter: blur(8px); animation: glow 2s ease-out 0; animation-iteration-count: infinite; animation-fill-mode: both; } @keyframes glow{ 0%,100%{ background:#ef5a00; } 50%{ background:#ff7800; } } @keyframes scale-up-3{ 0%,100%{ transform:scale(1.1) rotatez(45deg); } 40%,90%{ transform:scale(0.96) rotatez(45deg); } 30%,75%{ transform:scale(0.90) rotatez(45deg); } } @keyframes scale-up{ 0%,100%{ transform:scale(1) rotatez(45deg); } 40%,90%{ transform:scale(0.96) rotatez(45deg); } 30%,75%{ transform:scale(0.90) rotatez(45deg); } } @keyframes scale-alternate{ 0%,100%{ transform:scale(1.1) rotatez(45deg); } 30%,90%{ transform:scale(0.90) rotatez(45deg); } 45%,60%{ transform:scale(0.96) rotatez(45deg); } 50%,75%{ transform:scale(0.97) rotatez(45deg); } } @keyframes particle-up{ 0%{ top:-130px; left:110px; } 100%{ position:relative; opacity:0.8; top:-270px; left:145px; transform:scale(0.1); } }
85
Fire Animation
By:
pixeldev
@property --redFillColorStop { syntax: ""; inherits: false; initial-value: 0px; } .loaderWrapper { /* scale: 1; */ --loaderHeight: 600px; --animationDuration: 3.5s; height: var(--loaderHeight); aspect-ratio: 1/3.5; position: relative; animation: shake var(--animationDuration) infinite linear; } .blue { background: hsl(193, 93%, 78%); } .gray { background: hsl(0, 0%, 92%); } .redFill { /* --redFillColorStop: 300px; */ background: linear-gradient(to top, hsl(3, 82%, 51%) var(--redFillColorStop), transparent 0%); animation: tempRise var(--animationDuration) infinite linear; } .partOne { width: 70%; height: 100%; margin-inline: auto; border-radius: 9999px; position: relative; } .partOneChild, .partOneChildChild { position: absolute; inset: 0.5rem; border-radius: inherit; } .partTwo { width: 100%; aspect-ratio: 1; border-radius: 50%; position: absolute; bottom: 0; } .partTwoChild, .partTwoChildChild { position: absolute; inset: 0.5rem; border-radius: inherit; } .partOneChild { z-index: 1; } .partTwoChildChild { z-index: 1; } .partOneChildChild, .partTwoChildChild { overflow: hidden; } .partOneChildChild::before, .partTwoChildChild::before { content: ''; position: absolute; inset: 0; border-radius: inherit; transform: translateX(-1.5rem) translateY(-0.6875rem); background: hsl(0 0% 92% / 0.25); } .partTwoChildChild::before { translate: 0.25rem 0; } .shine { position: absolute; width: 10%; aspect-ratio: 1/2.75; left: 10%; top: 7%; border-radius: inherit; background: white; box-shadow: 0 35px white, 0 45px white, 0 55px white; } .measurements { position: absolute; width: 25%; aspect-ratio: 3.5/1; border-radius: inherit; top: 28%; left: 5%; background: white; opacity: 0.75; box-shadow: 0 1rem white, 0 2rem white, 0 3rem white, 1rem 3rem white, 0 4rem white, 0 5rem white, 0 6rem white, 0 7rem white, 1rem 7rem white, 0 8rem white, 0 9rem white, 0 10rem white, 0 11rem white, 1rem 11rem white, 0 12rem white, 0 13rem white, 0 14rem white, 0 15rem white, 1rem 15rem white; } @keyframes tempRise { 0%, 100% { --redFillColorStop: 0px; } 50% { --redFillColorStop: calc(var(--loaderHeight) - 2rem); } } @keyframes shake { 0%, 100%, 10%, 90% { transform: translateX(0rem); } 20%, 30%, 38%, 44%, 48%, 50%, 54%, 60%, 68%, 78% { transform: translateX(-0.5rem); } 25%, 34%, 41%, 46%, 49%, 52%, 57%, 64%, 73%, 84% { transform: translateX(0.5rem); } } /* Ignore */ * { margin: 0; box-sizing: border-box; /* outline: solid hsl(0 0% 10% / 0.5); */ } body { min-height:100svh; display: grid; place-items: center; background: #141719; }
84
Thermometer Loader
By:
pixeldev
I'm a bouncing text
@keyframes bounce { 0%, 30%, 50%, 100% { transform: translateY(0); } 60%, 80% { transform: translateY(-50%) } 20%, 40% { transform: translateY(-100%); } } .container-div { width: 200px; text-align: center; background-color: green; padding: 5px; margin: 0 auto; } .p-bounce { color: white; animation-name: bounce; animation-duration: 1s; animation-iteration-count: infinite; }
84
Bouncing text
By:
pixeldev
Front
Back!
@import 'https://fonts.googleapis.com/css?family=Lily+Script+One'; body { background: #eee; font-family: 'Lily Script One'; } .card { position: absolute; top: 50%; left: 50%; width: 300px; height: 300px; margin: -150px; float: left; perspective: 500px; } .content { position: absolute; width: 100%; height: 100%; box-shadow: 0 0 15px rgba(0,0,0,0.1); transition: transform 1s; transform-style: preserve-3d; } .card:hover .content { transform: rotateY( 180deg ) ; transition: transform 0.5s; } .front, .back { position: absolute; height: 100%; width: 100%; background: white; line-height: 300px; color: #03446A; text-align: center; font-size: 60px; border-radius: 5px; backface-visibility: hidden; } .back { background: #03446A; color: white; transform: rotateY( 180deg ); }
83
Pure CSS Card Flip
By:
pixeldev
<!-- -->
Hexagonal Grid by Codin @ Codesmite.com
body { background: #282828; /* #492540/* #282828; */ } #grid { position: relative; width: 60%; margin: 0 auto; padding: 0; /* Clears unordered list default of 40px */ } .clear:after { content: ""; display: block; clear: both; } #grid li { list-style-type: none; position: relative; float: left; width: 27.85714285714286%; padding: 0 0 32.16760145166612% 0; -o-transform: rotate(-60deg) skewY(30deg); -moz-transform: rotate(-60deg) skewY(30deg); -webkit-transform: rotate(-60deg) skewY(30deg); -ms-transform: rotate(-60deg) skewY(30deg); transform: rotate(-60deg) skewY(30deg); background: fd005f; visibility: hidden; overflow: hidden; } #grid li .hexagon { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: #fdbf00; -o-transform: skewY(-30deg) rotate(60deg); -moz-transform: skewY(-30deg) rotate(60deg); -webkit-transform: skewY(-30deg) rotate(60deg); -ms-transform: skewY(-30deg) rotate(60deg); transform: skewY(-30deg) rotate(60deg); } #grid li * { visibility: visible; } #grid li:nth-child(3n+2) { margin: 0 1%; } #grid li:nth-child(6n+4), #grid li:nth-child(6n+5), #grid li:nth-child(6n+6) { margin-top: -6.9285714285%; margin-bottom: -6.9285714285%; -o-transform: translateX(50%) rotate(-60deg) skewY(30deg); -moz-transform: translateX(50%) rotate(-60deg) skewY(30deg); -webkit-transform: translateX(50%) rotate(-60deg) skewY(30deg); -ms-transform: translateX(50%) rotate(-60deg) skewY(30deg); transform: translateX(50%) rotate(-60deg) skewY(30deg); } #grid li:nth-child(6n+4) { margin-left: 0.5%; }
83
Pure CSS Hexagonal Grid
By:
pixeldev
Read More
.container { position: absolute; float: none; top: 50%; left: 50%; text-align: center; } .cta { width: 50px; height: 50px; border-radius: 50px; border: 2px solid red; background-color: red; color: #fff; transition: width 0.7s; } .cta:hover { width: 180px; transition: width 0.7s; } .cta i { opacity: 1; transition: opacity 0.5s } .cta:hover i { opacity: 0; transition: opacity 0.5s } .cta .button-text { opacity: 0; transition: opacity .5s; position: absolute; width: 100%; left: 0; } .cta:hover .button-text { opacity: 1; transition: opacity 0.5s }
82
Expanding Pure CSS Button
By:
pixeldev
body{ background: #1d1e22; } .container{ width: 20px; position: relative; margin: auto; top: 20vh; } .ball{ --radius: calc(200px + var(--n)*10px); top: var(--radius); transform-origin: 0 calc(-1 * var(--radius)); position: absolute; width: 20px; height: 20px; border-radius: 10px; border: 1px solid #000; background: #ffad4a; animation: oscillation calc(60s / (50 + var(--n))) ease-in-out infinite alternate; } .ball::before{ content: ""; position: absolute; top: calc(-1*var(--radius)); left: 50%; transform: translate(-50%); width: 1px; height: var(--radius); background: black; } .ball1{--n:1}.ball2{--n:2}.ball3{--n:3}.ball4{--n:4}.ball5{--n:5}.ball6{--n:6}.ball7{--n:7}.ball8{--n:8}.ball9{--n:9}.ball10{--n:10}.ball11{--n:11}.ball12{--n:12}.ball13{--n:13}.ball14{--n:14}.ball15{--n:15} @keyframes oscillation { from { transform: rotate(20deg); } to{ transform: rotate(-20deg); } }
81
Pendulum Wave
By:
pixeldev
Loading...
@keyframes flickerAnimation { 0% { opacity:1; } 50% { opacity:0; } 100% { opacity:1; } } @-o-keyframes flickerAnimation{ 0% { opacity:1; } 50% { opacity:0; } 100% { opacity:1; } } @-moz-keyframes flickerAnimation{ 0% { opacity:1; } 50% { opacity:0; } 100% { opacity:1; } } @-webkit-keyframes flickerAnimation{ 0% { opacity:1; } 50% { opacity:0; } 100% { opacity:1; } } .animate-flicker { -webkit-animation: flickerAnimation .5s infinite; -moz-animation: flickerAnimation .5s infinite; -o-animation: flickerAnimation .5s infinite; animation: flickerAnimation .5s infinite; }
81
Flickering Animation
By:
pixeldev
support CSS
html, body { font-family: 'Open Sans'; width: 100%; height: 100vh; margin: 0; padding: 0; display: flex; justify-content: center; align-items: center; background: #1E1F26; } #button { margin: 4%; padding: 1% 4%; border-radius: 1px; background: blck; color: white; font-size: 16px; border: 1px solid white; cursor: pointer; } .css-button { animation: inout 1s ease infinite; } .gsap-button { border: 1px solid #82c303 !important; } @keyframes inout { 0% { -webkit-box-shadow: 0 0 0 0px rgba(255,255,255,0.4); -moz-box-shadow: 0 0 0 0px rgba(255,255,255,0.4); box-shadow: 0 0 0 0px rgba(255,255,255,0.4); } 100% { -webkit-box-shadow: 0 0 0 20px rgba(255,255,255,0); -moz-box-shadow: 0 0 0 20px rgba(255,255,255,0); box-shadow: 0 0 0 20px rgba(255,255,255,0); } }
81
Button – Shadow Pulse Animation
By:
pixeldev
Neon button
Neon button
Neon button
*{ margin: 0; padding: 0; box-sizing: border-box; } body{ display: flex; justify-content: center; align-items: center; height: 100vh; background: #050801; font-family: 'Raleway', sans-serif; font-weight: bold; } a{ position: relative; display: inline-block; padding: 25px 30px; margin: 40px 0; color: #03e9f4; text-decoration: none; text-transform: uppercase; transition: 0.5s; letter-spacing: 4px; overflow: hidden; margin-right: 50px; } a:hover{ background: #03e9f4; color: #050801; box-shadow: 0 0 5px #03e9f4, 0 0 25px #03e9f4, 0 0 50px #03e9f4, 0 0 200px #03e9f4; -webkit-box-reflect:below 1px linear-gradient(transparent, #0005); } a:nth-child(1){ filter: hue-rotate(270deg); } a:nth-child(2){ filter: hue-rotate(110deg); } a span{ position: absolute; display: block; } a span:nth-child(1){ top: 0; left: 0; width: 100%; height: 2px; background: linear-gradient(90deg,transparent,#03e9f4); animation: animate1 1s linear infinite; } @keyframes animate1{ 0%{ left: -100%; } 50%,100%{ left: 100%; } } a span:nth-child(2){ top: -100%; right: 0; width: 2px; height: 100%; background: linear-gradient(180deg,transparent,#03e9f4); animation: animate2 1s linear infinite; animation-delay: 0.25s; } @keyframes animate2{ 0%{ top: -100%; } 50%,100%{ top: 100%; } } a span:nth-child(3){ bottom: 0; right: 0; width: 100%; height: 2px; background: linear-gradient(270deg,transparent,#03e9f4); animation: animate3 1s linear infinite; animation-delay: 0.50s; } @keyframes animate3{ 0%{ right: -100%; } 50%,100%{ right: 100%; } } a span:nth-child(4){ bottom: -100%; left: 0; width: 2px; height: 100%; background: linear-gradient(360deg,transparent,#03e9f4); animation: animate4 1s linear infinite; animation-delay: 0.75s; } @keyframes animate4{ 0%{ bottom: -100%; } 50%,100%{ bottom: 100%; } }
81
Glowing buttons
By:
pixeldev
*{ padding: 0; margin: 0; font-family: 'Quicksand', sans-serif; } body{ background:#40739e; } .container{ position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 600px; height: 5px; overflow: hidden; } .container span{ position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: #fff; display: inline-block; animation: animate 10s infinite linear; } @keyframes animate{ 0%{ transform: translateX(-100%); } 50%{ transform: translateX(100%); } 100%{ transform: translateX(-100%); } }
81
Line Loading Animation
By:
pixeldev
Previous
1
…
5
6
7
8
9
…
24
Next