body {
	margin: 0;
	padding: 0;
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 100vh;
}

div {
	position: relative;
	width: 510px;
	height: 510px;
}

div span {
	position: absolute;
	display: block;
	background: #fff;
	animation: animate 12s ease-in-out infinite;
}

@keyframes animate {

	0%,
	100% {
		transform: rotate(0deg);
	}

	50% {
		transform: rotate(360deg);
	}
}

div span:nth-child(even) {
	background: #2f2f2f;
}

div span:nth-child(even):before {
	content: '';
	position: absolute;
	top: 50%;
	left: 0;
	width: 100%;
	height: 50%;
	background: #fff;
	transform: translateY(-50%);
}

div span:nth-child(even):after {
	content: '';
	position: absolute;
	top: 0;
	left: 50%;
	width: 50%;
	height: 100%;
	background: #fff;
	transform: translateX(-50%);
}

div span:nth-child(odd):before {
	content: '';
	position: absolute;
	top: 50%;
	left: 0;
	width: 100%;
	height: 50%;
	background: #2f2f2f;
	transform: translateY(-50%);
}

div span:nth-child(odd):after {
	content: '';
	position: absolute;
	top: 0;
	left: 50%;
	width: 50%;
	height: 100%;
	background: #2f2f2f;
	transform: translateX(-50%);
}

div span:nth-child(1) {
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	animation-delay: 0.9s;
}

div span:nth-child(2) {
	top: 30px;
	left: 30px;
	right: 30px;
	bottom: 30px;
	animation-delay: 0.8s;
}

div span:nth-child(3) {
	top: 60px;
	left: 60px;
	right: 60px;
	bottom: 60px;
	animation-delay: 0.7s;
}

div span:nth-child(4) {
	top: 90px;
	left: 90px;
	right: 90px;
	bottom: 90px;
	animation-delay: 0.6s;
}

div span:nth-child(5) {
	top: 120px;
	left: 120px;
	right: 120px;
	bottom: 120px;
	animation-delay: 0.5s;
}

div span:nth-child(6) {
	top: 150px;
	left: 150px;
	right: 150px;
	bottom: 150px;
	animation-delay: 0.4s;
}

div span:nth-child(7) {
	top: 180px;
	left: 180px;
	right: 180px;
	bottom: 180px;
	animation-delay: 0.3s;
}

div span:nth-child(8) {
	top: 210px;
	left: 210px;
	right: 210px;
	bottom: 210px;
	animation-delay: 0.2s;
}

div span:nth-child(9) {
	top: 240px;
	left: 240px;
	right: 240px;
	bottom: 240px;
	animation-delay: 0.1s;
}