-
Notifications
You must be signed in to change notification settings - Fork 0
Simple Change Color project with JavaScript language !
abderrahim1210/change-color
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
ย | ย | |||
ย | ย | |||
ย | ย | |||
ย | ย | |||
ย | ย | |||
ย | ย | |||
ย | ย | |||
ย | ย | |||
Repository files navigation
๐จ Change Color Project โ change-color.html This small project allows users to change the background color of a webpage using JavaScript. Itโs a great beginner-level example of how to manipulate the DOM and use event listeners. ==================== ๐ File Structure ==================== change-color.html โ Main file containing HTML change-color.js โ Main file containing JS change-color.css โ Main file containing CSS README.txt โ This file ==================== ๐ How It Works ==================== - A button is displayed on the screen. - When the user clicks the button: - JavaScript generates a random color (hex or RGB). - The background color of the page (or target element) is updated with the new color. - Optionally, the color value is shown on the screen. ==================== ๐ง Technologies Used ==================== - HTML5 - CSS3 - JavaScript ==================== ๐ฆ How to Use ==================== 1. Open the file `change-color.html` in your browser. 2. Click the "Change Color" button. 3. Enjoy watching the background change colors dynamically. ==================== ๐ Notes ==================== - You can customize the color generation logic (e.g., fixed palette, gradients). - A useful UI feature is to show the hex or RGB color value after each change. ==================== ๐ก Author ==================== Abderrahim Khali Ali
About
Simple Change Color project with JavaScript language !
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published