This projects behaves almost like I would like it to:
When the mouse enters the left disc, the board goes down on the left.
When the mouse enters the right disc, the board goes down on the right.
When the mouse is no not over any disc, the board returns to flat.
If you leave time to the board to return to flat before you enter the disc opposite to the one you just left, it works fine.
Problem is... if you enter the disc opposite to the one you just left before the board has returned to flat, then the board will not pass the flat point and it will get stuck on one side.
At some point I will also add the touchstart and touchend, that's why I chose mouseenter and mouseleave.
Any help would be greatly appreciated!
Retrieving data ...