diff --git a/01 - JavaScript Drum Kit/index-START.html b/01 - JavaScript Drum Kit/index-START.html index 8a2f8e8417..a4cb49b787 100644 --- a/01 - JavaScript Drum Kit/index-START.html +++ b/01 - JavaScript Drum Kit/index-START.html @@ -59,7 +59,22 @@ diff --git a/02 - JS and CSS Clock/index-START.html b/02 - JS and CSS Clock/index-START.html index 55ab1a5331..5d42082a35 100644 --- a/02 - JS and CSS Clock/index-START.html +++ b/02 - JS and CSS Clock/index-START.html @@ -63,12 +63,34 @@ background: black; position: absolute; top: 50%; + transform-origin: 100%; + transform: rotate(90deg); + transition: all 0.05s;; }
-
-
- input {
- width: 100px;
- }
-
+
+ function handleUpdate(e) {
+ const suffix = this.dataset.sizing || "";
+ document.documentElement.style.setProperty(
+ `--${this.name}`,
+ this.value + suffix,
+ );
+ }
-
+ inputs.forEach((input) => input.addEventListener("change", handleUpdate));
+ inputs.forEach((input) =>
+ input.addEventListener("mousemove", handleUpdate),
+ );
+
+ diff --git a/03 - CSS Variables/index-START.html b/03 - CSS Variables/index-START.html index d5fcc3a2ae..be3833822a 100644 --- a/03 - CSS Variables/index-START.html +++ b/03 - CSS Variables/index-START.html @@ -1,52 +1,96 @@ - + -
- -
- - -