From 6f838c2ce4bc0ccc63f5b498c16e2fecf3aa23ab Mon Sep 17 00:00:00 2001
From: CrimsonPug
Date: Wed, 21 Dec 2016 10:22:20 -0500
Subject: [PATCH 1/5] practice makes perfect
---
01 - JavaScript Drum Kit/index-FINISHED.html | 2 +-
01 - JavaScript Drum Kit/index-START.html | 17 +++++++
02 - JS + CSS Clock/index-START.html | 25 ++++++++++
03 - CSS Variables/index-START.html | 28 +++++++++--
04 - Array Cardio Day 1/index-START.html | 50 +++++++++++++++++++-
05 - Flex Panel Gallery/index-START.html | 35 +++++++++++++-
06 - Type Ahead/index-START.html | 41 ++++++++++++++++
07 - Array Cardio Day 2/index-START.html | 24 ++++++++++
08 - Fun with HTML5 Canvas/index-START.html | 45 ++++++++++++++++++
9 files changed, 260 insertions(+), 7 deletions(-)
diff --git a/01 - JavaScript Drum Kit/index-FINISHED.html b/01 - JavaScript Drum Kit/index-FINISHED.html
index 1a16d0997c..7b29f4e6e9 100644
--- a/01 - JavaScript Drum Kit/index-FINISHED.html
+++ b/01 - JavaScript Drum Kit/index-FINISHED.html
@@ -67,10 +67,10 @@
const audio = document.querySelector(`audio[data-key="${e.keyCode}"]`);
const key = document.querySelector(`div[data-key="${e.keyCode}"]`);
if (!audio) return;
-
key.classList.add('playing');
audio.currentTime = 0;
audio.play();
+ key.classList.add('playing');
}
const keys = Array.from(document.querySelectorAll('.key'));
diff --git a/01 - JavaScript Drum Kit/index-START.html b/01 - JavaScript Drum Kit/index-START.html
index 4070d32767..49fbda9913 100644
--- a/01 - JavaScript Drum Kit/index-START.html
+++ b/01 - JavaScript Drum Kit/index-START.html
@@ -58,7 +58,24 @@
diff --git a/02 - JS + CSS Clock/index-START.html b/02 - JS + CSS Clock/index-START.html
index 2712384201..94e845f2e4 100644
--- a/02 - JS + CSS Clock/index-START.html
+++ b/02 - JS + CSS Clock/index-START.html
@@ -61,12 +61,37 @@
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)
}