Skip to content

The Random Background Color Changer is a simple web app that allows users to change the webpage’s background color to a random color by clicking a button. The hex code of the current background color is displayed on the page.

License

Notifications You must be signed in to change notification settings

JohnM-Oduor/Random-Background-Color-Changer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Random-Background-Color-Changer

  • The Random Background Color Changer is a simple web app that allows users to change the webpage’s background color to a random color by clicking a button. The hex code of the current background color is displayed on the page.This is the hyper link:https://Random-background-colour-changer.netlify.app/

image

Description

  • This project is a simple web application that allows users to change the background color of a webpage with a single click. When the user clicks the "Change Background Color" button, the background color randomly switches to one of the predefined dark colors from an array. The hex code of the current background color is displayed on the page for reference. This is a fun and interactive way to explore random colors in a visually appealing design.

The project is built using HTML, CSS, and JavaScript:

  • HTML: Provides the structure of the webpage, including the header, color display, and button.
  • CSS: Styles the page, ensuring a clean and responsive layout. It also defines the color palette using CSS variables for easy customization.
  • JavaScript: Handles the functionality for generating random colors and updating the background and displayed hex code.

Key Features:

  • A button that changes the background color to a random color from a predefined set.
  • Displays the corresponding hex code of the color on the page.
  • Simple, user-friendly interface with modern styling.

About

The Random Background Color Changer is a simple web app that allows users to change the webpage’s background color to a random color by clicking a button. The hex code of the current background color is displayed on the page.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published