| Matteo Scandolo | 042ea63 | 2017-03-01 19:02:34 -0800 | [diff] [blame] | 1 | @import '../vars'; |
| 2 | |||||
| 3 | .loader, | ||||
| 4 | .loader:before, | ||||
| 5 | .loader:after { | ||||
| 6 | background: $color-accent; | ||||
| 7 | animation: loaderAnimation 1s infinite ease-in-out; | ||||
| 8 | width: 1em; | ||||
| 9 | height: 4em; | ||||
| 10 | } | ||||
| 11 | .loader { | ||||
| 12 | color: $color-accent; | ||||
| 13 | text-indent: -9999em; | ||||
| 14 | margin: 88px auto; | ||||
| 15 | position: relative; | ||||
| 16 | font-size: 11px; | ||||
| 17 | transform: translateZ(0); | ||||
| 18 | animation-delay: -0.16s; | ||||
| 19 | } | ||||
| 20 | .loader:before, | ||||
| 21 | .loader:after { | ||||
| 22 | position: absolute; | ||||
| 23 | top: 0; | ||||
| 24 | content: ''; | ||||
| 25 | } | ||||
| 26 | .loader:before { | ||||
| 27 | left: -1.5em; | ||||
| 28 | animation-delay: -0.32s; | ||||
| 29 | } | ||||
| 30 | .loader:after { | ||||
| 31 | left: 1.5em; | ||||
| 32 | } | ||||
| 33 | |||||
| 34 | @keyframes loaderAnimation { | ||||
| 35 | 0%, | ||||
| 36 | 80%, | ||||
| 37 | 100% { | ||||
| 38 | box-shadow: 0 0; | ||||
| 39 | height: 4em; | ||||
| 40 | } | ||||
| 41 | 40% { | ||||
| 42 | box-shadow: 0 -2em; | ||||
| 43 | height: 5em; | ||||
| 44 | } | ||||
| 45 | } | ||||