diff --git a/01 - JavaScript Drum Kit/index-START.html b/01 - JavaScript Drum Kit/index-START.html index 4070d32767..77a3270875 100644 --- a/01 - JavaScript Drum Kit/index-START.html +++ b/01 - JavaScript Drum Kit/index-START.html @@ -59,6 +59,24 @@ diff --git a/02 - JS + CSS Clock/index-START.html b/02 - JS + CSS Clock/index-START.html index 2712384201..20a3e8b8fb 100644 --- a/02 - JS + CSS Clock/index-START.html +++ b/02 - JS + CSS Clock/index-START.html @@ -61,12 +61,42 @@ background:black; position: absolute; top:50%; + transform: rotate(90deg); + transform-origin: 100%; + transition: all .05s; + transition-timing-function: cubic-bezier(0,0,0,2.7); } diff --git a/03 - CSS Variables/index-START.html b/03 - CSS Variables/index-START.html index bf0f33e3ba..f108f669f0 100644 --- a/03 - CSS Variables/index-START.html +++ b/03 - CSS Variables/index-START.html @@ -1,59 +1,81 @@ + - - Scoped CSS Variables and JS + + Scoped CSS Variables and JS - -

Update CSS Variables with JS

- -
- - - - - - - - -
- - - - + + + const inputs = document.querySelectorAll('.controls input'); + inputs.forEach(input => { + input.addEventListener('change', handleUpdate); + input.addEventListener('mousemove', handleUpdate); + }); + function handleUpdate(e) { + const suffix = this.dataset.sizing || ''; + document.documentElement.style.setProperty(`--${this.name}`, this.value + suffix); + } + + +