@ricardo1003
Posted
Yo! nice solution, it is actually pretty similar to the original.
However, you can do animations like that in CSS without using JS! There are some things called ''pseudo classes'', wich lets you do add styles to an element when it has an specific state. For example, if you use element:hover{background-color: red;}
, each time the pointer is over the element, the background will turn red.
You probably made this to test your JS skills, if that's the case then its ok. And actually, the only way i can think of changing a parent property when a child is hovered is with JS, so I anyways tell you this in case you didn't know so you use it on future projects.