@malboyoo
Posted
Hi,
I used this method to set a CD on the button:
in your event listener of your button, when the user click change the style with a new class, then after 1800ms(use setTimeout()) you can set class to the original value. I personally set the opacity to 0.6 and removed the hover effect When the button is disable. I also disabled the button during this time.
You can check my solution for more details.
good luck and keep working 👍
Marked as helpful
@jtubbenhauer
Posted
@malboyoo Perfect, that solution looks great. Cheers!