Check out the live demo: GitHub Pages Demo
This project features a hero slider with a stylish design that includes animated particles in the background, a smooth image carousel using Swiper.js, and background music. The slider displays various superhero images, including Superman, Wonder Woman, Batman, Flash, and Joker. The user can control the background music using a play/pause button.
- Hero image carousel with superhero-themed slides
- Particles.js background animation
- Play/pause audio control
- Stylish hover effects and smooth transitions
- Responsive design for different screen sizes
- HTML
- CSS
- JavaScript
- Swiper.js (for the image carousel)
- Particles.js (for background animation)
- Ionicons (for play/pause icons)
- Navigate to the project directory:
cd hero-slider
- Open
index.html
in your web browser.
hero-slider/
β-- index.html # Main HTML file
β-- css/
β βββ style.css # Stylesheet for the hero slider and animations
β-- js/
β βββ script.js # JavaScript for play/pause button, Swiper, and particles.js
β-- assets/
β βββ Audio/19 Saving the Day_Award Ceremony_End Titles.mp3 # Background music
β βββ images/ # Superhero images for the Favicon
β βββ b8d0f4076816c52e2b0e23ca8d3b540d.jpg #
- Extract the ZIP file.
- Open the
index.html
file in your browser. - Click the play/pause button to control the background music.
- Use the slider to view different superhero images.
- The images will transition smoothly with the help of Swiper.js.
- Modify the
style.css
file to change the design or adjust the background animations. - Update the JavaScript in
script.js
to add or change functionalities. - Replace the superhero images with your own by updating the image URLs in the HTML file.
- Change the background music by replacing the
mp3
file in theassets/Audio/
folder.
This project is open-source and available under the MIT License.
Created by MDJAmin. Check out more projects on GitHub.