本文实例为大家分享了SVG实现时钟效果的具体代码,供大家参考,具体内容如下
<Meta charset="utf-8"/>
SVG Analog Clock
@H_502_10@
<svg width="400" height="400">
<path id="minute" d="M 125 125 V 50"
style="fill: none; stroke: black; stroke-width: 4"
transform="rotate(0)">
<path id="second" d="M 125 125 Q 100 100 125 80 T 125 40 V 30"
style="fill: none; stroke: #f00; stroke-width: 2"
transform="rotate(0)">