diff --git a/01 - JavaScript Drum Kit/index-START.html b/01 - JavaScript Drum Kit/index-START.html index 4070d32767..fb408aed21 100644 --- a/01 - JavaScript Drum Kit/index-START.html +++ b/01 - JavaScript Drum Kit/index-START.html @@ -59,6 +59,35 @@ diff --git a/02 - JS and CSS Clock/index-START.html b/02 - JS and CSS Clock/index-START.html index 12f721b183..1f9352b7c0 100644 --- a/02 - JS and CSS Clock/index-START.html +++ b/02 - JS and CSS Clock/index-START.html @@ -12,6 +12,7 @@
+ @@ -37,14 +38,14 @@ .clock { width: 30rem; height: 30rem; - border: 20px solid white; + border: 20px solid rgba(255,255,255,0.5); border-radius: 50%; margin: 50px auto; position: relative; padding: 2rem; box-shadow: 0 0 0 4px rgba(0,0,0,0.1), - inset 0 0 0 3px #EFEFEF, + inset 0 0 0 3px #50fffcf5, inset 0 0 10px black, 0 0 10px rgba(0,0,0,0.2); } @@ -58,16 +59,65 @@ .hand { width: 50%; - height: 6px; - background: black; + height: 5px; + background: #210069c2; position: absolute; + right: 50%; top: 50%; + transform: rotate(90deg); + transform-origin: right; + transition: all .05s; + transition-timing-function: cubic-bezier(0.41, 0.64, 0.83, 0.62); + } + + .second-hand { + height: 2px; + width: 45%; + } + + .hour-hand { + height: 12px; + top: 48%; + width: 40%; + } + + .center { + background-color: #c5370a; + border-radius: 25px; + height: 25px; + left: 50%; + position: absolute; + top: 50%; + transform: translate(-50%, -50%); + width: 25px; }