A modern, responsive quiz application built with HTML, CSS, and JavaScript featuring dark mode, smooth animations, and an engaging user experience.
- ๐ Dark Mode Toggle - Switch between light and dark themes with smooth transitions
- ๐ Progress Bar - Visual indicator showing quiz completion status
- ๐จ Modern UI Design - Beautiful gradient backgrounds and contemporary styling
- โจ Smooth Animations - Engaging animations for questions, answers, and feedback
- โ Instant Feedback - Visual indicators for correct and incorrect answers
- ๐ฑ Fully Responsive - Optimized for desktop, tablet, and mobile devices
- ๐ Score Summary - Detailed results with percentage and motivational messages
- ๐ฏ Interactive Elements - Hover effects and button animations for better UX
- ๐ Replay Option - Restart the quiz instantly after completion
Simply open the index.html file in your web browser to start the quiz!
No prerequisites required! This is a standalone application that runs entirely in the browser.
- Clone the repository:
git clone https://github.com/akashasahu07/Quiz-App.git- Navigate to the project directory:
cd "Quiz App"- Open
index.htmlin your preferred web browser:
# On macOS
open index.html
# On Linux
xdg-open index.html
# On Windows
start index.htmlOr simply drag and drop the index.html file into your browser.
Quiz App/
โ
โโโ index.html # Main HTML file (contains CSS and JS inline)
โโโ README.md # Project documentation
- Start the Quiz - The quiz loads automatically when you open the page
- Answer Questions - Click on any answer option to select it
- View Feedback - Correct answers turn green, incorrect ones turn red
- Navigate - Click the "Next" button to move to the next question
- Toggle Dark Mode - Click the moon/sun icon in the top right corner
- View Results - After completing all questions, see your score and performance
- Play Again - Click "Play Again" to restart the quiz
The quiz currently contains 11 questions covering various topics:
- Geography
- Science
- Literature
- History
- Chemistry
To add more questions, modify the questions array in the JavaScript section:
const questions = [
{
question: "Your question here?",
answers: [
{ text: "Option 1", correct: false },
{ text: "Option 2", correct: true },
{ text: "Option 3", correct: false },
{ text: "Option 4", correct: false }
]
},
// Add more questions...
];Light Mode Colors:
- Primary gradient:
#667eeato#764ba2 - Modify in the
bodybackground gradient
Dark Mode Colors:
- Primary gradient:
#1a1a2eto#16213e - Accent color:
#e94560 - Modify in the
body.dark-modesection
Animations are defined in CSS @keyframes:
slideIn- Initial container animationfadeIn- Question fade effectcorrectPulse- Correct answer feedbackshake- Incorrect answer feedbackbounce- Score icon animation
- โ Chrome (latest)
- โ Firefox (latest)
- โ Safari (latest)
- โ Edge (latest)
- โ Opera (latest)
- Desktop: > 768px
- Tablet: 481px - 768px
- Mobile: < 480px
- HTML5 - Structure and markup
- CSS3 - Styling, animations, and responsive design
- JavaScript (ES6) - Quiz logic and interactivity
- Font Awesome 6.4.0 - Icons (via CDN)
- No external dependencies (except Font Awesome CDN)
- Lightweight and fast loading
- Smooth 60fps animations
- Optimized for mobile devices
- In-memory state management
Contributions are welcome! Here's how you can help:
- Fork the repository
- Create a new branch (
git checkout -b feature/improvement) - Make your changes
- Commit your changes (
git commit -am 'Add new feature') - Push to the branch (
git push origin feature/improvement) - Create a Pull Request
- Add more question categories
- Implement difficulty levels
- Add timer functionality
- Create a leaderboard system
- Add sound effects
- Multi-language support
This project is licensed under the MIT License - see below for details:
MIT License
Copyright (c) 2025 Quiz Master
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Created with โค๏ธ by Akash Sahu
- Font Awesome for the beautiful icons
- Inspiration from modern quiz applications
- The web development community
For questions or feedback, please reach out:
- Email: akashasahu2001@gmail.com
- GitHub: @akashasahu07
- Repository: Quiz-App
- Add timer for each question
- Implement different difficulty levels
- Add category selection
- Create user authentication
- Add local storage for score history
- Implement sound effects
- Add social sharing features
- Create backend API integration
Made with ๐ง and โ | Star โญ this repo if you find it helpful!