<div class="loader"> <span class="icon"> <svg xmlns="http://www.w3.org/2000/svg" version="1.1" x="0" y="0" viewBox="0 0 100 100"> <ellipse transform="rotate(-21.283 49.994 75.642)" cx="50" cy="75.651" rx="19.347" ry="16.432" fill="currentColor"></ellipse> <path fill="currentColor" d="M58.474 7.5h10.258v63.568H58.474z"></path> </svg> </span> <span class="icon"> <svg xmlns="http://www.w3.org/2000/svg" version="1.1" x="0" y="0" viewBox="0 0 100 100"> <ellipse transform="rotate(-21.283 49.994 75.642)" cx="50" cy="75.651" rx="19.347" ry="16.432" fill="currentColor"></ellipse> <path fill="currentColor" d="M58.474 7.5h10.258v63.568H58.474z"></path> </svg>
.loader { --icon-count: 3; --inner-height: 4em; --ratio: 2/3; --period: 1s; display: flex; align-items: center; justify-content: center; height: var(--inner-height); width: calc(var(--inner-height) * var(--ratio) * var(--icon-count));