A responsive image slider/carousel that automatically transitions between images every 5 seconds. The application includes manual navigation controls and supports both automatic and manual image transitions.
- Automatic image transition every 5 seconds
- Manual navigation arrows (Previous/Next)
- Smooth transition effects
- Responsive design
- Supports 9 sequential images
- Mobile-friendly interface
image-slider/
│
├── imageSlider.html
├── imageSlider.css
├── imageSlider.js
└── images/
├── 1.png
├── 2.png
├── 3.png
├── 4.png
├── 5.png
├── 6.png
├── 7.png
├── 8.png
└── 9.png
The HTML structure includes:
- Container for the slider
- Image container
- Navigation arrows (< and >)
- Image elements for all 9 images
- Links to CSS and JavaScript files
The stylesheet contains:
- Slider container styling
- Image positioning and sizing
- Navigation arrow styling
- Transition animations
- Responsive design rules
- Hover effects for navigation
The JavaScript functionality includes:
- 5-second automatic slideshow timer
- Manual navigation handling
- Transition effects
- Image sequence management (1.png through 9.png)
- Touch event handling for mobile
- Window resize handling
- Download all files into the same directory
- Ensure all 9 PNG images are numbered sequentially (1.png through 9.png)
- Place images in the root folder
- Open
imageSlider.html
in a web browser
- Images transition automatically every 5 seconds
- Click left/right arrows for manual navigation
- Slider is responsive and adjusts to container size
- Touch-swipe enabled for mobile devices
- Images should be named numerically (1.png through 9.png)
- PNG format required
- Consistent image dimensions recommended
- Optimized file sizes for web performance
Works with all modern web browsers including:
- Google Chrome
- Mozilla Firefox
- Microsoft Edge
- Safari
This is a standalone application with no external dependencies. It uses:
- Vanilla JavaScript
- Standard HTML5
- Pure CSS3
To contribute to this project:
- Fork the repository
- Create your feature branch
- Make your improvements
- Submit a pull request
Potential features that could be added:
- Support for different image formats
- Customizable transition timing
- Progress bar indicator
- Thumbnail navigation
- Caption support
- Custom navigation styling
- Dynamic image loading
- Support for variable number of images
- Sequential image naming for easy management
- CSS transitions for smooth effects
- Optimized for mobile devices
- Minimal DOM manipulation