96 views
CSSAdd prefixes
1.preloader { 2 position: absolute; 3 margin-left: -55px; 4 margin-top: -100px; 5 height: 110px; 6 width: 110px; 7 left: 50%; 8 top: 50%; 9} 10 11svg { 12 width: 110px; 13 height: 110px; 14} 15 16path { 17 stroke: #9ea1a4; 18 stroke-width: 0.25; 19 fill: #241E20; 20} 21 22#cloud { 23 position: relative; 24 z-index: 2; 25} 26 27#cloud path { 28 fill: #efefef; 29} 30 31#sun { 32 margin-left: -10px; 33 margin-top: 6px; 34 opacity: 0; 35 width: 60px; 36 height: 60px; 37 position: absolute; 38 left: 45px; 39 top: 15px; 40 z-index: 1; 41 animation-name: rotate; 42 animation-duration: 16000ms; 43 animation-iteration-count: infinite; 44 animation-timing-function: linear; 45} 46 47#sun path { 48 stroke-width: 0.18; 49 fill: #9ea1a4; 50} 51 52@keyframes rotate { 53 0% { 54 transform: rotateZ(0deg); 55 } 56 57 100% { 58 transform: rotateZ(360deg); 59 } 60} 61 62/* Rain */ 63.rain { 64 position: absolute; 65 width: 70px; 66 height: 70px; 67 margin-top: -32px; 68 margin-left: 19px; 69} 70 71.drop { 72 opacity: 1; 73 background: #9ea1a4; 74 display: block; 75 float: left; 76 width: 3px; 77 height: 10px; 78 margin-left: 4px; 79 border-radius: 0px 0px 6px 6px; 80 animation-name: drop; 81 animation-duration: 350ms; 82 animation-iteration-count: infinite; 83} 84 85.drop:nth-child(1) { 86 animation-delay: -130ms; 87} 88 89.drop:nth-child(2) { 90 animation-delay: -240ms; 91} 92 93.drop:nth-child(3) { 94 animation-delay: -390ms; 95} 96 97.drop:nth-child(4) { 98 animation-delay: -525ms; 99} 100 101.drop:nth-child(5) { 102 animation-delay: -640ms; 103} 104 105.drop:nth-child(6) { 106 animation-delay: -790ms; 107} 108 109.drop:nth-child(7) { 110 animation-delay: -900ms; 111} 112 113.drop:nth-child(8) { 114 animation-delay: -1050ms; 115} 116 117.drop:nth-child(9) { 118 animation-delay: -1130ms; 119} 120 121.drop:nth-child(10) { 122 animation-delay: -1300ms; 123} 124 125@keyframes drop { 126 50% { 127 height: 45px; 128 opacity: 0; 129 } 130 131 51% { 132 opacity: 0; 133 } 134 135 100% { 136 height: 1px; 137 opacity: 0; 138 } 139} 140 141.text { 142 font-family: Helvetica, 'Helvetica Neue', sans-serif; 143 letter-spacing: 1px; 144 text-align: center; 145 margin-left: -43px; 146 font-weight: bold; 147 margin-top: 20px; 148 font-size: 11px; 149 color: #a0a0a0; 150 width: 200px; 151} 152
HTML
1<div class="preloader" style="opacity: 1;"> 2 <svg version="1.1" id="sun" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="10px" height="10px" viewBox="0 0 10 10" xml:space="preserve" style="opacity: 1; margin-left: 0px; margin-top: 0px;"> 3 <g> 4 <path fill="none" d="M6.942,3.876c-0.4-0.692-1.146-1.123-1.946-1.123c-0.392,0-0.779,0.104-1.121,0.301c-1.072,0.619-1.44,1.994-0.821,3.067C3.454,6.815,4.2,7.245,5,7.245c0.392,0,0.779-0.104,1.121-0.301C6.64,6.644,7.013,6.159,7.167,5.581C7.321,5,7.243,4.396,6.942,3.876z M6.88,5.505C6.745,6.007,6.423,6.427,5.973,6.688C5.676,6.858,5.34,6.948,5,6.948c-0.695,0-1.343-0.373-1.69-0.975C2.774,5.043,3.093,3.849,4.024,3.312C4.32,3.14,4.656,3.05,4.996,3.05c0.695,0,1.342,0.374,1.69,0.975C6.946,4.476,7.015,5,6.88,5.505z"></path> 5 <path fill="none" d="M8.759,2.828C8.718,2.757,8.626,2.732,8.556,2.774L7.345,3.473c-0.07,0.041-0.094,0.132-0.053,0.202C7.319,3.723,7.368,3.75,7.419,3.75c0.025,0,0.053-0.007,0.074-0.02l1.211-0.699C8.774,2.989,8.8,2.899,8.759,2.828z"></path> 6 <path fill="none" d="M1.238,7.171c0.027,0.047,0.077,0.074,0.128,0.074c0.025,0,0.051-0.008,0.074-0.02l1.211-0.699c0.071-0.041,0.095-0.133,0.054-0.203S2.574,6.228,2.503,6.269l-1.21,0.699C1.221,7.009,1.197,7.101,1.238,7.171z"></path> 7 <path fill="none" d="M6.396,2.726c0.052,0,0.102-0.026,0.13-0.075l0.349-0.605C6.915,1.976,6.89,1.885,6.819,1.844c-0.07-0.042-0.162-0.017-0.202,0.054L6.269,2.503C6.228,2.574,6.251,2.666,6.322,2.706C6.346,2.719,6.371,2.726,6.396,2.726z"></path> 8 <path fill="none" d="M3.472,7.347L3.123,7.952c-0.041,0.07-0.017,0.162,0.054,0.203C3.2,8.169,3.226,8.175,3.25,8.175c0.052,0,0.102-0.027,0.129-0.074l0.349-0.605c0.041-0.07,0.017-0.16-0.054-0.203C3.603,7.251,3.513,7.276,3.472,7.347z"></path> 9 <path fill="none" d="M3.601,2.726c0.025,0,0.051-0.007,0.074-0.02C3.746,2.666,3.77,2.574,3.729,2.503l-0.35-0.604C3.338,1.828,3.248,1.804,3.177,1.844C3.106,1.886,3.082,1.976,3.123,2.047l0.35,0.604C3.5,2.7,3.549,2.726,3.601,2.726z"></path> 10 <path fill="none" d="M6.321,7.292c-0.07,0.043-0.094,0.133-0.054,0.203l0.351,0.605c0.026,0.047,0.076,0.074,0.127,0.074c0.025,0,0.051-0.006,0.074-0.02c0.072-0.041,0.096-0.133,0.055-0.203l-0.35-0.605C6.483,7.276,6.393,7.253,6.321,7.292z"></path> 11 <path fill="none" d="M2.202,5.146c0.082,0,0.149-0.065,0.149-0.147S2.284,4.851,2.202,4.851H1.503c-0.082,0-0.148,0.066-0.148,0.148s0.066,0.147,0.148,0.147H2.202z"></path> 12 <path fill="none" d="M8.493,4.851H7.794c-0.082,0-0.148,0.066-0.148,0.148s0.066,0.147,0.148,0.147l0,0h0.699c0.082,0,0.148-0.065,0.148-0.147S8.575,4.851,8.493,4.851L8.493,4.851z"></path> 13 <path fill="none" d="M5.146,2.203V0.805c0-0.082-0.066-0.148-0.148-0.148c-0.082,0-0.148,0.066-0.148,0.148v1.398c0,0.082,0.066,0.149,0.148,0.149C5.08,2.352,5.146,2.285,5.146,2.203z"></path> 14 <path fill="none" d="M4.85,7.796v1.396c0,0.082,0.066,0.15,0.148,0.15c0.082,0,0.148-0.068,0.148-0.15V7.796c0-0.082-0.066-0.148-0.148-0.148C4.917,7.647,4.85,7.714,4.85,7.796z"></path> 15 <path fill="none" d="M2.651,3.473L1.44,2.774C1.369,2.732,1.279,2.757,1.238,2.828C1.197,2.899,1.221,2.989,1.292,3.031l1.21,0.699c0.023,0.013,0.049,0.02,0.074,0.02c0.051,0,0.101-0.026,0.129-0.075C2.747,3.604,2.722,3.514,2.651,3.473z"></path> 16 <path fill="none" d="M8.704,6.968L7.493,6.269c-0.07-0.041-0.162-0.016-0.201,0.055c-0.041,0.07-0.018,0.162,0.053,0.203l1.211,0.699c0.023,0.012,0.049,0.02,0.074,0.02c0.051,0,0.102-0.027,0.129-0.074C8.8,7.101,8.776,7.009,8.704,6.968z"></path> 17 </g> 18 </svg> 19 20 <svg version="1.1" id="cloud" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="10px" height="10px" viewBox="0 0 10 10" xml:space="preserve"> 21 <path fill="none" d="M8.528,5.624H8.247c-0.085,0-0.156-0.068-0.156-0.154c0-0.694-0.563-1.257-1.257-1.257c-0.098,0-0.197,0.013-0.3,0.038C6.493,4.259,6.45,4.252,6.415,4.229C6.38,4.208,6.356,4.172,6.348,4.131C6.117,3.032,5.135,2.235,4.01,2.235c-1.252,0-2.297,0.979-2.379,2.23c-0.004,0.056-0.039,0.108-0.093,0.13C1.076,4.793,0.776,5.249,0.776,5.752c0,0.693,0.564,1.257,1.257,1.257h6.495c0.383,0,0.695-0.31,0.695-0.692S8.911,5.624,8.528,5.624z"></path> 22 </svg> 23 24 <div class="rain"> 25 <span class="drop"></span> 26 <span class="drop"></span> 27 <span class="drop"></span> 28 <span class="drop"></span> 29 <span class="drop"></span> 30 <span class="drop"></span> 31 <span class="drop"></span> 32 <span class="drop"></span> 33 <span class="drop"></span> 34 <span class="drop"></span> 35 </div> 36 37 <div class="text"> 38 LOADING... 39 </div> 40</div>