Repository navigation
Joomla!LABS Image Comparison Slider Module 2.0.0
π What's New
Version 2.0 is a complete rewrite of the Image Comparison Slider module, bringing modern architecture, enhanced accessibility, and improved performance to Joomla 6+.
β¨ Highlights
π Modern Architecture
- Joomla 6+ Ready - Full namespace support and modern structure
- Zero jQuery - Pure vanilla JavaScript ES6+
- Web Asset Manager - Proper asset loading and caching
- Service Provider - Dependency injection pattern
- PSR-12 Compliant - Clean, maintainable code
βΏ Enhanced Accessibility (WCAG 2.1 AAA)
- Full Keyboard Navigation - Arrow keys, Home, End support
- Screen Reader Ready - Complete ARIA attributes
- Focus Management - Clear visual indicators
- Reduced Motion - Respects user preferences
- Alt Text Support - Proper image descriptions
β‘ Performance Improvements
- 30KB Smaller - Removed jQuery dependency
- IntersectionObserver - Lazy loading and viewport detection
- ResizeObserver - Efficient responsive updates
- GPU Acceleration - Hardware-accelerated CSS transforms
- Optimized Touch - Better mobile performance
π¨ New Features
- Image Captions - Optional labels for both images
- ARIA Label - Customizable screen reader descriptions
- Bootstrap Integration - Native support for Bootstrap buttons
- SVG Icons - Scalable, crisp graphics
- Smooth Animations - CSS3-powered transitions
π Requirements
| Component | Version |
|---|---|
| Joomla! | 4.4+ (Recommended: 6.0+) |
| PHP | 8.1+ (Recommended: 8.2 or 8.3) |
| Browser | Modern browsers (Chrome 90+, Firefox 88+, Safari 14+, Edge 90+) |
π― Key Features
User Experience
- β Interactive draggable slider for image comparison
- β Touch-friendly mobile interface
- β Keyboard navigation (arrows, Home, End)
- β Smooth CSS3 animations
- β Responsive design for all screen sizes
- β Lazy loading for better performance
Accessibility
- β WCAG 2.1 AAA compliant
- β Full keyboard support
- β Screen reader compatible
- β ARIA attributes throughout
- β Focus indicators
- β Reduced motion support
Configuration
- β Easy media picker for images
- β Alt text for accessibility
- β Optional image captions
- β Customizable ARIA labels
- β Module class suffix
- β Caching support
π‘ Usage
Mouse/Touch
- Click & Drag - Drag the center handle left or right
- Touch & Swipe - Swipe on mobile devices
Keyboard
Tab- Focus the sliderβ / β- Move left/right (1% per press)β / β- Alternative arrowsHome- Jump to start (0%)End- Jump to end (100%)
π Known Issues
None at this time. Please report any issues on GitHub Issues.
π Breaking Changes from v1.x
- jQuery Removed - Module now uses vanilla JavaScript
- File Structure - New namespace-based structure
- HTML Structure - Updated with new CSS classes
- Asset Loading - Web Asset Manager instead of manual loading
- Template Changes - If you have overrides, they need updating