Skip to content

Latest commit

Β 

History

History
70 lines (45 loc) Β· 1.98 KB

File metadata and controls

70 lines (45 loc) Β· 1.98 KB

Random Background Color Changer

This project is a simple application that changes the background color of the page randomly with a single button click. It also displays the current color code on the screen.


View Project

Join Discussion


πŸ–ΌοΈ Screenshot

Random Color Changer Screenshot


πŸ”Ή Features

  • Randomly generates a background color.
  • Displays the current background color in HEX format.
  • Responsive design.
  • Smooth and instant color change.
  • User-friendly interface with a stylish button.

πŸ” How It Works

  • When the user clicks the "Change Color" button, a new random HEX color is generated.
  • The background of the page updates to the new color.
  • The HEX code of the current background color is displayed in real-time.

πŸ’‘ Technologies Used

✨ HTML

  • Sets up the basic structure: a color display and a button.

🌟 CSS

  • Styles the background, text, and button.
  • Ensures responsive and clean layout.
  • Adds padding, rounded corners, and shadows for better visuals.

✨ JavaScript

  • Handles random color generation.
  • Updates the background color and the displayed HEX code dynamically.
  • Adds an event listener to the button for user interaction.

πŸ“… Summary

This project is a fun and interactive way to learn about DOM manipulation, event handling, and color generation using HTML, CSS, and JavaScript.

"One click, endless colors!" This project was updated as part of a GitHub achievements challenge. πŸš€