$text-background: rgba(255, 255, 255, 1); $text-colour: rgba(73, 49, 28, 1); [role="progressbar"] { position: relative; p { display: block; margin: 0; height: 60px; font-family: Sacramento, cursive; font-size: 3em; text-align: center; } &::before, &::after { display: block; height: 120px; font-family: Montserrat, Helvetica Neue, Helvetica, Arial, sans-serif; font-weight: 700; font-size: 6em; text-transform: uppercase; content: attr(data-text); } &::before { color: $text-colour; } &::after { display: block; position: absolute; top: 0; left: 0; z-index: 2; color: $text-background; overflow: hidden; } } // Busy state [role="progressbar"][aria-busy="true"]::after { animation: load ease-out 10s infinite forwards; } @keyframes load { 0%, 10%, 100% { height: 0; } 90% { height: 120px; } } // Unimportant bits @import url(http://fonts.lug.ustc.edu.cn/css?family=Sacramento:400|Montserrat:700); html, body { margin: 0; padding: 0; height: 100%; } body { display: flex; align-items: center; justify-content: center; background: rgba(235, 235, 235, 1); }