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; }
81
Flickering 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%); }
59
Perpetual 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; } }
58
Bouncing ball v2
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; } }
56
Line Animation
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; }
55
Book page 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) } }
53
Wavy text animation
By:
rald_dev
body { background: #ddd; } #ball { width: 150px; height: 150px; border-radius: 50%; position: fixed; top: 100px; left: 50%; transform: translate(-50%, -50%); background: #0075c9; background: linear-gradient(to top, #0075c9 0%,#0060a5 10%,#005089 25%,#0060a5 42%,#007fe0 73%,#2f9fef 100%); box-shadow: 0px 100px 100px 0px rgba(0,0,0,0.1); animation-name: bounce; animation-duration: 1.25s; animation-iteration-count: infinite; } @keyframes bounce { 50% { top: 60%; animation-timing-function: ease-out; height: 120px; box-shadow: 0px 5px 10px 0px rgba(0,0,0,0.75); } }
49
Bouncing ball
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); } }
49
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; } }
48
Tea Brewing
By:
jusar
*{ 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; }
48
Simple Slide Animation
By:
rald_dev
* { 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); } }
48
J.A.R.V.I.S 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);} }
47
Animated Button
By:
rald_dev
1
2
3
…
5
Next