Плавно падающие разноцветные листья на SVG и HTML5 Canvas
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 |
svg { display: block; width: 100%; height: 100%; } #storage { position: absolute; left: -100%; top: -100%; } #leafTemplate .stem { fill: currentColor; } .light-red { fill: #e57373; color: #d93232; } .red { fill: #f44336; color: #d2190b; } .dark-red { fill: #d32f2f; color: #962020; } .light-orange { fill: #ffb74d; color: #ff9801; } .orange { fill: #ff9800; color: #b36a00; } .dark-orange { fill: #f57c00; color: #a95500; } .light-yellow { fill: #fff176; color: #ffe92a; } .yellow { fill: #ffeb3b; color: #eed500; } .dark-yellow { fill: #fbc02d; color: #d79b04; } .light-green { fill: #81c784; color: #4dae52; } .green { fill: #4caf50; color: #357a38; } .dark-green { fill: #388e3c; color: #225725; } .light-purple { fill: #ba68c8; color: #973da7; } .purple { fill: #9c27b0; color: #641971; } .dark-purple { fill: #7b1fa2; color: #4a1362; } |
1 2 |
<script type="text/javascript" src="/js/script1.js"></script> <script type="text/javascript" src="/js/script2.js"></script> |