This 2D Breakout Game is built using pure JavaScript, and HTML 5 canvas. You can control the game using left, right arrow keys or mouse. There are three live to try.
Real time bus tracker shows bus movement on the map real time using mapbox API and public transport data. Bus stops are predefined and map markers move along those stops.
This exercise uses onmousemove event to track mouse movement and it's position and then calculate the x, y value can be used as inputs for the element's transform property.