Skip to content

Commit

Permalink
docs(mouse-trap): fmt with prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
HarryVasanth committed Oct 30, 2024
1 parent 7d68604 commit 36735da
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions subjects/mouse-trap/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Develop a trap to capture the elements when the mouse is getting too close to the center of the page.

Create the following functions:

- `createCircle`: make it fire on every click on the page, and create a `div` at the position of the mouse on the screen, setting its `background` to `white` and its class to `circle`.

- `moveCircle`: make it fire when the mouse moves, and get the last circle created and makes it move along with the mouse.
Expand Down

0 comments on commit 36735da

Please sign in to comment.