body {
	margin: 0;
	height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: black;
	overflow: hidden;
}

.loader {
	color: dodgerblue;
	font-size: 1.5em;
	font-family: sans-serif;
	text-transform: uppercase;
	width: 40em;
	height: 3em;
	animation: change-color 10s linear infinite;
}

@keyframes change-color {
	to {
		filter: hue-rotate(1turn);
	}
}

.loader span {
    position: absolute;
    height: 3em;
    animation: 
        opacity 2s linear infinite,
        rotate 2s linear infinite,
        moveing 2s cubic-bezier(0, 0.3, 1, 0.7) infinite;
    animation-delay: calc((var(--n) - 10) * 0.2s);
}

@keyframes opacity {
    0%, 100% { filter: opacity(0); }
    33%, 66% { filter: opacity(1); }
}

@keyframes rotate {
    0% { transform: rotate(-180deg); }
    33%, 66% { transform: rotate(0deg); }
    100% { transform: rotate(180deg); }
}

@keyframes moveing {
    from { left: 100% }
    to { left: 0; }
}

.loader span:nth-child(1) { --n: 1; }
.loader span:nth-child(2) { --n: 2; }
.loader span:nth-child(3) { --n: 3; }
.loader span:nth-child(4) { --n: 4; }
.loader span:nth-child(5) { --n: 5; }
.loader span:nth-child(6) { --n: 6; }
.loader span:nth-child(7) { --n: 7; }
