This project creates an interactive webpage that displays animated yellow flowers using HTML, CSS, and JavaScript. The user can choose to display either one flower or twelve flowers with animations.
-
Clone the repository to your local machine:
git clone https://github.com/kaikrmen/Yellow-Flowers.git
-
Navigate to the project directory:
cd yellow-flowers
-
Open
index.html
in your preferred web browser to view the project.
- Click the "Click here" button to start the interaction.
- A modal will appear with a message. Click "Close" to proceed.
- Choose either "1 Flower" or "12 Flowers" to display the corresponding number of animated flowers.
index.html
: The main HTML file containing the structure of the webpage.style.css
: The CSS file for styling the webpage and ensuring responsiveness.app.js
: The JavaScript file for handling the main interactions and animations.display.js
: The JavaScript file for additional display functionalities.README.md
: This README file.
This file contains the HTML structure of the project. It includes links to the external CSS and JavaScript files and uses Bootstrap for basic styling and responsiveness.
This file includes custom styles to make the webpage look attractive and responsive. Key styles include:
.start-container
: Styles for the initial button container..modal-container
and.modal-box
: Styles for the modal that displays the initial message..options-container
and.buttons-container
: Styles for the section where users choose the number of flowers..main-container
,.flower-canvas
, and.text-container
: Styles for the main display area..flower-container
,.flower
, and.petal
: Styles for the flower animations.
This file contains the main JavaScript logic for the project. Key functionalities include:
- Event listeners for buttons to handle user interactions.
- Functions to draw individual petals and flowers on the canvas.
- Functions to create multiple flowers with animations.
This file includes additional JavaScript functions to handle display and animation of flowers.
This project is licensed under the MIT License - see the LICENSE file for details.