Start Coding
All
Accordion
Buttons
Cards
Carousel
Css Animation
Hexagons
Hover
Layout
Loaders
Menu
Navigation
Slider
Tables
Wave
Css Animation
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; }
61
Flickering Animation
By:
rald_dev
body { background: #0a3f63; margin: 0; min-height: 100vh; display: flex; align-items: center; justify-content: center; } .container { height: 250px; width: 250px; position: relative; } .circle { position: absolute; height: 100%; width: 100%; border-radius: 50%; animation: rotate 3s linear infinite; } .circle::before { content: ""; position: absolute; height: 10px; width: 50px; background-color: #fff; border-radius: 5px; top: -6px; left: 50%; transform: translateX(-50%); } .ball { position: absolute; height: 35px; width: 35px; border-radius: 50%; background-color: #fe95ff; top: 20px; left: 50%; transform: translateX(-50%); animation: move 1.5s ease-in alternate infinite; } @keyframes rotate { from { } to { transform: rotate(360deg); } } @keyframes move { from { box-shadow: 0 10px 0 -1px #fe95ffaa, 0 20px 0 -2px #fe95ffaa; } to { top: 220px; box-shadow: 0 -10px 0 -1px #fe95ffaa, 0 -20px 0 -2px #fe95ff55; } }
37
Bouncing ball v2
By:
rald_dev
Read More
Anniversary celebration
Read More
ul { margin: 0; padding: 0; list-style: none; } .btn { display: inline-block; text-transform: uppercase; border: 2px solid #2c3e50; margin-top: 100px; font-size: 0.7em; font-weight: 700; padding: 0.1em 0.4em; text-align: center; text-decoration:none; transition: color 0.3s, border-color 0.3s; } .btn:hover { border-color: #c32b23; border-color: #c32b23; color: #c32b23; } .book-paging-animation{ text-align: center; max-width: 700px; margin: 0 auto; > li { width: 500px; min-height: 300px; display: inline-block; vertical-align: top; } } .book { position: relative; width: 160px; height: 220px; margin: 50px auto; perspective: 1000px; transform-style: preserve-3d; } .book-cover-front li:first-child { background-color: #eee; backface-visibility: hidden; } .book-cover-front li:last-child { background: #fffbec; } .book-cover-back li:first-child { background: #fffbec; } .book-cover-back li:last-child { background: #fffbec; } .book-line li:first-child { background: #eee; } .book-line li:last-child { background: #333; } .book-cover-front li:first-child:after, .book-cover-front li:first-child:before, .book-cover-front li:last-child:after, .book-cover-front li:last-child:before, .book-cover-back li:first-child:after, .book-cover-back li:first-child:before, .book-cover-back li:last-child:after, .book-cover-back li:last-child:before, .book-line li:first-child:after, .book-line li:first-child:before, .book-line li:last-child:after, .book-line li:last-child:before { background: #999; } .pages-inner > li { background: linear-gradient(left, #e1ddd8 0%, #fffbf6 100%); background: -webkit-linear-gradient(left, #e1ddd8 0%, #fffbf6 100%); box-shadow: inset 0px -1px 2px rgba(50, 50, 50, 0.1), inset -1px 0px 1px rgba(150, 150, 150, 0.2); border-radius: 0px 5px 5px 0px; } .book-cover-front { transform: rotateY(-34deg) translateZ(8px); z-index: 100; } .book-cover-back { transform: rotateY(-15deg) translateZ(-8px); } .pages-inner li:nth-child(1) { transform: rotateY(-28deg); } .pages-inner li:nth-child(2) { transform: rotateY(-30deg); } .pages-inner li:nth-child(3) { transform: rotateY(-32deg); } .pages-inner li:nth-child(4) { transform: rotateY(-34deg); } .pages-inner li:nth-child(5) { transform: rotateY(-36deg); } .book-cover-front, .book-cover-back, .book-line, .book-cover-front li, .book-cover-back li, .book-line li { position: absolute; top: 0; left: 0px; width: 100%; height: 100%; transform-style: preserve-3d; } .book-cover-front, .book-cover-back { transform-origin: 0% 100%; } .book-cover-front { transition: all 0.8s ease, z-index 0.6s; } .book-cover-front li:first-child { transform: translateZ(2px); } .book-cover-front li:last-child { transform: rotateY(180deg) translateZ(2px); } .book-cover-back li:first-child { -webkit-transform: translateZ(2px); -moz-transform: translateZ(2px); transform: translateZ(2px); } .book-cover-back li:last-child { transform: translateZ(-2px); } .book-cover-front li:first-child:after, .book-cover-front li:first-child:before, .book-cover-front li:last-child:after, .book-cover-front li:last-child:before, .book-cover-back li:first-child:after, .book-cover-back li:first-child:before, .book-cover-back li:last-child:after, .book-cover-back li:last-child:before, .book-line li:first-child:after, .book-line li:first-child:before, .book-line li:last-child:after, .book-line li:last-child:before { position: absolute; top: 0; left: 0; } .book-cover-front li:first-child:after, .book-cover-front li:first-child:before { width: 4px; height: 100%; } .book-cover-front li:first-child:after { transform: rotateY(90deg) translateZ(-2px) translateX(2px); } .book-cover-front li:first-child:before { transform: rotateY(90deg) translateZ(158px) translateX(2px); } .book-cover-front li:last-child:after, .book-cover-front li:last-child:before { width: 4px; height: 160px; } .book-cover-front li:last-child:after { transform: rotateX(90deg) rotateZ(90deg) translateZ(80px) translateX(-2px) translateY(-78px); } .book-cover-front li:last-child:before { box-shadow: 0px 0px 30px 5px #333; transform: rotateX(90deg) rotateZ(90deg) translateZ(-140px) translateX(-2px) translateY(-78px); } .book-cover-back li:first-child:after, .book-cover-back li:first-child:before { width: 4px; height: 100%; } .book-cover-back li:first-child:after { transform: rotateY(90deg) translateZ(-2px) translateX(2px); } .book-cover-back li:first-child:before { transform: rotateY(90deg) translateZ(158px) translateX(2px); } .book-cover-back li:last-child:after, .book-cover-back li:last-child:before { width: 4px; height: 160px; } .book-cover-back li:last-child:after { transform: rotateX(90deg) rotateZ(90deg) translateZ(80px) translateX(2px) translateY(-78px); } .book-cover-back li:last-child:before { box-shadow: 10px -1px 80px 20px #666; transform: rotateX(90deg) rotateZ(90deg) translateZ(-140px) translateX(2px) translateY(-78px); } .book-line { transform: rotateY(60deg) translateX(-5px) translateZ(-12px); width: 16px; z-index: 0; } .book-line li:first-child { transform: translateZ(2px); } .book-line li:last-child { transform: translateZ(-2px); } .book-line li:first-child:after, .book-line li:first-child:before { width: 4px; height: 100%; } .book-line li:first-child:after { transform: rotateY(90deg) translateZ(-2px) translateX(2px); } .book-line li:first-child:before { transform: rotateY(-90deg) translateZ(-12px); } .book-line li:last-child:after, .book-line li:last-child:before { width: 4px; height: 16px; } .book-line li:last-child:after { transform: rotateX(90deg) rotateZ(90deg) translateZ(8px) translateX(2px) translateY(-6px); } .book-line li:last-child:before { box-shadow: 5px -1px 100px 40px rgba(0, 0, 0, 0.2); transform: rotateX(90deg) rotateZ(90deg) translateZ(-210px) translateX(2px) translateY(-6px); } .pages-inner, .pages-inner > li { position: absolute; top: 0; left: 0; transform-style: preserve-3d; } .pages-inner { width: 100%; height: 98%; top: 1%; left: 3%; z-index: 10; } .pages-inner > li { width: 100%; height: 100%; transform-origin: left center; transition-property: transform; transition-timing-function: ease; } .pages-inner > li:nth-child(1) { transition-duration: 0.6s; } .pages-inner > li:nth-child(2) { transition-duration: 0.6s; } .pages-inner > li:nth-child(3) { transition-duration: 0.4s; } .pages-inner > li:nth-child(4) { transition-duration: 0.5s; } .pages-inner > li:nth-child(5) { transition-duration: 0.6s; } .book:hover > .book-cover-front { transform: rotateY(-145deg) translateZ(0); z-index: 0; } .book:hover > .pages-inner li:nth-child(1) { transform: rotateY(-30deg); transition-duration: 1.5s; } .book:hover > .pages-inner li:nth-child(2) { transform: rotateY(-35deg); transition-duration: 1.8s; } .book:hover > .pages-inner li:nth-child(3) { transform: rotateY(-118deg); transition-duration: 1.6s; } .book:hover > .pages-inner li:nth-child(4) { transform: rotateY(-130deg); transition-duration: 1.4s; } .book:hover > .pages-inner li:nth-child(5) { transform: rotateY(-140deg); transition-duration: 1.2s; }
34
Book page animation
By:
rald_dev
*{ 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%); }
34
Perpetual Animation
By:
rald_dev
* { margin:0; padding:0; box-sizing:border-box; } body { background-color:#0dc5c1; } .line_height { width:10px; height:50px; background-color:#fff; position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); animation:move 04s linear infinite; animation-delay:-0.16s; } .line_height:before, .line_height:after { content:""; position:absolute; width:10px; height:50px; background-color:#fff; animation:move 04s ease-in-out infinite; } .line_height:before { left:-25px; animation-delay:-0.32s; } .line_height:after { left:25px; } @keyframes move { 0%,80%,100% { height:48px; box-shadow:0 0; } 40% { height:60px; box-shadow:0 -24px; } }
34
Line Animation
By:
rald_dev
L
o
a
d
i
n
g
.
.
.
* { padding: 0; margin: 0; box-sizing: border-box; } body { background-color: #111; display: flex; justify-content: center; align-items: center; min-height: 100vh; } .waviy { position: relative; -webkit-box-reflect: below -20px linear-gradient(transparent, rgba(0,0,0,.2)); } .waviy span { position: relative; display: inline-block; font-size: 40px; color: #fff; text-transform: uppercase; animation: waviy 1s infinite; animation-delay: calc(.1s * var(--i)) } @keyframes waviy { 0%,40%,100% { transform: translateY(0) } 20% { transform: translateY(-20px) } }
34
Wavy text animation
By:
rald_dev
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); }
33
Growing Flower Plant Animation
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; }
32
Simple Slide Animation
By:
rald_dev
text reveal
body { background-color: #bedcff; font-family: Helvetica; font-weight: bold; } .container { padding: 100px 20px 0; max-width: 960px; margin: 0 auto; } h1 { margin: 0; text-align: center; font-size: 200px; overflow: hidden; line-height: 1; } h1 span { display: block; animation: reveal 1.5s cubic-bezier(0.77, 0, 0.175, 1) 0.5s; } @keyframes reveal { 0% { transform: translate(0,100%); } 100% { transform: translate(0,0); } }
32
Text reveal animation
By:
rald_dev
:root { --main-bg: #c9e8f7; --stroke-width: 6px; --stroke-color: #28354e; --cup-color: #ffffff; --cup-color-shadow: #dfded1; --cup-red: #c94f50; --cup-red-light: #fe6b68; --tebag-color: #f2f2f2; --teebag-content: #4cb5ae; --teabag-pores: #61616145; } html { box-sizing: border-box; } *, *::before, *::after { box-sizing: inherit; margin: 0; padding: 0; } .visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; white-space: nowrap; clip: rect(0 0 0 0); clip-path: inset(50%); } body { position: relative; display: flex; justify-content: center; align-items: center; padding: 1rem; min-height: 100vh; font-family: sans-serif; color: #ffffff; background-color: var(--main-bg); overflow: hidden; } .wrapper { display: flex; flex-direction: column; justify-content: center; align-items: center; max-height: 500px; } .eyes { display: flex; justify-content: space-between; } .eye { position: relative; border-radius: 150px 150px 0 0; border: var(--stroke-width) solid var(--stroke-color); border-bottom: none; } .eye::before, .eye::after { content: ""; position: absolute; bottom: calc(var(--stroke-width) / 2 * -1); display: block; width: var(--stroke-width); height: var(--stroke-width); border-radius: 50%; background-color: var(--stroke-color); } .eye:before { left: calc(var(--stroke-width) * -1); } .eye:after { right: calc(var(--stroke-width) * -1); } .teabag { position: relative; width: 130px; animation: teabag 6s ease-in infinite, brew 6s linear infinite; z-index: 1; } .teabag::before { content: ""; position: absolute; bottom: calc(100% - 15px); left: 50%; transform: translatex(-50%); display: block; width: 6px; height: 450px; background-color: var(--stroke-color); z-index: 2; } .teabag__top { position: relative; width: 100%; height: 0; border-bottom: 40px solid var(--tebag-color); border-left: 25px solid transparent; border-right: 25px solid transparent; } .teabag__top::before { content: ""; position: absolute; top: 15px; left: 50%; transform: translateX(-50%); display: block; width: 40px; height: 10px; border-radius: 10px; background-color: var(--main-bg); } .teabag__body { position: relative; width: 100%; height: 130px; padding: 30px 15px 15px; background-color: var(--tebag-color); border-radius: 0 0 2px 2px; } .teabag__body::before, .teabag__body::after { content: ""; position: absolute; bottom: 5px; display: block; width: 20px; height: 20px; background-color: var(--teabag-brewed); border-radius: 0 50% 50% 50%; rotate: 45deg; z-index: -1; } .teabag__body::before { left: 35px; animation: drop 6s ease-in 4.5s infinite; } .teabag__body::after { right: 35px; width: 15px; height: 15px; animation: drop 6s ease-in 4s infinite; } .teabag__content { width: 100%; height: 100%; padding: 30px 15px; background-color: var(--teebag-content); border-radius: 2px; transition: all .5s ease-out; } .teabag__eye { width: 20px; height: 10px; } .teabag__mouth { width: 20px; height: 10px; margin: 10px auto 0; border-radius: 0 0 150px 150px; background-color: var(--stroke-color); } .teabag__pores { position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%); display: grid; grid-template-columns: repeat(4, 12px); justify-content: space-between; gap: 10px; width: 100%; padding: 20px; transition: all .5s ease-out; } .teabag__pore { width: 12px; height: 12px; margin: auto; background-color: var(--teabag-pores); border-radius: 50%; } .teabag__pore:nth-child(1), .teabag__pore:nth-child(2), .teabag__pore:nth-child(11), .teabag__pore:nth-child(12), .teabag__pore:nth-child(13), .teabag__pore:nth-child(14) { grid-column-start: span 2; } .teabag__pore:nth-child(1), .teabag__pore:nth-child(13) { margin-right: 0; } .teabag__pore:nth-child(2), .teabag__pore:nth-child(14) { margin-left: 0; } .teabag__pore:nth-child(11) { margin-left: 0; } .teabag__pore:nth-child(12) { margin-right: 0; } .teabag__pore:nth-child(11), .teabag__pore:nth-child(12) { margin-top: 12px; } .teabag__pore:nth-child(13), .teabag__pore:nth-child(14) { margin-top: -8px; } .cup__body { position: relative; margin: 0 auto; width: 190px; height: 160px; padding: 40px 32px; border-radius: 20px 20px 50% 50%; background-color: var(--cup-color); z-index: 1; } .cup__eyes { --stroke-width: 8px; position: absolute; width: calc(100% - 64px); } .cup__eye { width: 30px; height: 15px; animation: blink 6s steps(1) infinite; } .cup__eye::before, .cup__eye::after { animation: hidden 6s steps(1) infinite; } .cup__mouth { position: relative; width: 40px; height: 28px; margin: 35px auto 0; border-radius: 5px 5px 60% 60%; background-color: var(--cup-red-light); background-image: radial-gradient(var(--cup-red) 50%, transparent 50%); background-position: 0 10px; background-repeat: no-repeat; } .cup__mouth::before { content: ""; position: absolute; top: -5px; left: 50%; transform: translatex(-50%); width: 85%; height: 10px; border-radius: 0 0 180% 180% / 0 0 300% 300%; background-color: var(--cup-color); } .cup__handle { position: relative; display: flex; justify-content: center; align-items: center; width: 85px; height: 85px; margin-left: auto; margin-top: -135px; margin: -135px -30px 0 auto; border-radius: 50%; background: linear-gradient(to right, var(--cup-color-shadow) 50%, var(--cup-color) 50%); z-index: 0; } .cup__handle::after { content: ""; display: block; width: 60%; height: 60%; border-radius: 50%; background: var(--main-bg); } .cup__saucer { position: relative; margin-top: 35px; } .cup__saucer::before { content: ""; position: absolute; bottom: -30px; left: 50%; transform: translateX(-50%); display: block; width: 300px; height: 50px; border-radius: 50%; background-color: #91d5f1; z-index: -1; } .cup__saucer-top { position: relative; width: 250px; height: 25px; margin-inline: auto; background-color: var(--cup-color); border-radius: 20px; z-index: 1; } .cup__saucer-bottom { width: 210px; height: 25px; margin: -8px auto 0; background: linear-gradient(to bottom, var(--cup-color-shadow) 60%, var(--cup-color) 60%); border-radius: 20px; } @keyframes blink { 20% { height: 30px; background-color: var(--stroke-color); border-bottom: 8px solid var(--stroke-color); border-radius: 50%; } } @keyframes hidden { 20% { visibility: hidden; } } @keyframes teabag { 0% { transform: translateY(-200px); } 20% { transform: translateY(150px); } 25% { transform: translateY(130px); } 35% { transform: translateY(150px); } 40% { transform: translateY(120px); } 50% { transform: translateY(130px); } 60%, 90% { transform: translateY(-50px); } 100% { transform: translateY(-200px); } } @keyframes brew { to { --teebag-content: #c48473; --teabag-pores: #5f3c334f; } } @keyframes drop { 10%, 100% { translate: 0 150px; opacity: 0; } }
32
Tea Brewing
By:
jusar
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; } }
32
3d box-ball animation
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);} }
30
Animated Button
By:
rald_dev
1
2
3
…
5
Next