Skip to content

This a unlimited-colors project in which there are unlimited colors changing and you can stop on one of them.

Notifications You must be signed in to change notification settings

nitesh-kohli/unlimited-colors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

unlimited-colors

This a unlimited-colors project in which there are unlimited colors changing and you can stop on one of them.

steps to build this project

in javascript

1.) generate random color by Math.random() function.
2.) select start and stop button from DOM tree.
3.) on start button add event listener so that by clicking over it background color start changing.
4.) for start changing color function we use setInterval which change background color every second by picking random color value.
5.) to stop changing color we use clearInterval and set flush out all previous values too.

About

This a unlimited-colors project in which there are unlimited colors changing and you can stop on one of them.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published