Log in
Start Coding
All
Accordion
border
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; }
40
Border Animation
By:
pixeldev
#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;} }
40
Countdown Timer
By:
pixeldev
My Account
item-1
item-2
item-3
About
item-1
item-2
Support
item-1
Log Out
*{ margin: 0; padding: 0; font-family: 'lato'; list-style: none; text-decoration: none; } body{ background-color: #fcdc29; } .wrapper{ position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); } .mainMenu{ width: 250px; display: block; border-radius: 10px; overflow: hidden; } .item{ border-top: 1px solid #ef584a; overflow: hidden; } .btn{ display: block; padding: 15px 20px; background-color: #ff6f61; color: #fff; position: relative; } .btn:before{ content: ''; position: absolute; width: 0; height: 0; border-left: 8px solid transparent; border-right:8px solid transparent; border-top:10px solid #ff6f61; right: 15px; bottom: -10px; z-index: 9; } .btn i { margin-right: 10px; } .subMenu{ background: #273057; overflow: hidden; transition: max-height 0.7s; max-height: 0; } .subMenu a{ display: block; padding: 15px 20px; color: #fff; font-size: 14px; border-bottom: 1px solid #394c7f; position: relative; } .subMenu a:before{ content: ''; opacity: 0; transition: opacity 0.3s; } .subMenu a:hover:before{ content: ''; position: absolute; height: 0; width: 6px; left: 0; top:0; opacity: 1; /* background-color: #d8d824; */ border-top: 24px solid transparent; border-left: 11px solid #fcdc29; border-bottom: 24px solid transparent; } .subMenu a:after{ content: ''; opacity: 0; transition: opacity 0.3s; } .subMenu a:hover:after{ content: ''; position: absolute; height: 0; width: 6px; right: 0px; top:0; opacity: 1; /* background-color: #d8d824; */ border-top: 24px solid transparent; border-right: 11px solid #fcdc29; border-bottom: 24px solid transparent; } .subMenu a:hover{ background: #273057; background: -moz-linear-gradient(top, #273057 0%, #273057 50%, #394c7f 51%, #394c7f 100%); background: -webkit-linear-gradient(top, #273057 0%,#273057 50%,#394c7f 51%,#394c7f 100%); background: linear-gradient(to bottom, #273057 0%,#273057 50%,#394c7f 51%,#394c7f 100%); filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#273057', endColorstr='#394c7f',GradientType=0 ); transition: all 0.3s; border-bottom: 1px solid #394c7f; } .subMenu a:last-child{ border:none; } .item:target .subMenu{ max-height: 10em; } /* footer */ footer { background-color: #222; color: #fff; font-size: 14px; bottom: 0; position: fixed; left: 0; right: 0; text-align: center; z-index: 999; } footer p { margin: 10px 0; font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif; } footer .fa-heart{ color: red; } footer .fa-dev{ color: #fff; } footer .fa-twitter-square{ color:#1da0f1; } footer .fa-instagram{ color: #f0007c; } fotter .fa-linkedin{ color:#0073b1; } footer .fa-codepen{ color:#fff } footer a { color: #3c97bf; text-decoration: none; margin-right:5px; } .youtubeBtn{ position: fixed; left: 50%; transform:translatex(-50%); bottom: 45px; cursor: pointer; transition: all .3s; vertical-align: middle; text-align: center; display: inline-block; } .youtubeBtn i{ font-size:20px; float:left; } .youtubeBtn a{ color:#ff0000; animation: youtubeAnim 1000ms linear infinite; float:right; } .youtubeBtn a:hover{ color:#c9110f; transition:all .3s ease-in-out; text-shadow: none; } .youtubeBtn i:active{ transform:scale(.9); transition:all .3s ease-in-out; } .youtubeBtn span{ font-family: 'Lato'; font-weight: bold; color: #000; display: block; font-size: 12px; float: right; line-height: 20px; padding-left: 5px; } @keyframes youtubeAnim{ 0%,100%{ color:#c9110f; } 50%{ color:#ff0000; } } /* footer */
39
Awesome accordion menu using only HTML & CSS
By:
pixeldev
.back { position: fixed; padding: 0; margin: 0; top: 0; left: 0; width: 100%; height: 100%; background: white; animation-name: backdiv; animation-duration: 1s; animation-iteration-count: infinite; } .heart { position: absolute; margin: auto; top: 0; right: 0; bottom: 0; left: 0; background-color: pink; height: 50px; width: 50px; transform: rotate(-45deg); animation-name: beat; animation-duration: 1s; animation-iteration-count: infinite; } .heart::after { background-color: pink; content: ""; border-radius: 50%; position: absolute; width: 50px; height: 50px; top: 0px; left: 25px; } .heart::before { background-color: pink; content: ""; border-radius: 50%; position: absolute; width: 50px; height: 50px; top: -25px; left: 0px; } @keyframes backdiv { 50% { background: #ffe6f2; } } @keyframes beat { 0% { transform: scale(1) rotate(-45deg); } 50% { transform: scale(0.6) rotate(-45deg); } }
39
Heart animation
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); } }
39
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; } }
38
Mouse Scroll Down 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; } }
38
Rainbow Box
By:
pixeldev
html,body{ height:100%; margin:0; padding:0; } #myDIV { height: 619px; background: -webkit-linear-gradient(#594f4f,#5479b0, #45adab, #9de0ad, #e5fcc2); -webkit-animation: mymove 5s infinite; /* Chrome, Safari, Opera */ animation:mymove 10s fadeIn infinite; } @keyframes mymove { 0% {-webkit-linear-gradient(#99b898,#feceab,#ff847c,#e84a5f, #2a363b); } 16% {background:linear-gradient( #76ad39, #cdff8a, #21ac6b, #36e3cf);} 38%{ -webkit-linear-gradient(#e5fcc2,#9de0ad,#45ada8,#547980, #594f4f); } 54% {background:linear-gradient( #432b58, #734b6f, #6f1bd1, #b042c4);} 70%{background:linear-gradient(#904e95, #e96450, #ef7d1c, #a14aeb); } 86% {background:linear-gradient( #ff5f6d, #ffc371, #f4ab22, #e5dd14);} 92%{background:linear-gradient(#e96450, #f73a1e, #aa9d93, #891056); } 100% {background:linear-gradient(#0ee5cc, #29f2bc, #a32c8d, #d93ccd);}
38
Simple gradient 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;} }
37
Bouncing ball v3
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); } }
36
Pulsating heart
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); } }
36
J.A.R.V.I.S Animation
By:
pixeldev
*{ margin: 0; padding: 0; box-sizing: border-box; } body{ display: flex; justify-content: center; align-items: center; min-height: 100vh; background: #1c1f2f; } .container{ position: relative; -webkit-box-reflect: below 1px linear-gradient(transparent,#0001); } .container .loader{ position: relative; width: 200px; height: 200px; border-radius: 50%; border: 20px solid transparent; border-bottom: 20px solid #06c8f0; border-right: 20px solid #06c8f0; transform: rotate(45deg); animation: animate 4s ease-in-out infinite; } @keyframes animate{ 0%{ transform: rotate(0deg); } 50%{ transform: rotate(90deg); } 100%{ transform: rotate(0deg); } } .container .loader .ball{ position: absolute; top: 0; left: 0; width: 100%; height: 100%; border-radius: 50%; animation: animateBell 4s ease-in-out infinite; } @keyframes animateBell{ 0%{ transform: rotate(0deg); } 50%{ transform: rotate(180deg); } 100%{ transform: rotate(0deg); } } .container .loader .ball:before{ content: ''; position: absolute; bottom: 50%; right: 15px; width: 40px; height: 40px; background: #fff; border-radius: 50%; transform: translateY(-50%); }
36
Perpetual Animation
By:
pixeldev
Previous
1
…
5
6
7
8
9
…
21
Next