From d52351b9f305e3b6e0ffc396183cea3160b8f552 Mon Sep 17 00:00:00 2001 From: tiago Date: Sun, 11 Dec 2016 19:18:08 -0300 Subject: [PATCH 1/2] day 2 --- 02 - JS + CSS Clock/index-START.html | 77 ++++++++++++++++++++++++++-- 1 file changed, 74 insertions(+), 3 deletions(-) diff --git a/02 - JS + CSS Clock/index-START.html b/02 - JS + CSS Clock/index-START.html index 2712384201..4a4c0c2c46 100644 --- a/02 - JS + CSS Clock/index-START.html +++ b/02 - JS + CSS Clock/index-START.html @@ -13,6 +13,12 @@
+
+
3
+
6
+
9
+
12
+
@@ -34,8 +40,8 @@ } .clock { - width: 30rem; - height: 30rem; + width: 35rem; + height: 35rem; border:20px solid white; border-radius:50%; margin:50px auto; @@ -56,17 +62,82 @@ } .hand { - width:50%; + width: 50%; height:6px; 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); + } + + .second-hand { + height:3px; + background: red; + } + + .hour-hand{ + height:8px; + width: 30%; + top: 50%; + left: 20%; + } + + .number { + font-family: fantasy; + font: status-bar; + position: absolute; + color: white; + } + + .three { + top: 50%; + left: 90%; + } + + .six { + top: 90%; + left: 50%; + } + + .nine { + top: 50%; + left: 5%; + } + + .twelve { + top: 5%; + left: 50%; } From 19ad9c61def8608894e8eb1d61585275badbd0a4 Mon Sep 17 00:00:00 2001 From: Tiago Fabre Date: Tue, 13 Dec 2016 13:44:52 -0300 Subject: [PATCH 2/2] css variables --- 03 - CSS Variables/index-START.html | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/03 - CSS Variables/index-START.html b/03 - CSS Variables/index-START.html index bf0f33e3ba..9401d7b339 100644 --- a/03 - CSS Variables/index-START.html +++ b/03 - CSS Variables/index-START.html @@ -21,6 +21,21 @@

Update CSS Variables with JS

+