From 05d0f874a5bab88025de8165a7ce2245d3e926b3 Mon Sep 17 00:00:00 2001 From: MarieMalarme Date: Fri, 19 Jun 2020 09:04:55 +0100 Subject: [PATCH] Specified the CSS variable to use in the subject --- subjects/mouse-trap/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subjects/mouse-trap/README.md b/subjects/mouse-trap/README.md index 118a6e49d..a85b6dc77 100644 --- a/subjects/mouse-trap/README.md +++ b/subjects/mouse-trap/README.md @@ -8,7 +8,7 @@ Develop a trap to capture the elements when the mouse is getting too close to th - Create a function `moveCircle`: make it fire when the mouse moves, and get the last circle created and makes it move along with the mouse -- Create a function `setBox` which sets a box with the class `box` in the center of the page ; when a circle is inside that box, it has to be purple ; once a circle enters the box, it is trapped inside and cannot go out of it anymore. +- Create a function `setBox` which sets a box with the class `box` in the center of the page ; when a circle is inside that box, it has to be purple (use the CSS global variable `var(--purple)` as `background`) ; once a circle enters the box, it is trapped inside and cannot go out of it anymore. > Hint: do not use operators like `<=` or `=>`, a circle has to be trapped **strictly** inside the box