Xhz0729 / techtonica-assignments

Public techtonica-assignments repo
0 stars 1 forks source link

Disable the Play Button While Coins Are Flipping #26

Open Xhz0729 opened 2 months ago

Xhz0729 commented 2 months ago

https://github.com/Xhz0729/techtonica-assignments/blob/27791615623ab77b3d6b8b8e3ff9691366b26ae8/Flip-coin/index.html#L25

Currently, the play button remains active even when the coins are flipping, allowing users to trigger multiple flips simultaneously, which can cause unexpected behavior. The goal is to disable the play button while the animation is in progress to enhance the game experience.

Tasks: Add logic to disable the play button when a flip is initiated. Ensure the button is re-enabled once the flipping animation is complete.