Skip to content

Latest commit

 

History

History
22 lines (14 loc) · 542 Bytes

README.md

File metadata and controls

22 lines (14 loc) · 542 Bytes

Clock SVG & Weather API


const round = hh.getTotalLength(); /* 둘레길이 */

hh.style.strokeDashoffset = round - (round * h) / 12;
mm.style.strokeDashoffset = round - (round * m) / 60;
ss.style.strokeDashoffset = round - (round * s) / 60;

dothh.style.transform = 'rotate('+ h * 360 / 12 +'deg)';
dotmm.style.transform = 'rotate('+ m * 360 / 60 +'deg)';
dotss.style.transform = 'rotate('+ s * 360 / 60 +'deg)';