Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yashi-singh-1/day-38-change-background-color-on-click
A simple Web Page with buttons to change the background color of the body, a container, or both. each button click applies a randomly selected gradient, enhancing the visual experience using JavaScript and CSS.
https://github.com/yashi-singh-1/day-38-change-background-color-on-click
coding-challenge css css3 eventlistener front-end frontend html html-css html-css-javascript html-css-js html5 htmlcss htmlcssjs interactive-ui javascript random-colors vanilla-javascript vanillajavascript web-developement webdevelopement
Last synced: about 2 months ago
JSON representation
A simple Web Page with buttons to change the background color of the body, a container, or both. each button click applies a randomly selected gradient, enhancing the visual experience using JavaScript and CSS.
- Host: GitHub
- URL: https://github.com/yashi-singh-1/day-38-change-background-color-on-click
- Owner: Yashi-Singh-1
- Created: 2024-07-17T18:15:16.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-07-17T18:22:19.000Z (6 months ago)
- Last Synced: 2024-07-17T22:34:00.280Z (6 months ago)
- Topics: coding-challenge, css, css3, eventlistener, front-end, frontend, html, html-css, html-css-javascript, html-css-js, html5, htmlcss, htmlcssjs, interactive-ui, javascript, random-colors, vanilla-javascript, vanillajavascript, web-developement, webdevelopement
- Language: JavaScript
- Homepage:
- Size: 214 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Change Background Color On-Click
Challenge Description
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.
Preview
Live Demo
Check out the live demo here.
Prerequisites
- Basic HTML, CSS and JavaScript Knowledge
Learning Points
- Manipulating CSS Styles with JavaScript
- Event Listeners
Tools Used
- 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.
Contributing
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.