|
| 1 | +html { |
| 2 | + background: #333; |
| 3 | +} |
| 4 | + |
| 5 | +.bar { |
| 6 | + margin: 20px; |
| 7 | + background: red; |
| 8 | + width: 40px; |
| 9 | + height: 20px; |
| 10 | +} |
| 11 | + |
| 12 | +.css, .sass, .gsap { |
| 13 | + float: left; |
| 14 | +} |
| 15 | + |
| 16 | +.css { |
| 17 | + margin-left: 40%; |
| 18 | +} |
| 19 | + |
| 20 | +@-webkit-keyframes staggerFoo { |
| 21 | + to { |
| 22 | + background: orange; |
| 23 | + -webkit-transform: rotate(90deg); |
| 24 | + transform: rotate(90deg); |
| 25 | + } |
| 26 | +} |
| 27 | + |
| 28 | +@keyframes staggerFoo { |
| 29 | + to { |
| 30 | + background: orange; |
| 31 | + -webkit-transform: rotate(90deg); |
| 32 | + transform: rotate(90deg); |
| 33 | + } |
| 34 | +} |
| 35 | +.css .bar:nth-child(1) { |
| 36 | + -webkit-animation: staggerFoo 1s 0.1s ease-out both; |
| 37 | + animation: staggerFoo 1s 0.1s ease-out both; |
| 38 | +} |
| 39 | + |
| 40 | +.css .bar:nth-child(2) { |
| 41 | + -webkit-animation: staggerFoo 1s 0.2s ease-out both; |
| 42 | + animation: staggerFoo 1s 0.2s ease-out both; |
| 43 | +} |
| 44 | + |
| 45 | +.css .bar:nth-child(3) { |
| 46 | + -webkit-animation: staggerFoo 1s 0.3s ease-out both; |
| 47 | + animation: staggerFoo 1s 0.3s ease-out both; |
| 48 | +} |
| 49 | + |
| 50 | +.css .bar:nth-child(4) { |
| 51 | + -webkit-animation: staggerFoo 1s 0.4s ease-out both; |
| 52 | + animation: staggerFoo 1s 0.4s ease-out both; |
| 53 | +} |
| 54 | + |
| 55 | +.css .bar:nth-child(5) { |
| 56 | + -webkit-animation: staggerFoo 1s 0.5s ease-out both; |
| 57 | + animation: staggerFoo 1s 0.5s ease-out both; |
| 58 | +} |
| 59 | + |
| 60 | +.css .bar:nth-child(6) { |
| 61 | + -webkit-animation: staggerFoo 1s 0.5s ease-out both; |
| 62 | + animation: staggerFoo 1s 0.5s ease-out both; |
| 63 | +} |
| 64 | + |
| 65 | +.sass .bar:nth-child(1) { |
| 66 | + -webkit-animation: staggerFoo 1s 1.1s ease-out both; |
| 67 | + animation: staggerFoo 1s 1.1s ease-out both; |
| 68 | +} |
| 69 | + |
| 70 | +.sass .bar:nth-child(2) { |
| 71 | + -webkit-animation: staggerFoo 1s 1.2s ease-out both; |
| 72 | + animation: staggerFoo 1s 1.2s ease-out both; |
| 73 | +} |
| 74 | + |
| 75 | +.sass .bar:nth-child(3) { |
| 76 | + -webkit-animation: staggerFoo 1s 1.3s ease-out both; |
| 77 | + animation: staggerFoo 1s 1.3s ease-out both; |
| 78 | +} |
| 79 | + |
| 80 | +.sass .bar:nth-child(4) { |
| 81 | + -webkit-animation: staggerFoo 1s 1.4s ease-out both; |
| 82 | + animation: staggerFoo 1s 1.4s ease-out both; |
| 83 | +} |
| 84 | + |
| 85 | +.sass .bar:nth-child(5) { |
| 86 | + -webkit-animation: staggerFoo 1s 1.5s ease-out both; |
| 87 | + animation: staggerFoo 1s 1.5s ease-out both; |
| 88 | +} |
| 89 | + |
| 90 | +.sass .bar:nth-child(6) { |
| 91 | + -webkit-animation: staggerFoo 1s 1.6s ease-out both; |
| 92 | + animation: staggerFoo 1s 1.6s ease-out both; |
| 93 | +} |
| 94 | + |
| 95 | +h2 { |
| 96 | + text-align: center; |
| 97 | + color: #666; |
| 98 | +} |
0 commit comments