This challenge demonstrates how to dynamically change the background colors of the body and a container using JavaScript and CSS gradients. The user interface consists of three buttons that allow users to change the background color of the body, the container, or both simultaneously with a random gradient each time a button is clicked.
Check out the live demo here.
- Basic HTML, CSS and JavaScript Knowledge
- Manipulating CSS Styles with JavaScript
- Event Listeners
- VS Code (You can use any other code editor)
- A modern web browser (Chrome, Firefox, Safari, or Edge).
- Access to an internet connection for resource imports.
If you'd like to contribute to this challenge:
- Fork the repository on GitHub.
- Clone your forked repository to your local machine:
- Create a new branch for your feature or bug fix:
- Make your changes and commit them with a clear and concise message:
- Push your changes to your forked repository:
- Open a pull request to the main repository.
- Ensure your pull request includes a detailed description of your changes.
- Respond to any feedback or questions during the review process.
git clone https://github.com/Yashi-Singh-1/Day-37-Change-Background-Color-On-Click.git
git checkout -b feature-name
git commit -m 'Add new feature or fix'
git push origin feature-name
We welcome improvements, bug fixes, and additional features that can enhance this Change Background Color On-Click.