Start Coding
All
Accordion
Buttons
Cards
Carousel
Css Animation
Hexagons
Hover
Layout
Loaders
Menu
Navigation
Slider
Tables
Wave
All
*{ margin: 0; box-sizing: border-box; } .box{ height: 80px; width: 100%; border-bottom: 1px solid gray; display: flex; align-items: center; } .item{ height: 60px; width: 60px; border-radius: 50%; background-color: #00005e; animation: move 2s 0s infinite ease-in-out; } section { padding: 10px 20px; width: 100%; background-color: black; } @keyframes move { /* 0%{ transform: translateX(0%); } */ 100%{ transform: translateX(600px); } } .reverse{ animation-direction: reverse; } .alternate{ animation-direction: alternate; } .alternate-reverse{ animation-direction: alternate-reverse; }
30
Simple Slide Animation
By:
pixeldev
When I just noticed, it was love.
html, body { background: linear-gradient(to top right, #9c27b0, #ec407a); height: 100%; margin: 0px; padding: 0px; } h1 { font-family: 'Barrio', cursive; text-align: center; color: #fff; margin:0px; padding-top: 50px; } .centerHeart { display: flex; justify-content: center; align-items: center; } .heart { background: #fff; width: 100px; height: 100px; top: 100px; position: relative; border-radius: 0 0 10px 0; transform: rotate(45deg); animation: pulse .7s infinite alternate; } .heart::before, .heart::after { content: ""; background: #fff; width: 100px; height: 100px; border-radius: 50%; position: absolute; } .heart::before { top:-50px; } .heart::after { left:-50px; } @keyframes pulse { 50% { transform: rotate(45deg) scale(1.2); } }
29
Pulsating heart
By:
pixeldev
body { background: #222; } .box { background-color: #61ab20; margin: 0 auto; width: 500px; height: 300px; position: relative; box-shadow: inset 0 0 3px #000; border-radius: 5px; border: 1px solid #111; overflow: hidden; } .box b { display: block; width: 20px; height: 20px; border-radius: 50%; background-color: #3673cf; box-shadow: inset -5px -5px 5px rgba(0,0,0,.6), 15px 15px 2px rgba(0,0,0,.04); position: absolute; -webkit-animation: moveX 3.05s linear 0s infinite alternate, moveY 3.4s linear 0s infinite alternate; -moz-animation: moveX 3.05s linear 0s infinite alternate, moveY 3.4s linear 0s infinite alternate; -o-animation: moveX 3.05s linear 0s infinite alternate, moveY 3.4s linear 0s infinite alternate; animation: moveX 3.05s linear 0s infinite alternate, moveY 3.4s linear 0s infinite alternate; } @-webkit-keyframes moveX { from { left: 0; } to { left: 480px; } } @-moz-keyframes moveX { from { left: 0; } to { left: 480px; } } @-o-keyframes moveX { from { left: 0; } to { left: 480px; } } @keyframes moveX { from { left: 0; } to { left: 480px; } } @-webkit-keyframes moveY { from { top: 0; } to { top: 280px; } } @-moz-keyframes moveY { from { top: 0; } to { top: 280px; } } @-o-keyframes moveY { from { top: 0; } to { top: 280px; } } @keyframes moveY { from { top: 0; } to { top: 280px; } }
29
CSS Bouncing Ball
By:
pixeldev
* { box-sizing: border-box; } #overlay { background: #f0f0f0; position: fixed; top: 0; bottom: 0; left: 0; right: 0; z-index: 999; } .container { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); } .circle { border-radius: 50%; } .bg { width: 300px; height: 300px; background: #000; border: solid 5px #0088ff; } .outermost { width: 255px; height: 255px; border: solid 10px rgba(0, 0, 0, 0); border-bottom: solid 10px #0088ff; border-left: solid 10px #0088ff; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); animation: spin 5s linear infinite; } .outer { width: 250px; height: 250px; border: solid 5px #0088ff; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); } .middle { width: 215px; height: 215px; border: solid 12px rgba(0, 0, 0, 0); border-bottom: solid 12px #005aa8; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); animation: spin2 3.5s linear infinite reverse; } .middle2 { width: 215px; height: 215px; border: solid 6px rgba(0, 0, 0, 0); border-top: solid 6px #005aa8; border-right: solid 6px #005aa8; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); animation: spin 3.5s linear infinite reverse; } .middle3 { width: 205px; height: 205px; border: solid 30px rgba(0, 0, 0, 0); border-top: solid 30px #0088ff4b; border-right: solid 30px #0088ff4b; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); animation: spin 3.5s linear infinite reverse; } .inner { width: 140px; height: 140px; border: solid 5px #0088ff; border-bottom: solid 5px rgba(0, 0, 0, 0); position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(45deg); animation: spin2 2s linear infinite; } .innermost3 { width: 35px; height: 35px; background: #0088ff; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); } .innermost2 { width: 80px; height: 80px; border: solid 13px #0088ff; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); } .innermost { width: 115px; height: 115px; border: solid 13px #0088ff; border-top: solid 13px rgba(0, 0, 0, 0); border-bottom: solid 13px rgba(0, 0, 0, 0); position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); animation: spin 1s linear infinite reverse; } @keyframes spin { 0% { transform: translate(-50%, -50%) rotate(0deg); } 100% { transform: translate(-50%, -50%) rotate(360deg); } } @keyframes spin2 { 0% { transform: translate(-50%, -50%) rotate(45deg); } 100% { transform: translate(-50%, -50%) rotate(405deg); } }
29
J.A.R.V.I.S Animation
By:
pixeldev
body { min-height: 100vh; margin: 0; display: flex; align-items: center; justify-content: center; background-color: #6a3be4; } .container { position: relative; } .progress { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background-color: #fff; border-style: solid; border-color: #c1edff; border-width: 2px; border-radius: 50px; width: 250px; height: 50px; box-shadow: 0 0 20px rgba(0, 0, 0, .2); animation: progress 3s infinite linear; } .ball { position: absolute; height: 42px; width: 42px; background-color: #02a9f4; border-radius: 50%; top: 4px; left: 4px; animation: ball 1.5s ease-in-out alternate infinite; } @keyframes progress { to {transform: translate(-50%, -50%) rotate(360deg);} } @keyframes ball { to {left: 204px;} }
29
Bouncing ball v3
By:
pixeldev
.wheel{ border: 2px solid black; border-radius: 50%; margin-left: 50px; position: absolute; width: 55vw; height: 55vw; max-height: 500px; max-width: 500px; animation-name: wheel; animation-duration: 10s;/*Time of the animation*/ animation-iteration-count: infinite;/*How many times the animation repeats*/ animation-timing-function: linear;/*How the animation should progress over time*/ } /********LINES********/ .line{ background-color: black; width: 50%; height: 2px; position: absolute; left: 50%; top: 50%; transform-origin: 0% 0%; } /******Line types*********/ .line:nth-of-type(2){ transform: rotate(60deg); } .line:nth-of-type(3){ transform: rotate(120deg); } .line:nth-of-type(4){ transform: rotate(180deg); } .line:nth-of-type(5){ transform: rotate(240deg); } .line:nth-of-type(6){ transform: rotate(300deg); } /********CABINS**********/ .cabin{ background-color: red; width: 20%; height: 20%; position: absolute; border: 2px solid; transform-origin: 50% 0%; animation: cabins 10s ease-in-out infinite;/*animation-name, animation-duration, animation-timing-function, animation-iteration-count*/ } /*******Cabin types*********/ .cabin:nth-of-type(1){ right: -8.5%; top: 50%; } .cabin:nth-of-type(2){ right: 17%; top: 93.5%; } .cabin:nth-of-type(3){ right: 67%; top: 93.5%; } .cabin:nth-of-type(4){ left: -8.5%; top: 50%; } .cabin:nth-of-type(5){ left: 17%; top: 7%; } .cabin:nth-of-type(6){ right: 17%; top: 7%; } /**********K E Y F R A M E S*************/ @keyframes wheel{ 0%{ transform: rotate(0deg); } 100%{ transform: rotate(360deg); } } @keyframes cabins{ 0%{ transform: rotate(0deg); } 25%{ background-color: yellow; } 50%{ background-color: purple; } 75%{ background-color: yellow; } 100%{ transform: rotate(-360deg); } }
29
Ferris Wheel Animation
By:
pixeldev
* { margin: 0; padding: 0; } body { background: #262626; } .center { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); } .down { position: relative; width: 50px; height: 80px; border-radius: 25px; background: transparent; border: 2px solid #fff; overflow: hidden; } .down:before { content: ''; position: absolute; width: 6px; height: 6px; border-radius: 50%; background: #fff; left: 50%; top: 10px; transform: translate(-50%, 0); animation: animate 1s linear infinite; } .down:after { content: ''; position: absolute; width: 6px; height: 15px; border-radius: 50%; background: #fff; left: 50%; top: 5px; transform: translate(-50%, 0); border-radius: 3px; } @keyframes animate { 0% { transform: translate(-50%, 0px); opacity: 0; } 50% { transform: translate(-50%, 40px); opacity: 1; } 100% { transform: translate(-50%, 80px); opacity: 0; } }
28
Mouse Scroll Down Animation
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; }
28
Flickering Animation
By:
pixeldev
#square { width: 100px; height: 100px; background: red; -webkit-animation: super-rainbow 15s infinite alternate linear; -moz-animation: super-rainbow 15s infinite alternate linear; } @-webkit-keyframes super-rainbow { 0% { background: red; } 20% { background: orange; } 40% { background: yellow; } 60% { background: green; } 80% { background: blue; } 100% { background: violet; } } @-moz-keyframes super-rainbow { 0% { background: red; } 20% { background: orange; } 40% { background: yellow; } 60% { background: green; } 80% { background: blue; } 100% { background: violet; } }
28
Rainbow Box
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%; } }
28
Glowing buttons
By:
pixeldev
body{ margin: 0; padding: 0; display: flex; justify-content: center; align-items: center; background: #29a329; } .container{ margin-top: 100px; width: 400px; height: 400px; position: relative; border-radius: 50%; animation: draw 5s linear infinite; } .trace{ position: absolute; width: 390px; height:390px; border-radius: 50%; border: 10px solid #fff; border-right: 10px solid transparent; border-bottom: 10px solid transparent; transform: rotate(-45deg); } .pencil{ position: absolute; height: 100%; width: 82px; /*background: green;*/ left: 41%; } .rubber{ width: 82px; height: 50px; background: violet; border-radius:15px 15px 0 0 ; margin-top: -6px; } .joint{ width: 82px; height: 60px; background: black; } .stick{ height: 58%; background: linear-gradient(to right, #cccc00 27px, #1a75ff 0 55px, #cc0066 20px); } .pencil-top{ height: 64px; background: black; clip-path: polygon(0 0, 50% 100%, 100% 0); } .pencil-tip{ background: #fff; height: 20px; clip-path: polygon(35% 0, 50% 100%, 64.5% 0); margin-top: -19px; } @keyframes draw{ 0%{ transform: rotate(360deg); } 100%{ transform: rotate(0deg); } }
28
Pencil animation
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); }
28
Growing Flower Plant Animation
By:
pixeldev
Previous
1
…
5
6
7
8
9
…
18
Next