@GeorgeValentin
Posted
A small advice, try to keep only CSS files related to styling and use JS only for website behavior. I know it seems like a good idea sometimes to just modify the styling inside JS, but as a project grows it becomes a nightmare to maintain.
What you have done inside JS, can easily be done in by leveraging the :hover
CSS pseudo-class. Use JS to adjust the styling only as a last resort.
Other than that, it looks great, and props to you for being able to solve it with such few lines of code.
Marked as helpful