A modern, accessible weather application designed specifically for Indian cities with real-time temperature display and dynamic visual effects. Built with HTML, CSS, and JavaScript.
- π‘οΈ Temperature-based backgrounds (Cold/Cool/Warm/Hot)
- π Day/Night mode (automatically adjusts based on time)
- β‘ Lightning flash effect during thunderstorms
- π City search with autocomplete (India-only cities)
- π Auto-location detection using geolocation
- βΏ Accessibility optimized (ARIA labels, keyboard navigation)
- π± Fully responsive design
- π¨ Clean, modern UI with smooth transitions
- HTML5 (semantic markup)
- CSS3 (flexbox, animations, custom properties)
- Vanilla JavaScript (ES6+)
- Open-Meteo API (weather data)
- Geocoding API (city coordinates)
weather-app/
βββ index.html # Main HTML file
βββ style.css # All styles and animations
βββ script.js # Weather logic and API calls
βββ README.md # This file
- Search for an Indian city using the search bar
- Click suggestions or type the full city name
- Press "Check" or hit Enter
- View real-time weather data including:
- Current temperature
- Humidity percentage
- Wind speed
- Dynamic background based on temperature
- Auto-location: On first load, the app will ask for your location permission to show local weather
- Day/Night Mode: Automatically switches based on your local time
- Thunderstorm Effects: Lightning animation appears during stormy weather
- Dynamic Backgrounds: Changes color based on temperature (blue for cold, red for hot)
- Smooth Animations: All transitions are fluid and pleasing
- Mobile Responsive: Works perfectly on all screen sizes
- High Contrast: Designed with accessibility in mind
To run locally:
# Clone the repository
git clone https://github.com/priyabariya83/WeatherApp.git
# Navigate to project directory
cd WeatherApp
# Open index.html in your browser
# No build process required - it's pure HTML/CSS/JS!| Browser | Support |
|---|---|
| Chrome | β Full |
| Firefox | β Full |
| Safari | β Full |
| Edge | β Full |
Contributions are welcome! Feel free to:
- Fork the repository
- Create a feature branch
- Submit a Pull Request
This project is open source and available under the MIT License.
- Weather data provided by Open-Meteo
- Icons and emojis from Unicode
- Inspired by modern weather applications
β If you like this project, give it a star! β
Made with β€οΈ by Priya Bariya