Полигональный осенний пейзаж на чистом CSS3
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 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 |
body { height: 100%; background: #fff4b9; background: -webkit-gradient(radial, center center, 0px, center center, 100%, color-stop(0%, #fff4b9), color-stop(100%, #f5e7b9)); background: -webkit-radial-gradient(center, ellipse cover, #fff4b9 0%, #f5e7b9 100%); background: -webkit-radial-gradient(center ellipse, #fff4b9 0%, #f5e7b9 100%); background: radial-gradient(ellipse at center, #fff4b9 0%, #f5e7b9 100%); position: relative; padding-top: 100px; } .texture { position: absolute; background: url("/img/whitenoise-361x370.png") 0 0 repeat; width: 100%; height: 100%; top: 0; left: 0; opacity: 0.35; z-index: 5000; pointer-events: none; } .stage { position: relative; margin: 0 auto; width: 500px; height: 500px; border: 2px solid #FFF; border-radius: 50%; background: #f7f7bf; background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #fff4b9), color-stop(100%, #d9d2be)); background: -webkit-linear-gradient(top, #fff4b9 0%, #d9d2be 100%); background: linear-gradient(to bottom, #fff4b9 0%, #d9d2be 100%); overflow: hidden; } .sunset { display: block; position: absolute; width: 120px; height: 120px; background: rgba(255, 255, 255, 0.65); border-radius: 50%; top: 80px; left: 270px; box-shadow: 0 0 10px rgba(255, 255, 255, 0.65); } .mountains { position: absolute; top: 0; left: 0; width: 100%; } .mountains--background { height: 70%; margin-top: 30%; } .mountains--background li { list-style: none; position: absolute; border: 350px solid transparent; border-top-width: 0; width: 0; height: 0; top: 0; border-left-width: 450px; border-right-width: 450px; -webkit-filter: blur(2px); filter: blur(2px); } .mountains--background li:nth-child(1) { left: -300px; border-bottom-color: rgba(0, 0, 0, 0.1); border-top-width: 40px; z-index: 500; } .mountains--background li:nth-child(2) { z-index: 600; left: -100px; border-bottom-color: rgba(0, 0, 0, 0.12); border-top-width: 70px; } .mountains--foreground { height: 70%; margin-top: 30%; } .mountains--foreground li { list-style: none; position: absolute; border: 350px solid transparent; border-top-width: 0; width: 0; height: 0; top: 0; border-left-width: 140px; border-right-width: 140px; } .mountains--foreground li i { display: block; position: absolute; width: 0; height: 0; top: 0; left: -0; border: 100px solid rgba(255, 255, 255, 0.1); border-top-width: 0; border-left: 0px solid transparent; border-right: 96px solid transparent; -webkit-transform-origin: 0 0; transform-origin: 0 0; -webkit-transform: rotate(22deg); transform: rotate(22deg); } .mountains--foreground li:before { position: absolute; content: ''; display: block; width: 0; height: 0; border: 380px solid rgba(0, 0, 0, 0.25); border-top-width: 0; border-left: 0px solid transparent; border-right: 70px solid transparent; -webkit-transform-origin: 0 0; transform-origin: 0 0; -webkit-transform: rotate(-11.5deg); transform: rotate(-11.5deg); } .mountains--foreground li:after { position: absolute; content: ''; display: block; width: 0; height: 0; border: 380px solid rgba(0, 0, 0, 0.15); border-top-width: 0; border-left: 0px solid transparent; border-right: 78px solid transparent; -webkit-transform-origin: 0 0; transform-origin: 0 0; -webkit-transform: rotate(0deg); transform: rotate(0deg); } .mountains--foreground li:nth-child(1) { z-index: 1000; left: -60px; border-bottom-color: #BE8739; border-top-width: 40px; } .mountains--foreground li:nth-child(2) { z-index: 900; left: 60px; border-bottom-color: #D35126; border-top-width: 0; } .mountains--foreground li:nth-child(3) { z-index: 800; left: 190px; border-bottom-color: #AA6B70; border-top-width: 120px; } .mountains--foreground li:nth-child(4) { z-index: 700; left: 300px; border-bottom-color: #A25747; border-top-width: 20px; } |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
<span class="texture"></span> <main class="stage"> <span class="sunset"></span> <ul class="mountains mountains--foreground"> <li><i></i></li> <li><i></i></li> <li><i></i></li> <li><i></i></li> </ul> <ul class="mountains mountains--background"> <li></li> <li></li> </ul> </main> |