Zoom towards the mouse position. Easy enough, right? This proved to be more difficult than I thought.

I will simply go straight to the code and my explanation on youtube.

See the Pen zoomtomousehow?? by Dion Snoeijen (@octopus11) on CodePen.