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.
π 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
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.
π Dark / Light mode
π Auto-detect user location
π Secure API key handling
π Hourly forecast
π€ Contributing
Usama MERN Stack Developer
GitHub: https://github.com/usama247550
LinkedIn: https://www.linkedin.com/in/usama-javed-112186320
If you like this project, give it a β on GitHub!