/Falling-Stars

The Falling Stars project is a fun and dynamic web animation created using HTML, CSS, and JavaScript. It brings a playful touch to your webpage by simulating stars falling from the top to the bottom with a rotation animation.

Primary LanguageCSS

Falling Stars

Description

Falling Stars is a whimsical web animation that features stars falling with a rotating effect. This project adds a playful touch to your webpage, creating an engaging visual experience.

Live Demo

Check out the live demo on CodePen.

Getting Started

Prerequisites

Ensure you have a modern web browser that supports CSS animations.

Installation

Clone the repository:

git clone https://github.com/StarKnightt/Falling-Stars.git

Usage

The stars fall with a rotation animation and disappear after a set duration. Customize the animation by adjusting parameters in the @keyframes rule and the stars function in script.js.

Customization

Feel free to customize the appearance and behavior of the falling stars:

  • Modify the @keyframes rule in style.css for different animation effects.
  • Adjust the position, color, and text-shadow properties for the stars.
  • Change the fontSize and animationDuration properties in the stars function for varied star sizes and falling speeds.

Responsive Design

The project is designed to be responsive. Media queries have been implemented to adapt the styles for different screen sizes.

/* Media Queries for Responsiveness */

@media screen and (max-width: 600px) {
    .star {
        font-size: 8px; /* Adjust the font size for smaller screens */
    }
}

@media screen and (min-width: 601px) and (max-width: 1200px) {
    /* Add additional styles for screens between 601px and 1200px */
}

Feel free to use and customize this README for your GitHub repository. If you have any other questions or need further assistance, let me know!