Skip to content

Commit 2008565

Browse files
committed
add: second ring
1 parent d534568 commit 2008565

1 file changed

Lines changed: 23 additions & 1 deletion

File tree

src/lib/components/Clock.svelte

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,8 @@
9999
transform="rotate({angle} 50 50)"
100100
style="transition: transform 1s ease-in-out"
101101
/>
102-
<circle cx="50" cy="85" r="50" fill="black" />
102+
<circle cx="50" cy="100" r="60" fill="black" />
103+
<rect x="20" y="30" width="60" height="20" fill="white" />
103104
</mask>
104105
<g mask="url(#orbitMask)">
105106
<circle
@@ -122,6 +123,27 @@
122123
repeatCount="indefinite"
123124
/>
124125
</circle>
126+
127+
<circle
128+
cx="50"
129+
cy="50"
130+
r="25"
131+
fill="transparent"
132+
stroke={textColour}
133+
stroke-width="3"
134+
stroke-dasharray="20 80 50"
135+
vector-effect="non-scaling-stroke"
136+
>
137+
<animateTransform
138+
attributeName="transform"
139+
begin="0s"
140+
dur="102s"
141+
type="rotate"
142+
from="0 50 50"
143+
to="360 50 50"
144+
repeatCount="indefinite"
145+
/>
146+
</circle>
125147
</g>
126148
</svg>
127149
</div>

0 commit comments

Comments
 (0)