Make the Background Color Continuously Change

Start and Pause the Changing Background Color

I built this using JQuery. You can start and pause the continuous changing of the webpage’s background color.

It was fun styling the button, but it was a little difficult to get the background to stop changing colors. Fortunately I came across this great article which made it a breeze How to stop setTimeout in JavaScript using clearTimeout

Advertisement

2 thoughts on “Make the Background Color Continuously Change

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s