A Pen by Nunaram Hembram on CodePen.
Created
July 4, 2016 04:09
-
-
Save anonymous/5151b18a0598f41f81660d72f6281361 to your computer and use it in GitHub Desktop.
Colorful Dot Loading
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
| #overlay | |
| %ul.loading | |
| %li.blue | |
| %li.green | |
| %li.yellow | |
| %li.pink |
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
| <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script> |
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{ | |
| background:url(https://pixabay.com/static/uploads/photo/2014/12/15/17/17/scuba-diver-569333_960_720.jpg) no-repeat center center fixed; | |
| background-size:cover; | |
| overflow:hidden; | |
| } | |
| #overlay{ | |
| position:fixed; | |
| top:0; | |
| left:0; | |
| height:100%; | |
| width:100%; | |
| z-index:1; | |
| background-color:rgba(0,0,0,0.8); | |
| } | |
| .loading{ | |
| position: absolute; | |
| top: 50%; left: 50%; | |
| margin: 0; | |
| padding: 0; | |
| list-style: none; | |
| transform: translateX(-50%) translateY(-50%); | |
| z-index:999; | |
| li{ | |
| position: absolute; | |
| top: 0; | |
| height: 10px; | |
| width: 10px; | |
| padding: 0; | |
| margin: 0; | |
| border-radius: 50%; | |
| &.pink{ | |
| left: -15px; | |
| background: #f03; | |
| animation: loading-animated 3s ease-in-out infinite; | |
| } | |
| &.yellow{ | |
| left: 0px; | |
| background: #ff0; | |
| animation: loading-animated 3s ease-in-out 0.3s infinite; | |
| } | |
| &.green{ | |
| left: 15px; | |
| background: #0c0; | |
| animation: loading-animated 3s ease-in-out 0.5s infinite; | |
| } | |
| &.blue{ | |
| left: 30px; | |
| background: #0cf; | |
| animation: loading-animated 3s ease-in-out 0.7s infinite; | |
| } | |
| } | |
| } | |
| @keyframes loading-animated { | |
| 0% { | |
| transform: translateX(-200px) scale(0); | |
| } | |
| 50%{ | |
| transform: translateX(0px) scale(1.5); | |
| } | |
| 100% { | |
| transform: translateX(200px) scale(0); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment