162 views
CSSAdd prefixes
1#pen1 { 2 animation: pen1 2s infinite ease; 3} 4 5#pen2 { 6 animation: pen2 2s infinite ease; 7} 8 9#pen3 { 10 animation: pen3 2s infinite ease; 11} 12 13#loader { 14 animation: loaderColor 5s infinite ease; 15} 16 17@keyframes pen1 { 18 0% { 19 transform: translateY(0px); 20 } 21 22 15% { 23 transform: translateY(-10px); 24 } 25 26 30% { 27 transform: translateY(0px); 28 } 29} 30 31@keyframes pen2 { 32 30% { 33 transform: translateY(0px); 34 } 35 36 45% { 37 transform: translateY(-10px); 38 } 39 40 60% { 41 transform: translateY(0px); 42 } 43} 44 45@keyframes pen3 { 46 60% { 47 transform: translateY(0px); 48 } 49 50 75% { 51 transform: translateY(-10px); 52 } 53 54 90% { 55 transform: translateY(0px); 56 } 57} 58 59@keyframes loaderColor { 60 0% { 61 fill: #513B56; 62 } 63 64 33% { 65 fill: #348AA7; 66 } 67 68 66% { 69 fill: #5DD39E; 70 } 71 72 100% { 73 fill: #513B56; 74 } 75}
HTML
1<div class="content"> 2 <svg id="loader" xmlns="http://www.w3.org/2000/svg" width="150" height="150" viewBox="0 -10 261 355"> 3 <g> 4 <path d="M230.023 80.02l-.023.03v15.044l-11.96.006v20.75l-19.354 9.142V95.107l-9.93-.04v34.6l-19.417 9.254-.003-43.777-14.146-.016v50.414l-19.354 9.146.002-59.55-9.93.027v59.434l-19.508-9.212V95.15l-13.774-.13-.002 43.766-19.332-9.053V95.12l-9.97.045v29.893l-19.398-9.187V95.177l-11.983.006v15.03l-17.122-8.09 17.078-6.983V80.22L.286 95.257 0 95.12v188.953l123.418 58.308 7.543 3.56 7.542-3.56 123.42-58.306V95.12l-.233.11-31.667-15.06zm-.002 15.076l17.126 7.002-17.125 8.09zM15.083 118.93l108.336 51.177v155.59L15.082 274.52zm231.756 0v155.59l-108.336 51.177v-155.59z"> 5 </path> 6 <path id="pen1" d="M68.26.058L31.934 51.22l.002 58.06H43.9V59.536h19.423v49.742h9.97V59.536H92.62v49.742h11.967V51.22l-1.105-1.554L68.262.058zm6.43 29.72l14.047 19.788H47.784L61.67 30.01l13.02-.23z"> 7 </path> 8 <path id="pen2" d="M130.808 13.936L94.48 65.098l.002 58.058h11.964V73.414h19.424v49.742h9.97V73.414h19.327v49.742h11.967V65.098l-1.105-1.555-35.222-49.607zm6.427 29.72l14.05 19.787H110.33l13.886-19.556 13.02-.23z"> 9 </path> 10 <path id="pen3" d="M193.684.083l-36.328 51.162.002 58.058h11.965V59.56h19.424v49.743h9.97V59.56h19.326v49.743h11.967V51.245l-1.105-1.555L193.685.083zm6.428 29.72l14.05 19.787h-40.955l13.885-19.556 13.02-.23z"> 11 </path> 12 </g> 13 </svg> 14</div>