Skip to content

Simple and responsive weather application built with HTML, CSS, and JavaScript. Fetches real-time weather data and 5-day forecast using WeatherAPI with a modern animated UI.

Notifications You must be signed in to change notification settings

usama247550/weather-app-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🌦️ Weather App

A simple and interactive Weather Application built using HTML, CSS, and JavaScript that allows users to check real-time weather conditions and a 5-day forecast for any city.

πŸš€ Features

🌍 Search weather by city name

🌑️ Displays temperature, condition, humidity, and wind speed

πŸ“… 5-day weather forecast

πŸŽ₯ Animated video background

⏳ Loader animation while fetching data

❌ Error handling for invalid city names

πŸ“± Responsive and clean UI

πŸ› οΈ Technologies Used

HTML5 – Structure

CSS3 – Styling & layout

JavaScript (ES6) – Logic & API handling

WeatherAPI – Real-time weather data

πŸ“‚ Project Structure

weather-app/
β”‚
β”œβ”€β”€ index.html
β”œβ”€β”€ style.css
β”œβ”€β”€ script.js
β”œβ”€β”€ images/
β”‚   β”œβ”€β”€ background.jpeg
β”‚   β”œβ”€β”€ background2.jpeg
β”‚   β”œβ”€β”€ backgroundVideo.mp4
β”‚   └── cloud.jpeg
└── README.md
  

βš™οΈ How to Run the Project

Clone the repository:

git clone https://github.com/usama247550/weather-app-js.git

Open the project folder

Open index.html in your browser

βœ… No additional setup required

πŸ™οΈ Default City

The app loads weather data for Faisalabad by default:

let defaultCity = "faisalabad";

You can change it in script.js.

πŸ“Œ Future Improvements

πŸŒ™ Dark / Light mode

πŸ“ Auto-detect user location

πŸ” Secure API key handling

πŸ“Š Hourly forecast

🀝 Contributing

πŸ‘¨β€πŸ’» Author

Usama MERN Stack Developer

GitHub: https://github.com/usama247550

LinkedIn: https://www.linkedin.com/in/usama-javed-112186320

⭐ Show Your Support

If you like this project, give it a ⭐ on GitHub!

About

Simple and responsive weather application built with HTML, CSS, and JavaScript. Fetches real-time weather data and 5-day forecast using WeatherAPI with a modern animated UI.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published