|
| 1 | +#confetti rect { |
| 2 | + opacity: 0; |
| 3 | +} |
| 4 | + |
| 5 | +#confetti rect:nth-child(1) { |
| 6 | + transform-origin: 45px 5px; |
| 7 | + transform: rotate(-145deg); |
| 8 | + animation: blast 631ms 88ms infinite ease-out; |
| 9 | +} |
| 10 | + |
| 11 | +#confetti rect:nth-child(2) { |
| 12 | + transform-origin: 87px 5px; |
| 13 | + transform: rotate(164deg); |
| 14 | + animation: blast 442ms 131ms infinite ease-out; |
| 15 | +} |
| 16 | + |
| 17 | +#confetti rect:nth-child(3) { |
| 18 | + transform-origin: 128px 6px; |
| 19 | + transform: rotate(4deg); |
| 20 | + animation: blast 662ms 92ms infinite ease-out; |
| 21 | +} |
| 22 | + |
| 23 | +#confetti rect:nth-child(4) { |
| 24 | + transform-origin: 170px 6px; |
| 25 | + transform: rotate(-175deg); |
| 26 | + animation: blast 593ms 17ms infinite ease-out; |
| 27 | +} |
| 28 | + |
| 29 | +#confetti rect:nth-child(5) { |
| 30 | + transform-origin: 213px 5px; |
| 31 | + transform: rotate(-97deg); |
| 32 | + animation: blast 476ms 122ms infinite ease-out; |
| 33 | +} |
| 34 | + |
| 35 | +#confetti rect:nth-child(6) { |
| 36 | + transform-origin: 255px 6px; |
| 37 | + transform: rotate(57deg); |
| 38 | + animation: blast 381ms 271ms infinite ease-out; |
| 39 | +} |
| 40 | + |
| 41 | +#confetti rect:nth-child(7) { |
| 42 | + transform-origin: 297px 5px; |
| 43 | + transform: rotate(-46deg); |
| 44 | + animation: blast 619ms 131ms infinite ease-out; |
| 45 | +} |
| 46 | + |
| 47 | +#confetti rect:nth-child(8) { |
| 48 | + transform-origin: 338px 6px; |
| 49 | + transform: rotate(-65deg); |
| 50 | + animation: blast 668ms 85ms infinite ease-out; |
| 51 | +} |
| 52 | + |
| 53 | +#confetti rect:nth-child(9) { |
| 54 | + transform-origin: 380px 6px; |
| 55 | + transform: rotate(13deg); |
| 56 | + animation: blast 377ms 128ms infinite ease-out; |
| 57 | +} |
| 58 | + |
| 59 | +#confetti rect:nth-child(10) { |
| 60 | + transform-origin: 423px 5px; |
| 61 | + transform: rotate(176deg); |
| 62 | + animation: blast 508ms 311ms infinite ease-out; |
| 63 | +} |
| 64 | + |
| 65 | +#confetti rect:nth-child(11) { |
| 66 | + transform-origin: 465px 5px; |
| 67 | + transform: rotate(108deg); |
| 68 | + animation: blast 595ms 108ms infinite ease-out; |
| 69 | +} |
| 70 | + |
| 71 | +#confetti rect:nth-child(12) { |
| 72 | + transform-origin: 506px 6px; |
| 73 | + transform: rotate(62deg); |
| 74 | + animation: blast 375ms 105ms infinite ease-out; |
| 75 | +} |
| 76 | + |
| 77 | +#confetti rect:nth-child(13) { |
| 78 | + transform-origin: 549px 5px; |
| 79 | + transform: rotate(16deg); |
| 80 | + animation: blast 491ms 149ms infinite ease-out; |
| 81 | +} |
| 82 | + |
| 83 | +/* pattern-based styling */ |
| 84 | +#confetti rect:nth-child(odd) { |
| 85 | + fill: #65bb5c; |
| 86 | +} |
| 87 | + |
| 88 | +#confetti rect:nth-child(even) { |
| 89 | + fill: #33aaff; |
| 90 | +} |
| 91 | + |
| 92 | +#confetti rect:nth-child(4n) { |
| 93 | + fill: #f23b14; |
| 94 | + animation-duration: 1400ms !important; |
| 95 | +} |
| 96 | + |
| 97 | +#confetti rect:nth-child(3n) { |
| 98 | + animation-duration: 1750ms !important; |
| 99 | + animation-delay: 700ms !important; |
| 100 | +} |
| 101 | + |
| 102 | +#confetti rect:nth-child(4n-7) { |
| 103 | + fill: #2a2f6a; |
| 104 | +} |
| 105 | + |
| 106 | +#confetti rect:nth-child(6n) { |
| 107 | + fill: #fbba23; |
| 108 | +} |
| 109 | + |
| 110 | +@keyframes blast { |
| 111 | + from { |
| 112 | + opacity: 0; |
| 113 | + } |
| 114 | + |
| 115 | + 20% { |
| 116 | + opacity: 1; |
| 117 | + } |
| 118 | + |
| 119 | + to { |
| 120 | + transform: translateY(90px); |
| 121 | + } |
| 122 | +} |
0 commit comments