Improved the Broken Analog Clock.
Problem
The previous code was working but the hand was not spinning at the center and also going out of clock. Also u can't use your custom background as it should contain the numbers.
Proposed Solution:
The new Code will solve all this issue
-
Hand will spin from center and will not go out of clock.
-
Added numbers to clock so u can use any background you want.
-
Made Hands rotation more smooth.
Action
I’d like to take up this issue and work on implementing the fix as part of Hacktoberfest. Please assign it to me. @aayush105
Before
https://github.com/user-attachments/assets/c97a69ec-6abc-4029-bbd1-e28f3c6a8cfb
After
https://github.com/user-attachments/assets/21b43b54-dffe-4f4f-ac10-8a3222aa77bc
Repo Link : https://github.com/you-dont-need/You-Dont-Need-JavaScript/tree/master/Analog-clock
@aayush105 can you help with few things? which design is better?
Should i make clock smooth(continues or like every second).
Smooth one:
https://github.com/user-attachments/assets/439cc741-65a4-41ba-a438-c7cc4a60a591
Ticking :
https://github.com/user-attachments/assets/e5bc1b24-716f-4446-a56a-eaad454130f4
@KrishLalakiya
You can do this, make 2 design the black one and the white one as well and keep it side by side and in one of them make it smooth and another one make it ticking.
@aayush105 Here is my Pull request. #899
@aayush105 I forgot to remove the clock png from repo, can u remove or change it with new output.
@KrishLalakiya you can create a new pr for that if you want else i will fix it later.
https://github.com/you-dont-need/You-Dont-Need-JavaScript/pull/914 @aayush105 Pull request made, required changes done.
I have updated my project images and renamed images