Mouse trail
JavaScript
Medium
Objective
Create a trail of elements that follow the mouse cursor
Requirements
Use JavaScript to update the positions of the trailing elements
The trail should smoothly follow the cursor
You can style it however you like