Hello! I am currently diving into the world of CSS, jQuery, and Javascript, and my first project was creating an etch-a-sketch. So far, I've implemented a few features that are working smoothly. However, I've encountered an issue with the snake feature - when you hover over a square, it seems to move to the bottom of the grid and keep going. I suspect that this is due to how the grid is generated or the way the divs are floating, but I can't quite figure it out. Can anyone offer suggestions on how to fix this problem? Additionally, if you notice anything in the code that could be improved, I would greatly appreciate your input as I'm just starting out on this learning journey!
If you'd like to check out the project, it's available here.
You can also find the files on my GitHub page at this link.
Thank you in advance for any assistance!