From 814fe619b81344a1a9be2d55d8aa6a8a297fc74d Mon Sep 17 00:00:00 2001 From: hozefaj Date: Thu, 8 Dec 2016 21:37:08 -0800 Subject: [PATCH 1/3] day 1 solved --- 01 - JavaScript Drum Kit/index-START.html | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/01 - JavaScript Drum Kit/index-START.html b/01 - JavaScript Drum Kit/index-START.html index 4070d32767..de7fac4e68 100644 --- a/01 - JavaScript Drum Kit/index-START.html +++ b/01 - JavaScript Drum Kit/index-START.html @@ -58,9 +58,24 @@ - + const key = document.querySelector(`.key[data-key="${e.keyCode}"]`); + key.classList.add('playing'); + }) + // attaching all the events at the start + const keys = document.querySelectorAll('.key'); + keys.forEach((key) => { + key.addEventListener('transitionend', function(e){ + if(e.propertyName !== 'transform') return; + key.classList.remove('playing'); + }) + }) + From 69cdfd96c8aac68945f7ceb175b76d9f641e4708 Mon Sep 17 00:00:00 2001 From: hozefaj Date: Fri, 9 Dec 2016 15:34:35 -0800 Subject: [PATCH 2/3] create clock --- 02 - JS + CSS Clock/index-START.html | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/02 - JS + CSS Clock/index-START.html b/02 - JS + CSS Clock/index-START.html index 259280d228..012f78e43e 100644 --- a/02 - JS + CSS Clock/index-START.html +++ b/02 - JS + CSS Clock/index-START.html @@ -61,12 +61,35 @@ background:black; position: absolute; top:50%; + transform-origin: 100%; + transform: rotate(90deg); + transition: all 0.05s; + transition-timing-function: cubic-bezier(0.1, 2.7, 0.58, 1); } From 454e33309592400255c2ea34605bc5bb2ab46c3a Mon Sep 17 00:00:00 2001 From: hozefaj Date: Sat, 10 Dec 2016 10:21:46 -0800 Subject: [PATCH 3/3] day 3 solved --- 03 - CSS Variables/index-START.html | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/03 - CSS Variables/index-START.html b/03 - CSS Variables/index-START.html index bf0f33e3ba..6457da721b 100644 --- a/03 - CSS Variables/index-START.html +++ b/03 - CSS Variables/index-START.html @@ -22,9 +22,17 @@

Update CSS Variables with JS