The deal: You should draw a clock with elements which have
id
set to:
seconds
,
minutes
.
hours
. Also a
circle
with id set to
center
, which will be used as the center the clock elements will be rotated around. I have made an example using
Affinity Designer
and exported to
SVG
.
The javascript will setup animations rotating the clock elements :-)
<svg width="100%" height="100%"…> <path id="clockWatch" d="M164.5,389.526… /> <circle id="center" cx="197.825" cy="196.959" …/> <path id="minutes" d="M204.13,214.196l…/> <path id="hours" d="M205.334,207.219l-…/> <path id="seconds" d="M200.656,190.…"/> </svg>