A Pen by Hillary Thomas on CodePen.
Created
July 26, 2022 11:11
-
-
Save yuri-ktm/7af909385d34b33ad1feb437c3ae380c to your computer and use it in GitHub Desktop.
Loading Animation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <div class="loader"> | |
| <div class="bar1"></div> | |
| <div class="bar2"></div> | |
| <div class="bar3"></div> | |
| <div class="bar4"></div> | |
| <div class="bar5"></div> | |
| <div class="bar6"></div> | |
| </div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| body,html { | |
| background-color: #1c2020; | |
| height: 100%; | |
| position: relative; | |
| overflow: hidden; | |
| } | |
| .loader { | |
| margin: 0 auto; | |
| width: 60px; | |
| height: 50px; | |
| text-align: center; | |
| font-size: 10px; | |
| position: absolute; | |
| top: 50%; | |
| left: 50%; | |
| -webkit-transform: translateY(-50%) translateX(-50%); | |
| > div { | |
| height: 100%; | |
| width: 8px; | |
| display: inline-block; | |
| float: left; | |
| margin-left: 1px; | |
| -webkit-animation: delay 1.8s infinite ease-in-out; | |
| animation: delay 1.8s infinite ease-in-out; | |
| } | |
| .bar1{ | |
| background-color: #754fa0 ; | |
| border-radius: 25px; | |
| } | |
| .bar2{ | |
| background-color: #09b7bf; | |
| -webkit-animation-delay: -1.7s; | |
| animation-delay: -1.7s; | |
| border-radius: 25px; | |
| } | |
| .bar3{ | |
| background-color: #90d36b; | |
| -webkit-animation-delay: -1.6s; | |
| animation-delay: -1.6s; | |
| border-radius: 25px; | |
| } | |
| .bar4{ | |
| background-color: #f2d40d; | |
| -webkit-animation-delay: -1.5s; | |
| animation-delay: -1.5s; | |
| border-radius: 25px; | |
| } | |
| .bar5{ | |
| background-color: #fcb12b; | |
| -webkit-animation-delay: -1.4s; | |
| animation-delay: -1.4s; | |
| border-radius: 25px; | |
| } | |
| .bar6{ | |
| background-color: #ed1b72; | |
| -webkit-animation-delay: -0.3s; | |
| animation-delay: -1.3s; | |
| border-radius: 25px; | |
| } | |
| } | |
| @-webkit-keyframes delay { | |
| 0%, 40%, 100% { -webkit-transform: scaleY(0.05) } | |
| 20% { -webkit-transform: scaleY(1.0) } | |
| } | |
| @keyframes delay { | |
| 0%, 40%, 100% { | |
| transform: scaleY(0.05); | |
| -webkit-transform: scaleY(0.05); | |
| } 20% { | |
| transform: scaleY(1.0); | |
| -webkit-transform: scaleY(1.0); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment