.square031 { margin-left: 150px; margin-top: 0px; animation: turnCircles1 100s linear infinite; } .square01S { position: absolute; height: 600px; width: 600px; border: 5px solid magenta; transform: scale(95%,95%) rotate(45deg); animation: turnCircles1 100s linear infinite; }
Gå op i HTML’en igen og lav denne div boks inden i den inderste div boks
< div class=”square01S” > < /div>
< div class="square01S" > < div class="square01S" > < div class="square01S" > < div class="square01S" > < div class="square01S" >< /div> < /div> < /div> < /div> < /div>
Gå ned i CSS’en igen og tilføj denne animation:
@keyframes turnCircles1 { 0% {transform: scale(95%,95%) rotate(9deg);} 50% {transform: scale(95%,95%) rotate(360deg);} }