SVG loading animacija

Minimalna "loading" animacija u svijetloj i tamnoj varijaciji. Ima "flex center", pa bi se trebalo lagano uklopiti u html elemente. Light: <div style="display: flex; align-items:...
Minimalna "loading" animacija u svijetloj i tamnoj varijaciji. Ima "flex center", pa bi se trebalo lagano uklopiti u html elemente. Light: <div style="display: flex; align-items: center; justify-content: center; height: 100%;"> <svg width="38" height="38" viewBox="0 0 38 38" xmlns="http://www.w3.org/2000/svg" stroke="#000"> <g fill="none" fill-rule="evenodd"> <g transform="translate(1 1)" stroke-width="2"> <circle stroke-opacity=".3" cx="18" cy="18" r="18"/> <path d="M36 18c0-9.94-8.06-18-18-18"> <animateTransform attributeName="transform" type="rotate" from="0 18 18" to="360 18 18" dur="1s" repeatCount="indefinite"/> </path> </g> </g> </svg> </div> Dark: <div style="display: flex; align-items: center; justify-content: center; height: 100%;"> <svg width="38" height="38" viewBox="0 0 38 38" xmlns="http://www.w3.org/2000/svg" stroke="#fff"> <g fill="none" fill-rule="evenodd"> <g transform="translate(1 1)" stroke-width="2"> <circle stroke-opacity=".5" cx="18" cy="18"...