Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: Views Bootstrap 5.5.4 — Minor update available for module views_bootstrap (5.5.4). Release: Rightup theme 1.0.3 — Minor update available for theme vartheme_bs5_rightup (1.0.3). Release: CommentOn 1.0.6 — Minor update available for module commenton (1.0.6). Release: ChatGPT Ads 1.0.3 — Minor update available for module chatgpt_ads (1.0.3). Release: Opensolr Search 5.1.3 — Minor update available for module opensolr_search (5.1.3). Release: ServiceM8 Webform Integration 1.2.1 — Minor update available for module servicem8_webform (1.2.1). Release: PostfixAdmin 1.0.0 — Initial release available for module postfix_admin (1.0.0)! Release: ip_analyser 1.0.3 — Minor update available for module ip_analyser (1.0.3). Module Revived: Swagger-PHP OpenAPI 3 documentation generator 1.0.0 — Module swagger_php updated after 10 months of inactivity (1.0.0). Security Coverage: Microsoft Azure AI — Module ai_provider_azure now has official Drupal security advisory coverage.

The Simple Carousel module provides a clean and efficient solution for creating a carousel of items in a Drupal site. It leverages native CSS scroll behavior for smooth scrolling and minimal dependencies. This module is designed to be lightweight, easy to use, and highly customizable, making it an ideal choice for developers looking for a simple carousel implementation without the overhead of additional libraries.

Features

  • Customizable items per viewport: Configure the number of items visible at once.
  • CSS-based scrolling: Utilizes native CSS scroll for smooth and efficient scrolling.
  • No extra dependencies: Purely relies on CSS and minimal JavaScript, avoiding the need for bulky libraries.
  • Flexible customization: Easily add custom classes to item wrappers and the full carousel wrapper.
  • Responsive design: Adjusts the number of visible items based on screen size.

How It Works

The Simple Carousel module creates a custom Views style plugin that renders items in a horizontally scrollable container. It uses CSS Flexbox for layout and JavaScript for scroll control, providing a seamless and smooth user experience.

Key Components

  1. CSS:

    • Flexbox layout for the carousel items.
    • Gradient backgrounds for navigation buttons.
    • Responsive design with media queries to adjust item width based on viewport size.
  2. JavaScript:

    • Handles the scrolling behavior for the previous and next buttons.
    • Automatically scrolls back to the beginning when the end is reached.

Usage

  1. Create a View:

    • Go to Structure > Views > Add new view.
    • Configure your view to display the desired content.
    • Under the "Format" section, select "Simple Carousel" as the style.
  2. Configure the Carousel:

    • Set the number of items per viewport.
    • Add custom classes for item wrappers and the full wrapper if needed.
    • Customize the text for the previous and next buttons.
  3. Place the View:

    • Add the view to a block or a page as needed.

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
6
Tracked since
Jun 2024
Latest release
2 years ago
Releases (12 mo)
0
Maintenance
Dormant

Release Timeline

Releases

Version Type Core Release date
1.0.3 Stable Jun 27, 2024
1.0.2 Stable Jun 26, 2024
1.0.1 Stable Jun 26, 2024
1.0.0 Stable Jun 26, 2024
1.0.0-rc2 Pre-release Jun 26, 2024
1.0.0-rc1 Pre-release Jun 26, 2024