Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5c39dab

Browse files
Matt JaredMatt Jared
Matt Jared
authored and
Matt Jared
committed
Adding vid 2 changes
1 parent fe32705 commit 5c39dab

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

02 - JS + CSS Clock/index-START.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,25 @@
6161
background:black;
6262
position: absolute;
6363
top:50%;
64+
transform-origin: 100%;
65+
transform: rotate(90deg);
66+
transition: all 0.05s;
67+
transition-timing-function: ease-in-out;
6468
}
6569

6670
</style>
6771

6872
<script>
73+
function setDate() {
74+
const now = new Date();
75+
const seconds = now.getSeconds();
76+
const secondsDegrees = ((seconds / 60) * 360);
77+
const secondHand = document.querySelector('.second-hand');
6978

79+
console.log(seconds);
80+
}
81+
82+
setInterval(setDate, 1000);
7083

7184
</script>
7285
</body>

03 - CSS Variables/index-START.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,12 @@ <h2>Update CSS Variables with <span class='hl'>JS</span></h2>
4545
input {
4646
width:100px;
4747
}
48+
49+
4850
</style>
4951

5052
<script>
53+
const now = Date.new();
5154
</script>
5255

5356
</body>

0 commit comments

Comments
 (0)