This project is a JavaScript and HTML coding challenge that demonstrates a dynamic web page with a fading background color animation and the ability to fetch and display random quotes.
-
Fading Background Animation: The project features a smoothly animated background color transition that continuously changes colors in a gradient pattern.
-
Random Quote Generation: Users can click the "Get a quote!" button to fetch a random quote and display it on the web page.
-
Error Handling: If there's an issue with fetching a quote, the system displays an error message in an alert.
- A modern web browser that supports HTML5, JavaScript, and CSS animations.
-
Clone this repository to your local machine.
-
Open the
index.htmlfile in your preferred web browser.
-
Click the "Get a quote!" button to fetch and display a random quote.
-
Enjoy the fading background color animation while reading inspirational quotes.
You can customize this project by:
-
Modifying the CSS in
main.cssto change the animation duration, colors, or other styles. -
Changing the API endpoint in
main.jsto fetch quotes from a different source.
Contributions are welcome! Please follow the Contributing Guidelines for more information.
This project is licensed under the MIT License - see the LICENSE file for details.
-
This project was created as a coding challenge.
-
The background color animation inspiration came from CSS Gradient Animator.