child div element not rotating | Sololearn: Learn to code for FREE!

+7

child div element not rotating

The innermost div has been styled to rotate clockwise in an animation. It isn't working, it just stays there without moving. I still can't find the cause. This is what I was hoping to do: all the divs go clockwise except for the middle one which will go anticlockwise https://code.sololearn.com/WP9OVnOQxuNC/?ref=app

10/9/2020 2:01:20 PM

Nyakotey🇬🇭🎹

4 Answers

New Answer

+5

I fixed it for you! https://code.sololearn.com/WdQ9oK6FB5rS/?ref=app

+2

I dont know the exact reasoning why it spins but it appears to work if the animation duration is different from outer layers. https://code.sololearn.com/Wz8Z8iyUEfW5/?ref=app

+2

Erialdo Meta 🇦🇱, Galaxy-Coding This is what I was hoping to do: all the divs go clockwise except for the middle one which will go anticlockwise

+1

Ok last update. So i think it was an error at line 30 of css where 'spin' was written as 'aspin'. It was a typo probably. https://code.sololearn.com/Wz8Z8iyUEfW5/?ref=app