Dashboard - Create a toggle button that will only be "ON" for 3 seconds

I am working on a dashboard, I want to create a toggle button that you can turn “ON” and that will toggle itself “OFF” after three seconds.

Is it also capable to set a trigger ID for the ON but not the OFF?

Thanks,

I figured this out by using the visual coding.