Features
The slider includes several key features:
- Smooth accordion effect on hover
- Fully responsive across all devices
- Custom titles with clickable links
- Easy to customize
- No plugins required
- Lightweight and fast loading
How It Works
The slider utilizes flexbox for layout and CSS transitions for smooth animations. On desktop screens, images are arranged horizontally and expand when hovered over. On mobile devices, it automatically switches to a vertical layout for better user experience. The titles appear in an elegant overlay when hovering over each image.
Image Optimization
For optimal performance of your accordion slider, using properly optimized images is crucial. For WebP conversion and image optimization, you can use this free tool:
This tool allows you to:
- Convert your images to WebP format
- Optimize image size without quality loss
- Maintain proper dimensions for the slider (700x700px recommended)
- Reduce loading time of your accordion slider
Steps for image optimization:
- Visit https://umbertoberti.com/optimized-image/
- Upload your original image
- Download the optimized WebP version
- Replace the image URL in the accordion slider code
- Test the slider to ensure smooth loading
Remember to use meaningful alt text for your images after optimization for better SEO and accessibility. The optimized WebP images will significantly improve your slider’s loading speed while maintaining high visual quality.
Implementation
Here’s the complete code you can copy directly into your Elementor HTML widget:
Installation Steps
Installing the accordion slider is straightforward:
- Open your Elementor page builder
- Add a new HTML widget to your desired location
- Copy the entire code provided above
- Paste it into the HTML widget
- Replace the image URLs with paths to your own images
- Update the link URLs and titles for each slide
- Save your changes and preview
Customization Options
The slider is highly customizable to match your website’s design. You can easily modify:
- Overall appearance by adjusting image heights
- Overlay colors and text styles
- Number of slides by adding or removing accordion-slide blocks
- Hover effects by modifying flex values and transition timing
Responsive Design
The slider automatically adapts to different screen sizes:
- Desktop (above 1024px): Full-width horizontal accordion
- Tablet (768px-1024px): Horizontal layout with reduced height
- Mobile (below 768px): Vertical accordion with touch-friendly dimensions
Troubleshooting
If you encounter any issues:
- Verify all image URLs are correct
- Ensure the HTML widget is properly saved
- Try clearing your browser cache
- Check for potential theme conflicts with the styles
This accordion slider offers a professional and engaging way to showcase your images without requiring any plugins.
Simply copy, paste, and customize to match your website’s needs!





