Mouse trail

JavaScript
Medium

Objective

Create a trail of elements that follow the mouse cursor

Requirements

  1. Use JavaScript to update the positions of the trailing elements

  2. The trail should smoothly follow the cursor

  3. You can style it however you like