You-Dont-Need-JavaScript icon indicating copy to clipboard operation
You-Dont-Need-JavaScript copied to clipboard

Improved the Broken Analog Clock.

Open KrishLalakiya opened this issue 1 year ago • 6 comments

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

KrishLalakiya avatar Oct 21 '25 21:10 KrishLalakiya

@aayush105 can you help with few things? which design is better?

Image Image

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 avatar Oct 22 '25 07:10 KrishLalakiya

@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 avatar Oct 22 '25 07:10 aayush105

@aayush105 Here is my Pull request. #899

KrishLalakiya avatar Oct 22 '25 09:10 KrishLalakiya

@aayush105 I forgot to remove the clock png from repo, can u remove or change it with new output.

KrishLalakiya avatar Oct 23 '25 16:10 KrishLalakiya

@KrishLalakiya you can create a new pr for that if you want else i will fix it later.

aayush105 avatar Oct 24 '25 07:10 aayush105

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

KrishLalakiya avatar Oct 24 '25 13:10 KrishLalakiya