rahulraikwar00 / pomodarov2

Pomoji is a simple pomodoro timer Chrome extension featuring a running animated cat[pending-feature] in the bottom of the tab with live lofi radio
MIT License
1 stars 0 forks source link

Finish Animation and Stop Timer #6

Open rahulraikwar00 opened 2 months ago

rahulraikwar00 commented 2 months ago

Description:

Currently, when the timer reaches zero, the animation of the cat running across the tab does not stop and the timer does not reset. This issue is to address these two problems.

Steps to Reproduce:

  1. Start the timer by clicking on the Pomoji icon in the browser toolbar.
  2. Wait for the timer to reach zero.
  3. Observe that the cat animation continues to run and the timer does not reset.

Expected Behavior:

When the timer reaches zero, the cat animation should stop and the timer should reset automatically.

Actual Behavior:

The cat animation continues to run and the timer does not reset.

Suggested Solution:

  1. Add a condition in the animation script to check if the timer has reached zero.
  2. If the timer has reached zero, stop the animation and reset the timer.
  3. Alternatively, consider adding a callback function to the timer that stops the animation and resets the timer when it reaches zero.

Additional Context:

This issue is important to address because it affects the usability of the extension. Without a clear indication that the timer has ended, users may not know when to take a break or start working again.

Labels: