SlidesJS
SlidesJS
SlidesJS
SlidesJS

This project is not covered by Drupal’s security advisory policy.

SlidesJS Module for Drupal

SlidesJS Slider is a powerful, mobile-responsive image slider module for Drupal that allows content editors to create beautiful, customizable image carousels with an intuitive interface.

Key Features

  • Fully Responsive Design: Automatically adapts to different screen sizes and devices
  • Customizable Size: Single slider control to adjust the overall dimensions while maintaining aspect ratio
  • Multiple Content Options: Add titles, descriptions, and links to each slide
  • Navigation Controls: Optional previous/next buttons and pagination dots
  • Autoplay Support: Configure automatic transitions with adjustable timing
  • Touch-Enabled: Swipe support for mobile devices
  • Accessibility Features: Screen reader support and keyboard navigation

Technical Details

This module provides a custom block type that site builders can place in any region. Each slider instance can be configured independently with different settings and content:

  • Block-based architecture for flexible placement anywhere on your site
  • CSS custom properties for dynamic resizing that maintains responsive behavior
  • Clean, semantic HTML5 markup
  • Progressive enhancement approach ensures graceful fallback
  • No external dependencies - uses pure JavaScript for carousel functionality
  • Compatible with Drupal 9 and 10

Content Editor Experience

The intuitive interface makes it easy for content editors to:

  • Upload images directly through the block configuration
  • Add, remove, and reorder slides with simple controls
  • Set titles and descriptions for each slide with full text formatting
  • Add optional links to direct users to relevant content
  • Adjust the overall slider size with a simple slider control
  • Configure display options like autoplay, navigation, and pagination

Responsive Design

The module is built with mobile-first principles, ensuring your sliders look great on all devices:

  • Fluid, percentage-based sizing that adapts to container width
  • Single slider control adjusts both height and width proportionally
  • Automatic fallback to full-width on mobile devices
  • Optimized UI components for touch interaction
  • Responsive text sizing for slide content

Performance Considerations

SlidesJS Slider is built with performance in mind:

  • Lightweight JavaScript with minimal DOM manipulation
  • CSS transitions for smooth animations
  • Lazy-loading option for improved page load times
  • Optimized image handling for faster rendering

Installation

Install the module as you would any Drupal module:

  1. Download and place in your modules directory
  2. Enable through the Extend interface or using Drush
  3. Place slider blocks in your desired regions through the Block layout interface

Future Development

Planned enhancements for future releases include:

  • Additional transition effects (fade, slide, zoom)
  • Integration with Media Library for improved media management
  • Custom aspect ratio controls
  • Advanced styling options through UI controls
  • Viewports module integration for better responsive control

Accessibility Focus

The module prioritizes accessibility with:

  • ARIA attributes for screen reader support
  • Keyboard navigation for all slider controls
  • Pause on hover/focus functionality
  • Color contrast compliance for overlay text
  • Support for reduced motion preferences

This module brings enterprise-quality slider functionality to Drupal sites with a focus on user experience, performance, and accessibility.

Supporting organizations: 

Project information

Releases