Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Search API HTML Element Filter 1.0.7 Minor update available for module search_api_html_element_filter (1.0.7). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). Varbase Media Header 9.2.1 Minor update available for module varbase_media_header (9.2.1). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

Swiffy Slider

99 sites Security covered
View on drupal.org

This module integrates Swiffy Slider into Drupal, offering a lightweight, WCAG-compatible slider or carousel solution that can function with minimal or no JavaScript. It provides field formatters for entity references and a format for views, allowing you to easily create custom sliders from your content.

Drupal integration of Swiffy Slider.

This module provides a field formatter for the field type entity_reference and a views format.

Swiffy Slider provides a lightweight slider/carousel solution. All the sliding, dragging, snapping etc. are native browser behavior and not Javascript. Swiffy Slider can even run in a simple mode with no JS at all. Support for any input device (including touch pads, pencils, assistive devices) and 100% WCAG compatible.

How to use it

Implementation

This module ships already the required library, but it is possible to override the used version.

1. Add the following snippet to your composer.json inside repositories

{
  "type": "package",
  "package": {
    "type": "drupal-library",
    "name": "dynamicweb/swiffy-slider",
    "version": "v1.6.0",
    "dist": {
      "url": "https://github.com/dynamicweb/swiffy-slider/archive/refs/tags/v1.6.0.zip",
      "type": "zip"
    }
  }
}

2. Download the dependency

composer require dynamicweb/swiffy-slider

3. Enable the module

Field formatter

Mise en place

  1. Build a multi-value media field, e. g. in the content type article
  2. Create a content with at least two images in that field
  3. Go to https://swiffyslider.com/configuration/ and customize the slider options, copy the "Perma link"

Configure the field formatter

  1. In your content type, go to "Manage display", spot the media field
  2. Under "Format", select "Swiffy Slider"
  3. Click settings (the gear icon) and paste the copied Perma link

No third-party calls. The field allows the complete URL for your convenience, all customized config will be handled locally.

Views display

Have some nodes at hand (e. g. articles) and make sure you have configured a suitable teaser display (e. g. title, body trimmed to 200 characters, teaser image).

  1. Add a display to a node-based view, e. g. to the frontpage view
  2. Use unformatted list with teasers or fields, as you like
  3. Select format: Swiffy Slider
  4. Go to https://swiffyslider.com/configuration/ and customize the slider options, copy the "Perma link"
  5. Paste the copied link in the Settings field "Configuration URL"

No third-party calls, as stated above.

Known issues

For some reason the loop (at the end of a list go to first item) does not work when snap behaviour is active. Any ideas welcome.

Why only a configuration URL?

Swiffy Slider has a lot of configuration options. We find it very convenient to configure everything on the Configuration page with a sample preview right in place.

Replicating all settings to the field formatter or views settings would add a lot of complexity to the Drupal back-end forms. If you think it would be worth the effort nevertheless, we'd recommend to build a complimentary module with all the settings in the Drupal back-end.

Activity

Total releases
2
First release
Jun 2025
Latest release
10 months ago
Releases (12 mo)
1
Maintenance
Slowing

Releases

Version Type Release date
1.4.0 Stable Aug 29, 2025
1.4.x-dev Dev Jun 4, 2025