Start Coding
All
Accordion
Buttons
Cards
Carousel
Css Animation
Hexagons
Hover
Layout
Loaders
Menu
Navigation
Slider
Tables
Wave
All
CSS
Border animation ?
Hover me to find out !
=>
CSS Border animation ?
Hover me to find out !
body { text-align:center; } header { display:inline-table; vertical-align:middle; margin:1em ; padding:0.5em 1em; background: linear-gradient( to right, transparent 20%, turquoise 20%, turquoise 80%, transparent 80% ) bottom no-repeat, linear-gradient( to top, turquoise 0%, turquoise 300% ) right 300% no-repeat, linear-gradient( to right, turquoise 0%, turquoise 100% ) 9000% 0 no-repeat, linear-gradient( to top, turquoise 0%, turquoise 300% ) left 9000% no-repeat ; transition:background-size 2s ease-in; } header, header ~ header:hover { background-size: 100% 8px, 3px 0, 3px 3px, 3px 0; } header:hover, header ~ header { background-size: 200% 3px , 3px 100%, 100% 3px, 3px 100%; transition:background-size 2s ease-in-out; } span { font-size:4em; display:inline-block; vertical-align:middle; background:turquoise; border-radius:100%; box-shadow:0 0 5px; }
28
Border Animation
By:
rald_dev
@keyframes fluid { 0% { border-radius: 100% 10% 100% 100%; } 50% { border-radius: 50% 50% 50% 100%; } 100% { border-radius: 100% 10% 100% 100%; } } body { background: linear-gradient(to top,#F5F5FF,transparent); } div { position: absolute; top: 50%; right: 50%; transform: translate(50%,-50%) rotate(-45deg); height: 150px; width: 150px; background: linear-gradient(45deg,#0300FF,#00D2FF); box-shadow: 5px 10px 50px rgba(0,0,0,.3); animation: fluid 3s infinite ease-in-out; }
28
Fluid Animation
By:
rald_dev
R
AI
N
B
O
W
R
O
C
K
S
.center { text-align:center; } #boxWrapper { width: 100%; height: 300px; } .box { width: 80px; height: 80px; margin: 10px; display: inline-block; font-size: 60px; line-height: 80px; color: white; text-align: center; border:1px solid white; -webkit-font-smoothing: antialiased; -webkit-transform: translateZ(0.1px); -moz-transform: translateZ(0.1px); -o-transform: translateZ(0.1px); -ms-transform: translateZ(0.1px); transform: translateZ(0.1px); -webkit-animation: hue-animation 7s 0s linear infinite; animation: hue-animation 7s 0s linear infinite; } .animated { -webkit-animation-fill-mode: both; -moz-animation-fill-mode: both; -ms-animation-fill-mode: both; -o-animation-fill-mode: both; animation-fill-mode: both; -webkit-animation-duration: 1s; -moz-animation-duration: 1s; -ms-animation-duration: 1s; -o-animation-duration: 1s; animation-duration: 1s; } @-webkit-keyframes introAnimation { 0% { -webkit-transform: scale(0) rotate(-180deg); opacity: 0; } 50% { -webkit-transform: scale(1) rotate(0deg); opacity: 1; } 70% { -webkit-transform: scale(1) rotate(0deg); } 100% { -webkit-transform: scale(0.8) rotate(0deg); } } @-moz-keyframes introAnimation { 0% { -moz-transform: scale(0) rotate(-180deg); opacity: 0; } 50% { -moz-transform: scale(1) rotate(0deg); opacity: 1; } 70% { -moz-transform: scale(1) rotate(0deg); } 100% { -moz-transform: scale(0.8) rotate(0deg); } } @-o-keyframes introAnimation { 0% { -o-transform: scale(0) rotate(-180deg); opacity: 0; } 50% { -o-transform: scale(1) rotate(0deg); opacity: 1; } 70% { -o-transform: scale(1) rotate(0deg); } 100% { -o-transform: scale(0.8) rotate(0deg); } } @keyframes introAnimation { 00% { transform: scale(0) rotate(-180deg); opacity: 0; } 50% { transform: scale(1) rotate(0deg); opacity: 1; } 70% { transform: scale(1) rotate(0deg); } 100% { transform: scale(0.8) rotate(0deg); } } .introAnimation { -webkit-backface-visibility: visible !important; -webkit-animation-name: introAnimation; -moz-backface-visibility: visible !important; -moz-animation-name: introAnimation; -o-backface-visibility: visible !important; -o-animation-name: introAnimation; backface-visibility: visible !important; animation-name: introAnimation; } .two { -webkit-animation-delay: 0.5s; -moz-animation-delay: 0.5s; -ms-animation-delay: 0.5s; -o-animation-delay: 0.5s; animation-delay: 0.5s; } .three { -webkit-animation-delay: 1.0s; -moz-animation-delay: 1.0s; -ms-animation-delay: 1.0s; -o-animation-delay: 1.0s; animation-delay: 1.0s; } .four { -webkit-animation-delay: 1.5s; -moz-animation-delay: 1.5s; -ms-animation-delay: 1.5s; -o-animation-delay: 1.5s; animation-delay: 1.5s; } .five { -webkit-animation-delay: 2.0s; -moz-animation-delay: 2.0s; -ms-animation-delay: 2.0s; -o-animation-delay: 2.0s; animation-delay: 2.0s; } .six { -webkit-animation-delay: 2.5s; -moz-animation-delay: 2.5s; -ms-animation-delay: 2.5s; -o-animation-delay: 2.5s; animation-delay: 2.5s; } .seven { -webkit-animation-delay: 3.0s; -moz-animation-delay: 3.0s; -ms-animation-delay: 3.0s; -o-animation-delay: 3.0s; animation-delay: 3.0s; } .eight { -webkit-animation-delay: 3.5s; -moz-animation-delay: 3.5s; -ms-animation-delay: 3.5s; -o-animation-delay: 3.5s; animation-delay: 3.5s; } .nine { -webkit-animation-delay: 4.0s; -moz-animation-delay: 4.0s; -ms-animation-delay: 4.0s; -o-animation-delay: 4.0s; animation-delay: 4.0s; } .ten { -webkit-animation-delay: 4.5s; -moz-animation-delay: 4.5s; -ms-animation-delay: 4.5s; -o-animation-delay: 4.5s; animation-delay: 4.5s; } .eleven { -webkit-animation-delay: 5.0s; -moz-animation-delay: 5.0s; -ms-animation-delay: 5.0s; -o-animation-delay: 5.0s; animation-delay: 5.0s; } body{ padding: 0; margin: 0; overflow: hidden; } #boxWrapper{ width: 100%; height: 100vmax; background: #efb73e; opacity: .8; -webkit-animation: hue-animation 7s 0s linear infinite; animation: hue-animation 7s 0s linear infinite; } @keyframes hue-animation { 0% { -webkit-filter: hue-rotate(0deg); filter: hue-rotate(0deg); } 100% { -webkit-filter: hue-rotate(360deg); filter: hue-rotate(360deg); } } @-webkit-keyframes hue-animation { 0% { -webkit-filter: hue-rotate(0deg); filter: hue-rotate(0deg); } 100% { -webkit-filter: hue-rotate(360deg); filter: hue-rotate(360deg); } }
28
Rainbow Background
By:
rald_dev
#backbar{ width:100%; height:2em; background-color: grey; opacity: 0.3; /*gives a nice hue*/ margin-top: 2em; } #progress{ width:100%; height:2em; background-color: green; -webkit-animation-name: dwindle; -webkit-animation-duration: 15s; -webkit-animation-iteration-count: infinite; -webkit-animation-timing-function: linear; animation-name: dwindle; animation-duration: 15s; animation-iteration-count: infinite; animation-timing-function: linear; } @-webkit-keyframes dwindle { 0% {width: 100%; background-color: green} 50% {background-color: blue;} 90% {background-color: red;} 95% {width:0%;} 100% {width: 0%; background-color: red;} } @keyframes dwindle { 0% {width: 100%; background-color: green} 50% {background-color: blue;} 90% {background-color: red;} 95% {width:0%;} 100% {width: 0%; background-color: red;} }
27
Countdown Timer
By:
rald_dev
body { height: 100vh; } .cont { position: relative; top: 50%; left: 50%; transform: translate(-50%,-50%); display: inline-block; } .dots { width: 15px; height: 15px; border-radius: 50%; position: absolute; transform: translate(0px,0px); } .d1 { transform: rotate(0deg) translateX(80px); background: #ff7171; animation: orbit1 2.5s ease-in-out infinite alternate; z-index: 10; } .d2 { transform: rotate(-90deg) translateX(80px); background: #377b37; animation: orbit2 2.5s ease-in-out infinite alternate; z-index: 8; } .d3 { transform: rotate(180deg) translateX(80px); background: #afaf29; animation: orbit3 2.5s ease-in-out infinite alternate; z-index: 6; } .d4 { transform: rotate(90deg) translateX(80px); background: #7a5afb; animation: orbit4 2.5s ease-in-out infinite alternate; z-index: 4; } .d5 { transform: rotate(135deg) translateX(80px); background: #e62575; animation: orbit5 2.5s ease-in-out infinite alternate; z-index: 5; } .d6 { transform: rotate(225deg) translateX(80px); background: #967e77; animation: orbit6 2.5s ease-in-out infinite alternate; z-index: 7; } .d7 { transform: rotate(315deg) translateX(80px); background: #d432c7; animation: orbit7 2.5s ease-in-out infinite alternate; z-index: 9; } .d8 { transform: rotate(405deg) translateX(80px); background: #00bcd4; animation: orbit8 2.5s ease-in-out infinite alternate; z-index: 3; } @keyframes orbit1 { 0% { transform: rotate(0deg) translateX(80px) scale(1,1); } 100% { transform: rotate(360deg) translateX(0px) scale(1.2,1.2); } } @keyframes orbit2 { 0% { transform: rotate(-90deg) translateX(80px) scale(1,1); } 100% { transform: rotate(270deg) translateX(0px) scale(1.6,1.6); } } @keyframes orbit3 { 0% { transform: rotate(180deg) translateX(80px) scale(1,1); } 100% { transform: rotate(540deg) translateX(0px) scale(2,2); } } @keyframes orbit4 { 0% { transform: rotate(90deg) translateX(80px) scale(1,1); } 100% { transform: rotate(450deg) translateX(0px) scale(2.4,2.4); } } @keyframes orbit5 { 0% { transform: rotate(135deg) translateX(80px) scale(1,1); } 100% { transform: rotate(495deg) translateX(0px) scale(2.2,2.2); } } @keyframes orbit6 { 0% { transform: rotate(225deg) translateX(80px) scale(1,1); } 100% { transform: rotate(585deg) translateX(0px) scale(1.8,1.8); } } @keyframes orbit7 { 0% { transform: rotate(315deg) translateX(80px) scale(1,1); } 100% { transform: rotate(675deg) translateX(0px) scale(1.4,1.4); } } @keyframes orbit8 { 0% { transform: rotate(405deg) translateX(80px) scale(1,1); } 100% { transform: rotate(765deg) translateX(0px) scale(2.6,2.6); } }
27
Circle(dots) css animation loader
By:
rald_dev
body { height: 100vh; overflow-x: hidden; background: -webkit-gradient( linear, left top, left bottom, from(#333), to(#000) ); background: linear-gradient(to bottom, #333, #000); -webkit-transform-style: preserve-3d; transform-style: preserve-3d; position: relative; } .square { height: 150px; width: 150px; position: absolute; -webkit-transform-style: preserve-3d; transform-style: preserve-3d; -webkit-transform: translateX(-50%) rotateX(35deg) rotateY(0deg); transform: translateX(-50%) rotateX(35deg) rotateY(0deg); bottom: 100px; left: 50%; -webkit-animation: rotate 4s infinite linear; animation: rotate 4s infinite linear; } @-webkit-keyframes rotate { 100% { -webkit-transform: translateX(-50%) rotateX(35deg) rotateY(360deg); transform: translateX(-50%) rotateX(35deg) rotateY(360deg); } } @keyframes rotate { 100% { -webkit-transform: translateX(-50%) rotateX(35deg) rotateY(360deg); transform: translateX(-50%) rotateX(35deg) rotateY(360deg); } } .side { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 255, 0.2); -webkit-transform-style: preserve-3d; transform-style: preserve-3d; } .side-1, .side-2 { -webkit-transform: rotateY(90deg); transform: rotateY(90deg); background: rgba(0, 0, 255, 0.4); } .side-3, .side-4 { -webkit-transform: rotateX(90deg); transform: rotateX(90deg); background: rgba(0, 0, 255, 0.6); } .side-1 { left: 50%; } .side-2 { left: -50%; } .side-3 { top: 50%; } .side-4 { top: -50%; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; -webkit-box-align: center; -ms-flex-align: center; align-items: center; } .side-5 { -webkit-transform: translateZ(-75px); transform: translateZ(-75px); } .side-6 { -webkit-transform: translateZ(75px); transform: translateZ(75px); } .ball { position: absolute; height: 50px; width: 50px; background: -webkit-gradient( linear, left bottom, right top, from(#111), color-stop(#555), to(#ccc) ); background: linear-gradient(to right top, #111, #555, #ccc); left: 50%; bottom: 180px; -webkit-transform: translate(-50%, -100%); transform: translate(-50%, -100%); border-radius: 50%; -webkit-animation: bounce 1.4s infinite linear; animation: bounce 1.4s infinite linear; } @-webkit-keyframes bounce { 50% { -webkit-transform: translate(-50%, -300%); transform: translate(-50%, -300%); } 100% { -webkit-transform: translate(-50%, -100%); transform: translate(-50%, -100%); } } @keyframes bounce { 50% { -webkit-transform: translate(-50%, -300%); transform: translate(-50%, -300%); } 100% { -webkit-transform: translate(-50%, -100%); transform: translate(-50%, -100%); } } .shadow { height: 80px; width: 80px; background: radial-gradient(transparent, #000); -webkit-box-shadow: 10px 10px 20px #000, -10px -10px 20px #000; box-shadow: 10px 10px 20px #000, -10px -10px 20px #000; -webkit-filter: blur(10px); filter: blur(10px); border-radius: 50%; -webkit-animation: show 1.4s infinite linear; animation: show 1.4s infinite linear; opacity: 1; } @-webkit-keyframes show { 50% { -webkit-box-shadow: 2px 2px 6px #000, -2px -2px 6px #000; box-shadow: 2px 2px 6px #000, -2px -2px 6px #000; height: 40px; width: 40px; } } @keyframes show { 50% { -webkit-box-shadow: 2px 2px 6px #000, -2px -2px 6px #000; box-shadow: 2px 2px 6px #000, -2px -2px 6px #000; height: 40px; width: 40px; } }
26
3d box-ball animation
By:
rald_dev
100%
spent
.wrapper { margin: 50px; width: 300px; height: 300px; overflow: hidden; position:relative } .right { border: #3f85a3 solid 15px; height: 125px; width: 125px; border-radius:120px; border-top-color: transparent; border-left-color: transparent; position: absolute; transform: rotate(-45deg); animation: rota2 1000ms linear; -moz-animation: rota2 1000ms linear; -o-animation: rota2 1000ms linear; -webkit-animation: rota2 1000ms linear; } @keyframes rota2 { from{ transform:rotate(-225deg);} to { transform: rotate(-45deg);} } @-o-keyframes rota2 { from{ transform:rotate(-225deg);} to { transform: rotate(-45deg);} } @-moz-keyframes rota2 { from{ transform:rotate(-225deg);} to { transform: rotate(-45deg);} } @-webkit-keyframes rota2 { from{ transform:rotate(-225deg);} to { transform: rotate(-45deg);} } .left { border: #3f85a3 solid 15px; height: 125px; width: 125px; border-radius:120px; border-bottom-color: transparent; border-right-color: transparent; position: absolute; transform: rotate(315deg); animation: rota 2000ms linear; -o-animation: rota 2000ms linear; -moz-animation: rota 2000ms linear; -webkit-animation: rota 2000ms linear; } @keyframes rota { from {transform: rotate(-45deg);} to { transform: rotate(315deg);} } @-o-keyframes rota { from {transform: rotate(-45deg);} to { transform: rotate(315deg);} } @moz-keyframes rota { from {transform: rotate(-45deg);} to { transform: rotate(315deg);} } @-webkit-keyframes rota { from {transform: rotate(-45deg);} to { transform: rotate(315deg);} } .middle { color: #0987bc; font-size: 18px; display: flex; align-items: center; justify-content: center; flex-direction: column; width: 130px; height: 130px; left: 15px; top: 15px; border-radius: 150px; position: relative; z-index: 4; } .popover { background: white; width: 80px; height: 162px; position:absolute; top: -3px; left: -3px; opacity:0; z-index:2; animation: popover 1000ms linear; -moz-animation: popover 1000ms linear; -o-animation: popover 1000ms linear; -webkit-animation: popover 1000ms linear; } @keyframes popover { 0% {opacity: 1;} 99%{opacity:1;} 100% {opacity:0;} } @-o-keyframes popover { 0% {opacity: 1;} 99%{opacity:1;} 100% {opacity:0;} } @-moz-keyframes popover { 0% {opacity: 1;} 99%{opacity:1;} 100% {opacity:0;} } @-webkit-keyframes popover { 0% {opacity: 1;} 99%{opacity:1;} 100% {opacity:0;} }
26
Circle Animation Loader
By:
rald_dev
Hello World
Hello World
Hello World
Hello World
*{ box-sizing: border-box; margin: 0; padding: 0; } body{ display: flex; flex-direction: column; justify-content: center; align-items: center; height: 100vh; background: #222; } .btn{ --light-color: rgb(69, 252, 151); margin: 1rem; position:relative; appearance: none; border: none; color: rgb(209, 208, 208); padding: 1rem 2rem; background-color: #3e3e3e; z-index: 2; overflow: hidden; border-radius: .4rem; box-shadow: .5rem .5rem .5rem #0005; transition: .3s; } .btn::before{ position: absolute; width: 10rem; height: 10rem; background: rgb(2,0,36); background: linear-gradient(90deg, transparent 0%, transparent 14%, transparent 35%, var(--light-color) 80%, var(--light-color) 100%); content: ''; top: 50%; left: 50%; transform-origin: bottom center ; transform: translate(-50%, -100%) ; z-index: -3; border-radius: 100%; animation: button_light_effect 5s linear infinite; } .btn_orange::before{animation-delay:.1s;} .btn_blue::before{animation-delay:.3s;} .btn_yellow::before{animation-delay:.6s;} .btn::after{ position: absolute; width: calc(100% - .3rem); height: calc(100% - .3rem); background-color: #3e3e3e; content: ''; top: 50%; left: 50%; border-radius: .4rem; transform: translate(-50%, -50%); z-index: -3; transition: 1s ; } .btn:hover{ transform:scale(1.2); } .btn:hover, .btn:hover::after { cursor: pointer; background: #55606a; } .btn:hover::before{ animation-duration: .5s; } .btn_orange{--light-color:rgb(255, 166, 0);} .btn_blue{--light-color:rgb(0, 183, 255);} .btn_yellow{--light-color:rgb(235, 255, 16);} .btn_pink{--light-color:rgb(255, 0, 200);} @keyframes button_light_effect { 0%{transform: translate(-50%, -100%) rotate(-180deg);} 100%{transform: translate(-50%, -100%) rotate(180deg);} }
25
Animated Button
By:
rald_dev
* { margin: 0; padding: 0; box-sizing: border-box; } body { background: #ffffff; align-items: center; min-height: 100vh; display: flex; } .box-outer { overflow: hidden; margin: 50px auto; width: 200px; height: 200px; } .main_box { width: 200px; height: 200px; position: relative; background: #f34c4c; border: 5px solid #ffffff; } .bar { position: absolute; width: 50px; height: 5px; background: rgb(0, 0, 0); transition: all 1s linear; animation-duration: 1s; animation-fill-mode: both; animation-iteration-count: infinite; } .bar.delay { animation-delay: 0.5s; } .top { top: -5px; left: -5px; } .right { top: 18px; right: -28px; transform: rotate(90deg); } .bottom { bottom: -5px; left: -5px; } .left { top: 18px; left: -28px; transform: rotate(90deg); } @-webkit-keyframes h-move { 0% { left: -5px; } 100% { left: 200px; } } @keyframes h-move { 0% { left: -5px; } 100% { left: 200px; } } .top, .bottom { animation-name: h-move; } @-webkit-keyframes v-move { 0% { top: -5px; } 100% { top:228px; } } @keyframes v-move { 0% { top: -5px; } 100% { top:228px; } } .right, .left { animation-name: v-move; }
25
Box border animation
By:
rald_dev
body{background:#ECF0F1} .load{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%); /*change these sizes to fit into your project*/ width:100px; height:100px; } .load hr{border:0;margin:0;width:40%;height:40%;position:absolute;border-radius:50%;animation:spin 2s ease infinite} .load :first-child{background:#19A68C;animation-delay:-1.5s} .load :nth-child(2){background:#F63D3A;animation-delay:-1s} .load :nth-child(3){background:#FDA543;animation-delay:-0.5s} .load :last-child{background:#193B48} @keyframes spin{ 0%,100%{transform:translate(0)} 25%{transform:translate(160%)} 50%{transform:translate(160%, 160%)} 75%{transform:translate(0, 160%)} }
25
Flat Preloader
By:
rald_dev
*{ 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; }
25
Simple Slide Animation
By:
rald_dev
.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); } }
25
Ferris Wheel Animation
By:
rald_dev
Previous
1
…
4
5
6
7
8
…
16
Next