Last active
December 19, 2015 02:48
-
-
Save tammofreese/5885219 to your computer and use it in GitHub Desktop.
CSS3 spinner based on http://kilianvalkhof.com/2010/css-xhtml/css3-loading-spinners-without-images/
– but without javascript for the more beautiful spinner.
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
| <html> | |
| <head> | |
| <style> | |
| .bar0 { | |
| -webkit-transform:rotate3d(0,0,1,0deg); | |
| -webkit-animation-delay:-0.9s; | |
| } | |
| .bar1 { | |
| -webkit-transform:rotate3d(0,0,1,36deg); | |
| -webkit-animation-delay:-0.8s; | |
| } | |
| .bar2 { | |
| -webkit-transform:rotate3d(0,0,1,72deg); | |
| -webkit-animation-delay:-0.7s; | |
| } | |
| .bar3 { | |
| -webkit-transform:rotate3d(0,0,1,108deg); | |
| -webkit-animation-delay:-0.6s; | |
| } | |
| .bar4 { | |
| -webkit-transform:rotate3d(0,0,1,144deg); | |
| -webkit-animation-delay:-0.5s; | |
| } | |
| .bar5 { | |
| -webkit-transform:rotate3d(0,0,1,180deg); | |
| -webkit-animation-delay:-0.4s; | |
| } | |
| .bar6 { | |
| -webkit-transform:rotate3d(0,0,1,216deg); | |
| -webkit-animation-delay:-0.3s; | |
| } | |
| .bar7 { | |
| -webkit-transform:rotate3d(0,0,1,252deg); | |
| -webkit-animation-delay:-0.2s; | |
| } | |
| .bar8 { | |
| -webkit-transform:rotate3d(0,0,1,288deg); | |
| -webkit-animation-delay:-0.1s; | |
| } | |
| .bar9 { | |
| -webkit-transform:rotate3d(0,0,1,324deg); | |
| -webkit-animation-delay:-0.0s; | |
| } | |
| .activity_indicator { | |
| display:inline-block; | |
| vertical-align:middle; | |
| position:relative; | |
| overflow:visible; | |
| width:40px; | |
| height:40px; | |
| } | |
| .activity_indicator div { | |
| width:10%; | |
| height:25%; | |
| background:#000; | |
| position:absolute; | |
| top:0%; | |
| left:45%; | |
| -webkit-transform-origin:50% 200%; | |
| -webkit-animation-name: fobFade; | |
| -webkit-animation-duration: 1s; | |
| -webkit-animation-timing-function: ease-out; | |
| -webkit-animation-iteration-count: infinite; | |
| } | |
| @-webkit-keyframes fobFade { | |
| from {opacity:1.0;} | |
| to {opacity:0.0;} | |
| } | |
| </style> | |
| </head> | |
| <body> | |
| <div class="activity_indicator"> | |
| <div class="bar0"></div> | |
| <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 class="bar7"></div> | |
| <div class="bar8"></div> | |
| <div class="bar9"></div> | |
| </div> | |
| </body> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment