Start Coding
All
Accordion
Buttons
Cards
Carousel
Css Animation
Hexagons
Hover
Layout
Loaders
Menu
Navigation
Slider
Tables
Wave
All
* { padding: 0; margin: 0; box-sizing: border-box; } .container { height: 100vh; width: 100vw; overflow: hidden; background: #485563; background: -webkit-linear-gradient(to right, #29323c, #485563); background: linear-gradient(to right, #29323c, #485563); display: flex; justify-content: center; align-items: center; } .menu_icon { width: 55px; height: 55px; margin: auto; z-index: 10; cursor: pointer; position: relative; display: flex; align-items: center; padding: 5px 0; } .menu_icon span { position: absolute; display: block; height: 5px; width: 60px; background-color: #fff; transform: rotate(0); transition: all 200ms cubic-bezier(0.68, -0.55, 0.265, 1.55); } span.one { top: 0px; width: 40px; } span.two { top: 25px; width: 30px; } span.three { top: 50px; width: 50px; } .menu_icon:hover .one { animation: width 2s ease infinite; } .menu_icon:hover .two { animation: width1 2s ease infinite; } .menu_icon:hover .three { animation: width2 2s ease infinite; } @keyframes width { 0% { width: 30px; } 25% { width: 60px; } 50% { width: 20px; } 75% { width: 60px; } 100% { width: 30px; } } @keyframes width1 { 0% { width: 40px; } 25% { width: 20px; } 50% { width: 60px; } 75% { width: 20px; } 100% { width: 40px; } } @keyframes width2 { 0% { width: 50px; } 25% { width: 10px; } 50% { width: 40px; } 75% { width: 60px; } 100% { width: 50px; } } .clicked .one { transform: translateY(25px) rotate(45deg); width: 70px; } .clicked .two { transform: translateX(-100vw); opacity: 0; width: 70px; } .clicked .three { transform: translateY(-25px) rotate(-45deg); width: 70px; } .clicked.menu_icon:hover .one, .clicked.menu_icon:hover .three { animation: normal; }
37
Simple Hamburger Menu with Animation
By:
rald_dev
Made by @_dlarskie
now
12:42
Saturday, January 4
slide to unlock
86%
/* No images in this pen :D */ @font-face { font-family: Helvetica; src: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/164210/HelveticaNeue-UltraLight.otf) format('TrueType'); font-weight: 300; } body { font-family: 'Helvetica', sans-serif; background: #f5f5f5; color: #333; letter-spacing: 1px; } html,body { height: 100%; margin: 0; padding: 0; overflow: hidden; } #wrapper { height: 520px; width: 800px; margin-left: -400px; margin-top: -260px; position: absolute; perspective: 6000px; top: 50%; left: 50%; } #iphone { height: 760px; width: 372px; border-radius: 50px; position: absolute; background: none; box-shadow: none; left: 206px; top: -140px; transform: rotateX(54deg) rotateZ(-46deg); transform-style: preserve-3d; } #side { background: #CDD0D5; width: 393px; height: 780px; border-top-left-radius: 77px; border-bottom-left-radius: 49px; border-bottom-right-radius: 86px; border-top-right-radius: 70px; position: absolute; top: 0px; left: -15px; box-shadow: inset #3D3E42 0 0 15px 9px; transform: translateZ(-10px); } #front { width: 362px; height: 750px; border-radius: 49px; position: absolute; background-image: -webkit-linear-gradient(-27deg,#444,#000 10%, #000 42%, #333, #000 57%, #000 91%, #444); left: 5px; top: 5px; box-shadow: inset #000 0 0 0 4px, #555 0px 0 3px 0px, #222 -3px 2px, #000 -5px 5px, #E0E0E0 -7px 6px 1px, #6D6D6D -7px 6px 9px; transform: translateZ(1px); } #front-cover { width: 344px; height: 734px; background: #000; border-radius: 39px; position: absolute; top: 8px; left: 9px; } #home { position: absolute; width: 52px; height: 52px; border-radius: 50%; background: -webkit-linear-gradient(32deg,#666,#000,#666); top: 684px; left: 160px; } #home div { background: #000; border-radius: 50%; width: 46px; height: 46px; position: absolute; left: 3px; top: 3px; } #camera { width: 11px; height: 11px; background: #000; position: absolute; top: 35px; left: 124px; border-radius: 50%; box-shadow: inset #666 -5px 2px 9px -2px; } #camera div { width: 6px; height: 6px; background: radial-gradient(#E1E4F5,#0D2B69 33%); background-position: -1px -1px; position: absolute; top: 3px; left: 3px; border-radius: 50%; } #speaker { width: 50px; height: 4px; border-radius: 2px; background: #555; position: absolute; top: 39px; left: 156px; box-shadow: inset #222 0 0px 4px; } #volume { height: 128px; width: 11px; border-radius: 10px; position: absolute; background: #F9F9FA; top: 171px; left: -20px; transform: rotateY(95deg); transform-style: preserve-3d; box-shadow: inset #292A2F 4px 0 8px 1px, #D5D5D5 -1px 0px 2px; } #volume div { width: 8px; height: 55px; background: #BBBCC0; border-radius: 10px; position: absolute; box-shadow: #eee -1px 1px, #777 -1px 3px, #505057 -3px 3px, inset #909197 -3px 0 3px; } #volume div:first-child { top: 2px; left: 4px; } #volume div:last-child { top: 69px; left: 4px; } #toggler { height: 34px; width: 8px; border-radius: 10px; position: absolute; background: #2B2C31; top: 105px; left: -20px; transform: rotateY(95deg); transform-style: preserve-3d; box-shadow: inset #292A2F 4px 0 8px 1px, #D5D5D5 -1px 0px 2px; } #toggler div { width: 4px; height: 31px; background: #BBBCC0; border-radius: 10px; position: absolute; box-shadow: #eee -1px 1px, #777 -2px 3px, #505057 -3px 3px, inset #909197 -3px 0 3px; top: -1px; left: 3px; } #aux { width: 19px; height: 19px; background: #3B3B3B; border-radius: 50%; transform: rotateX(90deg) translateZ(1px); transform-style: preserve-3d; position: absolute; top: 766px; left: 45px; box-shadow: inset #000 6px -3px 10px 1px, #C7C7C7 1px 0px 1px; } #lightning { width: 48px; height: 12px; border-radius: 10px; background: #3F3F3F; transform: rotateX(90deg) translate3d(0px,1px,0px); top: 771px; position: absolute; left: 139px; box-shadow: inset #8E8F94 -1px 1px 0px 2px, #515258 0px 0px 0 1px, inset #000 0 -3px 10px, #DADADA 1px 0 0 1px; } #bottom-speaker { position: absolute; transform: rotateX(90deg); top: 781px; left: 70px; } #bottom-speaker div { width: 8px; height: 8px; border-radius: 50%; background: #6C6D72; position: absolute; box-shadow: inset #000 1px -1px 4px 1px, #DADADA 1px 0px; } #bottom-speaker div:nth-child(2) { left: 150px; } #bottom-speaker div:nth-child(3) { left: 162px; } #bottom-speaker div:nth-child(4) { left: 174px; } #bottom-speaker div:nth-child(5) { left: 186px; } #bottom-speaker div:nth-child(6) { left: 198px; } #bottom-speaker div:nth-child(7) { left: 210px; } #skrews { position: absolute; top: 780px; left: 120px; transform: rotateX(90deg); } #skrews div { position: absolute; width: 8px; height: 8px; background: rgb(95, 92, 92); border-radius: 50%; top: 0; z-index: 4; box-shadow: inset #999AA0 0 0 0px 2px, #444 1px 0px; } #skrews div:last-child { left: 70px; } #lines { position: absolute; top: 82px; left: -32px; display: none; } #lines > div:last-child { top: 634px; } #lines div { width: 7px; height: 11px; position: absolute; transform-style: preserve-3d; transform-origin: 100% 100%; } #lines > div { background: -webkit-linear-gradient(right,#393A3C,#5A595E); transform: rotateY(90deg); } #lines > div > div { background: -webkit-linear-gradient(right,#5A595E,#87868A); transform: rotateY(17deg); left: -6px; } #lines > div > div > div { background: -webkit-linear-gradient(right,#87868A,#A8A6AD); transform: rotateY(17deg); left: -6px; } #shadow { width: 350px; height: 755px; background: black; position: absolute; top: 5px; left: 0; transform: translateZ(-17px); transform-style: preserve-3d; box-shadow: #000 0 0 10px 15px; opacity: 0.4; border-top-left-radius: 76px; border-top-right-radius: 200px; border-bottom-left-radius: 40px; border-bottom-right-radius: 56px; } #screen { background: -webkit-linear-gradient(#A1E5E5,#1987AA); width: 336px; height: 589px; position: absolute; top: 80px; left: 13px; font-weight: 300; color: #fff; background-size: 200% 100%; overflow: hidden; } #time { font-size: 86px; left: 57px; top: 37px; position: absolute; } #date { font-size: 20px; left: 85px; top: 130px; position: absolute; } #bottom { width: 37px; height: 7px; border-radius: 5px; background: #2AB1DB; position: absolute; top: 573px; left: 149px; } #top { width: 37px; height: 7px; border-radius: 5px; background: #D7FFFF; position: absolute; top: 10px; left: 149px; } #slide { position: absolute; top: 489px; left: 88px; font-size: 28px; color: #2AB1DB; background: -webkit-linear-gradient(left,#2EC4F3 30%,#fff,#2EC4F3 70%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-size: 350px; animation: slide 5s linear infinite; } @keyframes slide { 0% { background-position: 100px 0; } 40% { background-position: 440px 0; } 100% { background-position: 440px 0; } } #slide div { transform: rotate(135deg); border-left: 2px solid #2AB1DB; border-top: 2px solid #2AB1DB; width: 15px; height: 15px; position: absolute; left: -29px; top: 10px; } #signal { position: absolute; top: 9px; left: 7px; } #signal div { width: 6px; height: 6px; border-radius: 50%; background: #fff; border: 1px solid #fff; position: absolute; } #signal div:nth-child(2) { left: 9px; } #signal div:nth-child(3) { left: 18px; } #signal div:nth-child(4) { left: 27px; } #signal div:nth-child(5) { left: 36px; background: none; } #battery { position: absolute; top: 3px; left: 270px; font-size: 13px; } #battery > div:last-child { width: 27px; height: 9px; border: 1px solid #fff; position: absolute; top: 4px; left: 27px; border-radius: 2px; } #battery div div:first-child { width: 21px; height: 7px; background: #fff; position: absolute; top: 1px; left: 1px; } #battery div div:last-child { width: 1px; height: 6px; background: #FFF; position: absolute; left: 29px; top: 2px; border-radius: 0 1px 1px 0; } #fabrizio { border-top: 100px solid black; border-right: 63px solid transparent; width: 0; transform: scale(.33); transform-origin: 0 0; margin: 20px; opacity:.6; position: absolute; bottom: -130px; } #fabrizio:before { background: black; width: 20px; height: 30px; content: ''; display: block; transform: skewX(-32deg); position: relative; top: -65px; left: 29px; } #fabrizio:after { background: black; width: 40px; height: 36px; content: ''; display: block; transform: skewX(-32deg); position: relative; top: -130px; left: 49px; } #circle { width: 50px; height: 50px; background: none; border-radius: 50%; box-shadow: rgba(255,255,255,0.1) 160px 335px,rgba(255,255,255,0.1) 120px 275px 0 12px,rgba(255,255,255,0.1) 60px 355px 0 23px,rgba(255,255,255,0.1) 230px 445px 0 -8px,rgba(255,255,255,0.1) 60px 125px,rgba(255,255,255,0.1) 260px 145px 0 12px,rgba(255,255,255,0.1) 300px 145px 0 23px,rgba(255,255,255,0.1) 100px 85px 0 -8px,rgba(255,255,255,0.1) 50px 155px,rgba(255,255,255,0.1) 150px 273px 0 -2px,rgba(255,255,255,0.1) 50px 555px 0 23px,rgba(255,255,255,0.1) 180px 5px 0 -8px; animation: circle 30s linear infinite alternate; } @keyframes circle { 0%{ box-shadow: rgba(255,255,255,0.1) 160px 335px,rgba(255,255,255,0.1) 120px 275px 0 12px,rgba(255,255,255,0.1) 60px 355px 0 23px,rgba(255,255,255,0.1) 230px 445px 0 -8px,rgba(255,255,255,0.1) 60px 125px,rgba(255,255,255,0.1) 260px 145px 0 12px,rgba(255,255,255,0.1) 300px 145px 0 23px,rgba(255,255,255,0.1) 100px 85px 0 -8px,rgba(255,255,255,0.1) 350px 555px,rgba(255,255,255,0.1) 350px 273px 0 -2px,rgba(255,255,255,0.1) 150px 355px 0 23px,rgba(255,255,255,0.1) 180px 205px 0 -8px,rgba(255,255,255,0.1) 0px 0px 0 -8px,rgba(255,255,255,0.1) 100px 555px 0 10px; } 100%{ box-shadow: rgba(255,255,255,0.1) 70px 10px,rgba(255,255,255,0.1) 300px 205px 0 12px,rgba(255,255,255,0.1) 0px 155px 0 23px,rgba(255,255,255,0.1) 330px 45px 0 -8px,rgba(255,255,255,0.1) 460px 325px,rgba(255,255,255,0.1) 0px 445px 0 12px,rgba(255,255,255,0.1) 300px 145px 0 23px,rgba(255,255,255,0.1) 100px 85px 0 -8px,rgba(255,255,255,0.1) 50px 155px,rgba(255,255,255,0.1) 150px 273px 0 -2px,rgba(255,255,255,0.1) 0px 555px 0 23px,rgba(255,255,255,0.1) 180px 5px 0 -8px,rgba(255,255,255,0.1) 300px 555px 0 -8px,rgba(255,255,255,0.1) 350px 355px 0 10px; } } #reminder { position: absolute; top: 230px; left: 40px; width: 296px; height: 50px; border-top: 1px solid #86E2F0; border-bottom: 1px solid #86E2F0; line-height: 50px; font-weight: 400; opacity: 0; animation: reminder .1s linear forwards 5s; } #reminder div:first-child { background: #fff; width: 16px; height: 16px; border-radius: 3px; position: absolute; top: 18px; } #reminder div:nth-child(2) { position: absolute; left: 30px; } #reminder div:last-child{ position: absolute; left: 251px; font-size: 11px; color: #86E2F0; } @keyframes reminder { 100% { opacity: 1; } } #awwwards { position: absolute; bottom: 30px; left: 70px; } #awwwards a { color: #444; text-decoration: none; border-bottom: 1px solid #888; } #coolors { position: absolute; bottom: 30px; right: 30px; color: #444; text-decoration: none; border-bottom: 1px solid #888; animation: coolors 1s infinite; opacity: 1; } @keyframes coolors { 50% { right: 40px; } }
37
Iphone 6
By:
rald_dev
HOME
ARTICLES
PORTFOLIO
ABOUT
CONTACT
HOME
ARTICLES
PORTFOLIO
ABOUT
CONTACT
HOME
ARTICLES
PORTFOLIO
ABOUT
CONTACT
HOME
ARTICLES
PORTFOLIO
ABOUT
CONTACT
HOME
ARTICLES
PORTFOLIO
ABOUT
CONTACT
HOME
ARTICLES
PORTFOLIO
ABOUT
CONTACT
HOME
ARTICLES
PORTFOLIO
ABOUT
CONTACT
HOME
ARTICLES
PORTFOLIO
ABOUT
CONTACT
HOME
ARTICLES
PORTFOLIO
ABOUT
CONTACT
HOME
ARTICLES
PORTFOLIO
ABOUT
CONTACT
HOME
ARTICLES
PORTFOLIO
ABOUT
CONTACT
HOME
ARTICLES
PORTFOLIO
ABOUT
CONTACT
HOME
ARTICLES
PORTFOLIO
ABOUT
CONTACT
HOME
ARTICLES
PORTFOLIO
ABOUT
CONTACT
HOME
ARTICLES
PORTFOLIO
ABOUT
CONTACT
html, body { margin: 0px; } header, footer { font-family: Raleway; margin: 0 auto; padding: 5em 3em; text-align: center; background: #555; } header h1 { color: #AAA; font-size: 40px; font-weight: lighter; margin-bottom: 5px; } header span { color: #222; } footer span { color: #AAA; } div.container { font-family: Raleway; margin: 0 auto; padding: 10em 3em; text-align: center; } div.container a { color: #FFF; text-decoration: none; font: 20px Raleway; margin: 0px 10px; padding: 10px 10px; position: relative; z-index: 0; cursor: pointer; } .red { background: #f44336; } .purple { background: #673ab7; } .indigo { background: #3f51b5; } .blue { background: #2196f3; } .cyan { background: #00bcd4; } .teal { background: #009688; } .green { background: #4caf50; } .lightGreen { background: #8bc34a; } .lime { background: #c0ca33; } .yellow { background: #fdd835; } .amber { background: #ffc107; } .orange { background: #ff9800 } .deepOrange { background: #ff5722; } .brown { background: #795548; } .gray { background: #9e9e9e; } /* Top and Bottom borders go out */ div.topBotomBordersOut a:before, div.topBotomBordersOut a:after { position: absolute; left: 0px; width: 100%; height: 2px; background: #FFF; content: ""; opacity: 0; transition: all 0.3s; } div.topBotomBordersOut a:before { top: 0px; transform: translateY(10px); } div.topBotomBordersOut a:after { bottom: 0px; transform: translateY(-10px); } div.topBotomBordersOut a:hover:before, div.topBotomBordersOut a:hover:after { opacity: 1; transform: translateY(0px); } /* Top and Bottom borders come in */ div.topBotomBordersIn a:before, div.topBotomBordersIn a:after { position: absolute; left: 0px; width: 100%; height: 2px; background: #FFF; content: ""; opacity: 0; transition: all 0.3s; } div.topBotomBordersIn a:before { top: 0px; transform: translateY(-10px); } div.topBotomBordersIn a:after { bottom: 0px; transform: translateY(10px); } div.topBotomBordersIn a:hover:before, div.topBotomBordersIn a:hover:after { opacity: 1; transform: translateY(0px); } /* Top border go down and Left border appears */ div.topLeftBorders a:before { position: absolute; top: 0px; left: 0px; width: 2px; height: 0px; background: #FFF; content: ""; opacity: 1; transition: all 0.3s; } div.topLeftBorders a:after { position: absolute; top: 0px; left: 0px; width: 100%; height: 2px; background: #FFF; content: ""; opacity: 1; transition: all 0.3s; } div.topLeftBorders a:hover:before { height: 100%; } div.topLeftBorders a:hover:after { opacity: 0; top: 100%; } /* Circle behind */ div.circleBehind a:before, div.circleBehind a:after { position: absolute; top: 22px; left: 50%; width: 50px; height: 50px; border: 4px solid #0277bd; transform: translateX(-50%) translateY(-50%) scale(0.8); border-radius: 50%; background: transparent; content: ""; opacity: 0; transition: all 0.3s; z-index: -1; } div.circleBehind a:after { border-width: 2px; transition: all 0.4s; } div.circleBehind a:hover:before { opacity: 1; transform: translateX(-50%) translateY(-50%) scale(1); } div.circleBehind a:hover:after { opacity: 1; transform: translateX(-50%) translateY(-50%) scale(1.3); } /* Brackets go out */ div.brackets a:before, div.brackets a:after { position: absolute; opacity: 0; font-size: 35px; top: 0px; transition: all 0.3s; } div.brackets a:before { content: '('; left: 0px; transform: translateX(10px); } div.brackets a:after { content: ')'; right: 0px; transform: translateX(-10px); } div.brackets a:hover:before, div.brackets a:hover:after { opacity: 1; transform: translateX(0px); } /* Border from Y to X */ div.borderYtoX a:before, div.borderYtoX a:after { position: absolute; opacity: 0.5; height: 100%; width: 2px; content: ''; background: #FFF; transition: all 0.3s; } div.borderYtoX a:before { left: 0px; top: 0px; } div.borderYtoX a:after { right: 0px; bottom: 0px; } div.borderYtoX a:hover:before, div.borderYtoX a:hover:after { opacity: 1; height: 2px; width: 100%; } /* Border X get width */ div.borderXwidth a:before, div.borderXwidth a:after { position: absolute; opacity: 0; width: 0%; height: 2px; content: ''; background: #FFF; transition: all 0.3s; } div.borderXwidth a:before { left: 0px; top: 0px; } div.borderXwidth a:after { right: 0px; bottom: 0px; } div.borderXwidth a:hover:before, div.borderXwidth a:hover:after { opacity: 1; width: 100%; } /* Pull down */ div.pullDown a:before { position: absolute; width: 100%; height: 2px; left: 0px; top: 0px; content: ''; background: #FFF; opacity: 0.3; transition: all 0.3s; } div.pullDown a:hover:before { height: 100%; } /* Pull up */ div.pullUp a:before { position: absolute; width: 100%; height: 2px; left: 0px; bottom: 0px; content: ''; background: #FFF; opacity: 0.3; transition: all 0.3s; } div.pullUp a:hover:before { height: 100%; } /* Pull right */ div.pullRight a:before { position: absolute; width: 2px; height: 100%; left: 0px; top: 0px; content: ''; background: #FFF; opacity: 0.3; transition: all 0.3s; } div.pullRight a:hover:before { width: 100%; } /* Pull left */ div.pullLeft a:before { position: absolute; width: 2px; height: 100%; right: 0px; top: 0px; content: ''; background: #FFF; opacity: 0.3; transition: all 0.3s; } div.pullLeft a:hover:before { width: 100%; } /* Pull up and down */ div.pullUpDown a:before, div.pullUpDown a:after { position: absolute; width: 100%; height: 2px; left: 0px; content: ''; background: #FFF; opacity: 0.3; transition: all 0.3s; } div.pullUpDown a:before { top: 0px; } div.pullUpDown a:after { bottom: 0px; } div.pullUpDown a:hover:before, div.pullUpDown a:hover:after { height: 100%; } /* Pull right and left */ div.pullRightLeft a:before, div.pullRightLeft a:after { position: absolute; width: 2px; height: 100%; top: 0px; content: ''; background: #FFF; opacity: 0.3; transition: all 0.3s; } div.pullRightLeft a:before { left: 0px; } div.pullRightLeft a:after { right: 0px; } div.pullRightLeft a:hover:before, div.pullRightLeft a:hover:after { width: 100%; } /* Highlight text out */ div.highlightTextOut a { color: rgba(255, 255, 255, 0.3); } div.highlightTextOut a:before, div.highlightTextIn a:before { position: absolute; color: #FFF; top: 0px; left: 0px; padding: 10px; overflow: hidden; content: attr(alt); transition: all 0.3s; transform: scale(0.8); opacity: 0; } div.highlightTextOut a:hover:before, div.highlightTextIn a:hover:before { transform: scale(1); opacity: 1; } /* Highlight text in */ div.highlightTextIn a { color: rgba(0, 0, 0, 0.4); } div.highlightTextIn a:before { transform: scale(1.2); }
37
Navigation Animation
By:
rald_dev
* { padding: 0; margin: 0; box-sizing: border-box; } .container { width: 100vw; height: 100vh; display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, 1fr); justify-items: center; align-items: center; background-color: #111; } /* Style One */ .one { width: 100px; transform-origin: center; animation: rotate 4s linear infinite; } .one circle { fill: none; stroke: red; stroke-width: 10; stroke-dasharray: 1, 20; } @keyframes rotate { 100% { transform: rotate(360deg); } } .lines { width: 100px; height: 100px; position: relative; } /* Style Two */ .l2 { display: flex; justify-content: space-around; align-items: center; } .l2 .line { height: 20px; width: 4px; background-color: #fff; animation: topBottom 800ms linear infinite; } .l2 .line:nth-child(1) { animation-delay: 0s; } .l2 .line:nth-child(2) { animation-delay: 0.2s; } .l2 .line:nth-child(3) { animation-delay: 0.4s; } .l2 .line:nth-child(4) { animation-delay: 0.6s; } @keyframes topBottom { 0% { transform: translateY(0px); } 25% { transform: translateY(40px); } 75% { transform: translateY(-40px); } 100% { transform: translateY(0px); } } /* Style Three*/ .l3 { display: flex; justify-content: space-around; align-items: center; } .l3 .line { height: 0px; width: 4px; left: 0px; background-color: #fff; animation: expand 900ms ease infinite; } .l3 .line:nth-child(1) { animation-delay: 0s; } .l3 .line:nth-child(2) { animation-delay: 0.2s; } .l3 .line:nth-child(3) { animation-delay: 0.4s; } .l3 .line:nth-child(4) { animation-delay: 0.6s; } @keyframes expand { 0%, 100% { height: 0px; } 50% { height: 40px; } } /* Style Four*/ .l4 { display: flex; justify-content: space-around; align-items: center; } .l4 .line { height: 2px; width: 4px; background-color: #fff; transform-origin: bottom; animation: expandTop 900ms ease infinite; } .l4 .line:nth-child(1) { animation-delay: 0s; } .l4 .line:nth-child(2) { animation-delay: 0.2s; } .l4 .line:nth-child(3) { animation-delay: 0.4s; } .l4 .line:nth-child(4) { animation-delay: 0.6s; } @keyframes expandTop { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(20); } } /* Style five*/ .l5 { display: flex; justify-content: space-around; align-items: center; } .l5 .line { height: 20px; width: 4px; background-color: orange; animation: blink 1s ease infinite; } .l5 .line:nth-child(1), .l5 .line:nth-child(10) { animation-delay: 0.8s; } .l5 .line:nth-child(2), .l5 .line:nth-child(9) { animation-delay: 0.6s; } .l5 .line:nth-child(3), .l5 .line:nth-child(8) { animation-delay: 0.4s; } .l5 .line:nth-child(4), .l5 .line:nth-child(7) { animation-delay: 0.2s; } .l5 .line:nth-child(6), .l5 .line:nth-child(5) { animation-delay: 0s; } @keyframes blink { 0%, 100% { opacity: 0; } 50% { opacity: 1; } } /* Style Six*/ .l6 { display: flex; justify-content: space-around; align-items: center; overflow: hidden; position: relative; height: 20px; background-color: blue; } .l6 .line:nth-child(1) { position: absolute; left: 0; bottom: 0; height: 10px; width: 100%; background-color: #fff; animation: expandRight 2s ease infinite; } .l6 .line:nth-child(2) { position: absolute; right: 0; top: 0; height: 10px; width: 100%; animation: expandLeft 2s ease infinite; background-color: #fff; } @keyframes expandRight { 0% { transform-origin: left; transform: translateX(0%); } 50% { transform: translateX(-100%); } 100% { transform: translateX(0%); } } @keyframes expandLeft { 0% { transform-origin: right; transform: translateX(100%); } 50% { transform: translateX(0%); transform-origin: left; } 100% { transform: translateX(100%); } } /* Style Seven */ .l7 { position: relative; width: 80px; height: 80px; animation: 900ms linear rotateMain infinite; } .l7 .line { position: absolute; background-color: #fff; } .l7 .line:nth-child(1) { left: 0; top: 40px; animation: 600ms ease-in growWidth infinite; } .l7 .line:nth-child(2) { right: 0; top: 40px; animation: 600ms ease-in growWidth infinite; } .l7 .line:nth-child(3) { left: 40px; animation: 600ms ease-in growHeight infinite; } .l7 .line:nth-child(4) { left: 40px; bottom: 0px; animation: 600ms ease-in growHeight infinite; } @keyframes growHeight { 0%, 100% { height: 0px; width: 2px; } 50% { height: 40px; width: 2px; } } @keyframes growWidth { 0%, 100% { width: 0px; height: 2px; } 50% { width: 40px; height: 2px; } } @keyframes rotateMain { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } /* Style Eight*/ .l8 { display: flex; justify-content: space-around; align-items: center; } .l8 .line { height: 20px; width: 4px; background-color: rgb(255, 0, 76); animation: growLine 1s ease infinite; } .l8 .line:nth-child(1), .l8 .line:nth-child(10) { animation-delay: 0.8s; } .l8 .line:nth-child(2), .l8 .line:nth-child(9) { animation-delay: 0.6s; } .l8 .line:nth-child(3), .l8 .line:nth-child(8) { animation-delay: 0.4s; } .l8 .line:nth-child(4), .l8 .line:nth-child(7) { animation-delay: 0.2s; } .l8 .line:nth-child(6), .l8 .line:nth-child(5) { animation-delay: 0s; } @keyframes growLine { 0%, 100% { transform: scale(0); } 50% { transform: scale(1.5); } } .circle-loader { width: 80px; height: 80px; border: 8px solid #333; border-top: 8px solid red; border-radius: 50%; animation: spin 1s linear infinite; } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
37
8 Pre loader animation using css
By:
rald_dev
.loader { border: 8px; border-top: 4px dotted #FF0035; border-radius:50%; width: 120px; height: 120px; animation: spin 3s linear infinite; margin: auto; } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } 0% {background-color:#FF0035 ; opacity: 0.2;} 30% {background-color:white; opacity: 1.0;} 70% {background-color:white; opacity: 1.0;} 100% {background-color: #FF0035; opacity: 0.2;} } }
37
Red loading animation
By:
rald_dev
BUTTON
BUTTON
BUTTON
*{ margin: 0px; padding: 0xp; box-sizing: border-box; outline-style: none; } body{ display: flex; align-items: center; justify-content: center; width: 100vw; height: 100vh; } button{ display: flex; align-items: center; justify-content: center; border: none; background-color: rgba(100, 32, 163, 0.877); margin: auto; height: 40px; width: 100px; clip-path: circle(20%); transition: 0.5s; } span{ font-size: 0px; color: burlywood; width: 100%; height: 100%; padding: 10px; transition: 0.5s; } button:hover{ transition: 0.5s; clip-path: circle(100%); border: 1px purple solid; background: rgba(226, 180, 138, 0.925); } span:hover{ transition: 0.5s; font-size: 15px; color: purple; transform: rotate(360deg); }
37
Button Animation
By:
rald_dev
Green Button
Pink Button
Red Button
Orange Button
Blue Button
Green button
Pink button
Red button
Orange button
Blue button
/* BY ESTEBAN MAUVAIS [--=INDEX=--] /BODY /GRADIENTS /GREEN /PINK /RED /ORANGE /BLUE /BASE BUTTON /ROTATE [--=END INDEX=--] */ /*BODY*/ body { font-family: 'Roboto', sans-serif; } body, .button:after { background: #2c3e50; } .ctn { display: block; margin: auto; text-align: center; } footer { position: fixed; bottom: 5px; right: 5px; color: #FFF; } footer a, footer a:after { font-size: 1em !important; } /*END BODY*/ /*GRADIENTS*/ /*GREEN*/ .b-green, .b-green:before { background: rgba(73,155,234,1); background: -moz-linear-gradient(45deg, rgba(73,155,234,1) 0%, rgba(26,188,156,1) 100%); background: -webkit-gradient(left bottom, right top, color-stop(0%, rgba(73,155,234,1)), color-stop(100%, rgba(26,188,156,1))); background: -webkit-linear-gradient(45deg, rgba(73,155,234,1) 0%, rgba(26,188,156,1) 100%); background: -o-linear-gradient(45deg, rgba(73,155,234,1) 0%, rgba(26,188,156,1) 100%); background: -ms-linear-gradient(45deg, rgba(73,155,234,1) 0%, rgba(26,188,156,1) 100%); background: linear-gradient(45deg, rgba(73,155,234,1) 0%, rgba(26,188,156,1) 100%); filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#499bea', endColorstr='#1abc9c', GradientType=1 ); } /*PINK*/ .b-pink, .b-pink:before { background: rgba(231,72,234,1); background: -moz-linear-gradient(45deg, rgba(231,72,234,1) 0%, rgba(75,26,188,1) 100%); background: -webkit-gradient(left bottom, right top, color-stop(0%, rgba(231,72,234,1)), color-stop(100%, rgba(75,26,188,1))); background: -webkit-linear-gradient(45deg, rgba(231,72,234,1) 0%, rgba(75,26,188,1) 100%); background: -o-linear-gradient(45deg, rgba(231,72,234,1) 0%, rgba(75,26,188,1) 100%); background: -ms-linear-gradient(45deg, rgba(231,72,234,1) 0%, rgba(75,26,188,1) 100%); background: linear-gradient(45deg, rgba(231,72,234,1) 0%, rgba(75,26,188,1) 100%); filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#e748ea', endColorstr='#4b1abc', GradientType=1 ); } /*RED*/ .b-red, .b-red:before { background: rgba(234,110,72,1); background: -moz-linear-gradient(45deg, rgba(234,110,72,1) 0%, rgba(188,26,99,1) 100%); background: -webkit-gradient(left bottom, right top, color-stop(0%, rgba(234,110,72,1)), color-stop(100%, rgba(188,26,99,1))); background: -webkit-linear-gradient(45deg, rgba(234,110,72,1) 0%, rgba(188,26,99,1) 100%); background: -o-linear-gradient(45deg, rgba(234,110,72,1) 0%, rgba(188,26,99,1) 100%); background: -ms-linear-gradient(45deg, rgba(234,110,72,1) 0%, rgba(188,26,99,1) 100%); background: linear-gradient(45deg, rgba(234,110,72,1) 0%, rgba(188,26,99,1) 100%); filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ea6e48', endColorstr='#bc1a63', GradientType=1 ); } /*ORANGE*/ .b-orange, .b-orange:before { background: rgba(255,193,7,1); background: -moz-linear-gradient(45deg, rgba(255,193,7,1) 0%, rgba(255,87,34,1) 100%); background: -webkit-gradient(left bottom, right top, color-stop(0%, rgba(255,193,7,1)), color-stop(100%, rgba(255,87,34,1))); background: -webkit-linear-gradient(45deg, rgba(255,193,7,1) 0%, rgba(255,87,34,1) 100%); background: -o-linear-gradient(45deg, rgba(255,193,7,1) 0%, rgba(255,87,34,1) 100%); background: -ms-linear-gradient(45deg, rgba(255,193,7,1) 0%, rgba(255,87,34,1) 100%); background: linear-gradient(45deg, rgba(255,193,7,1) 0%, rgba(255,87,34,1) 100%); filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffc107', endColorstr='#ff5722', GradientType=1 ); } /*BLUE*/ .b-blue, .b-blue:before { background: rgba(5,118,255,1); background: -moz-linear-gradient(45deg, rgba(5,118,255,1) 0%, rgba(36,248,255,1) 100%); background: -webkit-gradient(left bottom, right top, color-stop(0%, rgba(5,118,255,1)), color-stop(100%, rgba(36,248,255,1))); background: -webkit-linear-gradient(45deg, rgba(5,118,255,1) 0%, rgba(36,248,255,1) 100%); background: -o-linear-gradient(45deg, rgba(5,118,255,1) 0%, rgba(36,248,255,1) 100%); background: -ms-linear-gradient(45deg, rgba(5,118,255,1) 0%, rgba(36,248,255,1) 100%); background: linear-gradient(45deg, rgba(5,118,255,1) 0%, rgba(36,248,255,1) 100%); filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#0576ff', endColorstr='#24f8ff', GradientType=1 ); } /*END GRADIENTS*/ /*BASE BUTTON*/ .button { display: inline-block; position: relative; border-radius: 3px; text-decoration: none; padding: .5em; margin: .5em; font-size: 2em; font-weight: bold; transition: all .5s; -webkit-background-clip: text; -webkit-text-fill-color: transparent; } .button:hover { text-shadow: 0px 0px 0px rgba(255, 255, 255, .75); } .button:hover:after { left: 100%; top: 100%; bottom: 100%; right: 100%; } .button:before { content: ''; display: block; position: absolute; left: 0; top: 0; bottom: 0; right: 0; z-index: -1; border-radius: 5px; transition: all .5s; } .button:after { content: ''; display: block; position: absolute; left: 2px; top: 2px; bottom: 2px; right: 2px; z-index: -1; border-radius: 5px; transition: all .5s; } .button2 { display: inline-block; font-size: 2em; margin: .5em; padding: .5em; border-radius: 5px; transition: all .5s; filter: hue-rotate(0deg); color: #FFF; text-decoration: none; } /*END BASE BUTTON*/ /*ROTATE*/ .rot-360-noscoop:hover { filter: hue-rotate(360deg); transform: rotate(360deg); } .rot-135:hover { filter: hue-rotate(135deg); } .rot-90:hover { filter: hue-rotate(90deg); } /*END ROTATE*/
37
Gradient Button with 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); } }
37
Rainbow Background
By:
rald_dev
Hello World & Advance Merry Christmas!
:root { --main-bg: #c2c2c2; --trunk-bg-1: #5e2100; --trunk-bg-2: #783e00; --leaves-bottom-bg-1: #0f980f; --leaves-bottom-bg-2: #3fc83f; --leaves-middle-bg-1: #1fa81f; --leaves-middle-bg-2: #4fd84f; --leaves-top-bg-1: #2fb82f; --leaves-top-bg-2: #5fe85f; --star-bg: #ffdd00; --shine-bg: #ffeb69; --snow-bg: #f2f2f2; --tree-width: 200px; --tree-height: 400px; --tree-rotate: -15deg; --trunk-width: 30px; --trunk-height: 400px; --trunk-angle: 4.3deg; --leaves-translate: 15px; --leaves-bottom-width: 100px; --leaves-bottom-height: 320px; --leaves-bottom-angle: 18.2deg; --leaves-middle-width: 80px; --leaves-middle-height: 220px; --leaves-middle-angle: 21.4deg; --leaves-top-width: 60px; --leaves-top-height: 140px; --leaves-top-angle: 25.5deg; --star-size: 20px; } html, body { width: 100%; height: 100%; padding: 0; margin: 0; } body { overflow: hidden; } .ts-3d { transform-style: preserve-3d; } .container { background-color: var(--main-bg); width: 100%; min-height: 100%; overflow: hidden; display: flex; align-items: center; justify-content: center; } .tree { width: var(--tree-width); height: var(--tree-height); position: relative; transform-style: preserve-3d; transform: rotateX(var(--tree-rotate)); } .trunk, .leaves-bottom, .leaves-middle, .leaves-top { position: absolute; width: 100%; height: 100%; top: 0; left: 0; animation: 10s tree-rotate linear infinite; } .trunk div { border-top: none; border-left: solid var(--trunk-width) transparent; border-right: solid var(--trunk-width) transparent; position: absolute; bottom: 0; left: calc(50% - var(--trunk-width)); transform-origin: bottom; } .trunk div:nth-child(1) { border-bottom: solid var(--trunk-height) var(--trunk-bg-1); transform: rotateX(var(--trunk-angle)) translateY(2px) translateZ(var(--trunk-width)); } .trunk div:nth-child(2) { border-bottom: solid var(--trunk-height) var(--trunk-bg-2); transform: rotateY(90deg) rotateX(calc(var(--trunk-angle) * -1)) translateY(2px) translateZ(calc(var(--trunk-width) * -1)); } .trunk div:nth-child(3) { border-bottom: solid var(--trunk-height) var(--trunk-bg-1); transform: rotateX(calc(var(--trunk-angle) * -1)) translateY(2px) translateZ(calc(var(--trunk-width) * -1)); } .trunk div:nth-child(4) { border-bottom: solid var(--trunk-height) var(--trunk-bg-2); transform: rotateY(-90deg) rotateX(calc(var(--trunk-angle) * -1)) translateY(2px) translateZ(calc(var(--trunk-width) * -1)); } .leaves-bottom div { border-top: none; border-left: solid var(--leaves-bottom-width) transparent; border-right: solid var(--leaves-bottom-width) transparent; position: absolute; top: var(--star-size); left: calc(50% - var(--leaves-bottom-width)); transform-origin: bottom; } .leaves-bottom div:nth-child(1) { border-bottom: solid var(--leaves-bottom-height) var(--leaves-bottom-bg-1); transform: rotateX(var(--leaves-bottom-angle)) translateY(var(--leaves-translate)) translateZ(var(--leaves-bottom-width)); } .leaves-bottom div:nth-child(2) { border-bottom: solid var(--leaves-bottom-height) var(--leaves-bottom-bg-2); transform: rotateY(90deg) rotateX(calc(var(--leaves-bottom-angle) * -1)) translateY(var(--leaves-translate)) translateZ(calc(var(--leaves-bottom-width) * -1)); } .leaves-bottom div:nth-child(3) { border-bottom: solid var(--leaves-bottom-height) var(--leaves-bottom-bg-1); transform: rotateX(calc(var(--leaves-bottom-angle) * -1)) translateY(var(--leaves-translate)) translateZ(calc(var(--leaves-bottom-width) * -1)); } .leaves-bottom div:nth-child(4) { border-bottom: solid var(--leaves-bottom-height) var(--leaves-bottom-bg-2); transform: rotateY(-90deg) rotateX(calc(var(--leaves-bottom-angle) * -1)) translateY(var(--leaves-translate)) translateZ(calc(var(--leaves-bottom-width) * -1)); } .leaves-middle div { border-top: none; border-left: solid var(--leaves-middle-width) transparent; border-right: solid var(--leaves-middle-width) transparent; position: absolute; top: var(--star-size); left: calc(50% - var(--leaves-middle-width)); transform-origin: bottom; } .leaves-middle div:nth-child(1) { border-bottom: solid var(--leaves-middle-height) var(--leaves-middle-bg-1); transform: rotateX(var(--leaves-middle-angle)) translateY(var(--leaves-translate)) translateZ(var(--leaves-middle-width)); } .leaves-middle div:nth-child(2) { border-bottom: solid var(--leaves-middle-height) var(--leaves-middle-bg-2); transform: rotateY(90deg) rotateX(calc(var(--leaves-middle-angle) * -1)) translateY(var(--leaves-translate)) translateZ(calc(var(--leaves-middle-width) * -1)); } .leaves-middle div:nth-child(3) { border-bottom: solid var(--leaves-middle-height) var(--leaves-middle-bg-1); transform: rotateX(calc(var(--leaves-middle-angle) * -1)) translateY(var(--leaves-translate)) translateZ(calc(var(--leaves-middle-width) * -1)); } .leaves-middle div:nth-child(4) { border-bottom: solid var(--leaves-middle-height) var(--leaves-middle-bg-2); transform: rotateY(-90deg) rotateX(calc(var(--leaves-middle-angle) * -1)) translateY(var(--leaves-translate)) translateZ(calc(var(--leaves-middle-width) * -1)); } .leaves-top div { border-top: none; border-left: solid var(--leaves-top-width) transparent; border-right: solid var(--leaves-top-width) transparent; position: absolute; top: var(--star-size); left: calc(50% - var(--leaves-top-width)); transform-origin: bottom; } .leaves-top div:nth-child(1) { border-bottom: solid var(--leaves-top-height) var(--leaves-top-bg-1); transform: rotateX(var(--leaves-top-angle)) translateY(var(--leaves-translate)) translateZ(var(--leaves-top-width)); } .leaves-top div:nth-child(2) { border-bottom: solid var(--leaves-top-height) var(--leaves-top-bg-2); transform: rotateY(90deg) rotateX(calc(var(--leaves-top-angle) * -1)) translateY(var(--leaves-translate)) translateZ(calc(var(--leaves-top-width) * -1)); } .leaves-top div:nth-child(3) { border-bottom: solid var(--leaves-top-height) var(--leaves-top-bg-1); transform: rotateX(calc(var(--leaves-top-angle) * -1)) translateY(var(--leaves-translate)) translateZ(calc(var(--leaves-top-width) * -1)); } .leaves-top div:nth-child(4) { border-bottom: solid var(--leaves-top-height) var(--leaves-top-bg-2); transform: rotateY(-90deg) rotateX(calc(var(--leaves-top-angle) * -1)) translateY(var(--leaves-translate)) translateZ(calc(var(--leaves-top-width) * -1)); } @keyframes tree-rotate { 0% { transform: rotateX(0deg) rotateY(0deg); } 99.99999% { transform: rotateX(0deg) rotateY(359deg); } } .shadow { background-color: rgba(0, 0, 0, 0.8); width: calc(var(--leaves-bottom-width) * 2); height: calc(var(--leaves-bottom-width) * 2); filter: blur(calc(var(--leaves-bottom-width) / 2)); position: absolute; bottom: calc(var(--leaves-bottom-width) * -1); left: calc(50% - var(--leaves-bottom-width)); transform: rotateX(90deg) translateX(-50%); animation: 10s shadow-rotate linear infinite; } @keyframes shadow-rotate { 0% { transform: rotateX(-90deg) rotateZ(0deg); } 99.99999% { transform: rotateX(-90deg) rotateZ(359deg); } } .star-1 { transform: translateZ(-2px); animation: 10s star-1-rotate linear infinite; } @keyframes star-1-rotate { 0% { transform: rotateX(0deg) rotateY(0deg) translateZ(-2px); } 99.99999% { transform: rotateX(0deg) rotateY(359deg) translateZ(-2px); } } .star-2 { transform: translateZ(-1px); animation: 10s star-2-rotate linear infinite; } @keyframes star-2-rotate { 0% { transform: rotateX(0deg) rotateY(0deg) translateZ(-1px); } 99.99999% { transform: rotateX(0deg) rotateY(359deg) translateZ(-1px); } } .star-3 { transform: translateZ(0px); animation: 10s star-3-rotate linear infinite; } @keyframes star-3-rotate { 0% { transform: rotateX(0deg) rotateY(0deg) translateZ(0px); } 99.99999% { transform: rotateX(0deg) rotateY(359deg) translateZ(0px); } } .star-4 { transform: translateZ(1px); animation: 10s star-4-rotate linear infinite; } @keyframes star-4-rotate { 0% { transform: rotateX(0deg) rotateY(0deg) translateZ(1px); } 99.99999% { transform: rotateX(0deg) rotateY(359deg) translateZ(1px); } } .star-5 { transform: translateZ(2px); animation: 10s star-5-rotate linear infinite; } @keyframes star-5-rotate { 0% { transform: rotateX(0deg) rotateY(0deg) translateZ(2px); } 99.99999% { transform: rotateX(0deg) rotateY(359deg) translateZ(2px); } } .star, .star:before, .star:after { content: ''; height: 0; width: 0; border-top: solid 30px var(--star-bg); border-left: solid 45px transparent; border-right: solid 45px transparent; position: absolute; top: 0; left: calc(50% - 45px); } .star:before { transform: rotate(72deg); top: -33px; left: -46px; } .star:after { transform: rotate(287deg); top: -33px; left: -44px; } .shine { background: var(--shine-bg); height: 90px; width: 90px; position: absolute; top: -45px; left: calc(50% - 45px); border-radius: 50%; transform: translateZ(40px); filter: blur(20px); opacity: 0.6; animation: 5s shine linear infinite; } @keyframes shine { 0% { transform: scale(1) translateZ(40px); } 50% { transform: scale(1.5) translateZ(40px); } 100% { transform: scale(1) translateZ(40px); } } .snow-container { width: 100%; height: 100%; position: absolute; } .snow { position: absolute; } .snow:before { content: ''; background-color: var(--snow-bg); width: 100%; height: 100%; position: absolute; border-radius: 50%; } .snow-y-1:before { animation: 8s snow-y-1 ease-in infinite, 8s snow-y-0 linear infinite; } .snow-y-2:before { animation: 6s snow-y-2 ease-in infinite, 6s snow-y-0 linear infinite; } .snow-y-3:before { animation: 4s snow-y-2 ease-in infinite, 4s snow-y-0 linear infinite; } .snow-1 { width: 20px; height: 20px; top: calc(50% - 250px); left: calc(50% - 10px); animation: 1s snow-x linear infinite; } .snow-2 { width: 15px; height: 15px; top: calc(50% - 300px); left: calc(50% - 30px); animation: 0.8s snow-x linear infinite 0.1s; } .snow-3 { width: 10px; height: 10px; top: calc(50% - 400px); left: calc(50% + 60px); animation: 0.6s snow-x linear infinite 0.8s; } .snow-4 { width: 25px; height: 25px; top: calc(50% - 200px); left: calc(50% + 50px); animation: 0.5s snow-x linear infinite 0.5s; } .snow-5 { width: 18px; height: 18px; top: calc(50% - 200px); left: calc(50% - 50px); animation: 0.5s snow-x linear infinite 0.5s; } .snow-6 { width: 12px; height: 12px; top: calc(50% - 150px); left: calc(50% - 120px); animation: 0.8s snow-x linear infinite 0.5s; } .snow-7 { width: 20px; height: 20px; top: calc(50% - 150px); left: calc(50% + 75px); animation: 1s snow-x linear infinite 0.6s; } .snow-8 { width: 22px; height: 22px; top: calc(50% - 10px); left: calc(50% - 30px); animation: 1s snow-x linear infinite 0.8s; } .snow-9 { width: 8px; height: 8px; top: calc(50% - 250px); left: calc(50% - 30px); animation: 1s snow-x linear infinite 0.8s; } .snow-10 { width: 13px; height: 13px; top: calc(50% - 250px); left: calc(50% - 100px); animation: 1s snow-x linear infinite 0.8s; } @keyframes snow-x { 0% { transform: translateX(0px); } 25% { transform: translateX(5px); } 50% { transform: translateX(0px); } 75% { transform: translateX(-5px); } 100% { transform: translateX(0px); } } @keyframes snow-y-0 { 0% { opacity: 1; } 60% { opacity: 1; } 100% { opacity: 0; } } @keyframes snow-y-1 { 0% { transform: translateY(0px); } 99.99999% { transform: translateY(300px); } 100% { transform: translateY(0px); } } @keyframes snow-y-2 { 0% { transform: translateY(0px); } 99.99999% { transform: translateY(400px); } 100% { transform: translateY(0px); } } @keyframes snow-y-3 { 0% { transform: translateY(0px); } 99.99999% { transform: translateY(500px); } 100% { transform: translateY(0px); } } .message { display: flex; font-size: 100px; font-weight: 800; color: #5FE85F; font-family: sans-serif; vertical-align: middle; font-family: 'Courier New', Courier, monospace; background: url(http://pm1.narvii.com/6380/3990038ed73ad3832195151af1c9438ca5ff765f_00.jpg); }
36
Christmas Tree
By:
rald_dev
html{ background-color: #023; } .load{ display:flex; justify-content:center; align-items:center; height:95vh; } .load div{ background-color:#00f3ff; height: 40px; width:40px; border-radius: 50%; margin-right:20px; animation-name: up-load; animation-duration: 1.5s; animation-iteration-count:infinite; animation-direction: alternate; animation-timing-function: linear; } .load .two{ animation-delay: 0.5s; } .load .three{ animation-delay: 1s; } @keyframes up-load{ to{ opacity: 0.05; transform: translateY(-25px) } }
36
Loading dots animation
By:
rald_dev
Rald_Dev
* { margin: 0; padding: 0; box-sizing: border-box; } body { width: 100%; height: 100vh; background-color: #000; color: #fff; display: flex; justify-content: center; align-items: center; } .wrapper { position: relative; } .word { height: 70px; border-right: 2px solid green; line-height: 70px; overflow: hidden; animation: moveRight 1500ms steps(12) infinite, borderBlink 200ms infinite; font-size: 50px; white-space: nowrap; } .cursor { height: 100%; width: 2px; color: green; } @keyframes moveRight { 0% { width: 0%; } 100% { width: 270px; } } @keyframes borderBlink { 0%, 100% { border-right-color: transparent; } 50% { border-right-color: green; } }
36
Typewriter Effect -Single Word Animation
By:
rald_dev
We build
websites
brands
experiences
body{ margin: 0; padding: 0; font-family: 'Abril Fatface', serif; } .slider{ height: 600px; background-color: #293132; text-align: center; position: relative; animation: slideColor 10s forwards infinite; } .caption{ line-height: 100px; font-size: 60px; color: #fff; position: relative; top: 50%; transform: translateY(-50%); text-shadow: 0px 5px 5px rgba(0,0,0,.25); margin-left: -300px; } .text-box{ display: inline-block; position: relative; } .text-box div{ display: inline-block; position: absolute; top: -200px; transform: rotateX(-90deg); opacity: 0; text-shadow: 0px 5px 5px rgba(0,0,0,.25); animation-timing-function: ease; } .text-box div:nth-child(1){ animation: rollDown 10s forwards infinite; } .text-box div:nth-child(2){ animation: rollDown2 10s forwards infinite; } .text-box div:nth-child(3){ animation: rollDown3 10s forwards infinite; } @keyframes rollDown { 0%{ top: -200px; transform: rotateX(-90deg); } 11%{ top: -74px; transform: rotateX(0deg); opacity: 1; } 22%{ top: -74px; transform: rotateX(0deg); opacity: 1; } 33%{ top: 50px; transform: rotateX(30deg); opacity: 0; } } @keyframes rollDown2 { 33%{ top: -200px; transform: rotateX(-90deg); } 44%{ top: -74px; transform: rotateX(0deg); opacity: 1; } 55%{ top: -74px; transform: rotateX(0deg); opacity: 1; } 66%{ top: 50px; transform: rotateX(30deg); opacity: 0; } } @keyframes rollDown3 { 66%{ top: -200px; transform: rotateX(-90deg); } 77%{ top: -74px; transform: rotateX(0deg); opacity: 1; } 88%{ top: -74px; transform: rotateX(0deg); opacity: 1; } 99%{ top: 50px; transform: rotateX(30deg); opacity: 0; } } @keyframes slideColor{ 0%{ background-color: #387780; } 33%{ background-color: #3f88c5; } 66%{ background-color: #588b8b; } 100%{ background-color: #387780; } }
35
Rolling text animation
By:
rald_dev
Previous
1
…
5
6
7
8
9
10
Next