Skip to content

Commit f89d1c6

Browse files
committed
fix: tweak angles and positioning of clock origin
1 parent 3ea0146 commit f89d1c6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/lib/components/Clock.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
let angle = $derived.by(() => {
1111
let a = totalMinutes;
1212
if (totalMinutes >= 720) a -= 720;
13-
return mapRange(a, 0, 720, -85, 85); // NOTE: consider radians
13+
return mapRange(a, 0, 720, -75, 75); // NOTE: consider radians
1414
});
1515
1616
let interval: any;
@@ -72,7 +72,7 @@
7272
<style>
7373
.clock {
7474
position: absolute;
75-
transform-origin: 50% 45vh;
75+
transform-origin: 50% 35vh;
7676
transform: translateY(-15vh) rotate(-90deg);
7777
transition: transform 1s ease-in-out;
7878
}

0 commit comments

Comments
 (0)