Skip to content

[Review/Help needed] Gutenblock for Slider/Slideshow #6608

@strarsis

Description

@strarsis

A modular experience with Gutenberg and sliders, see this alpha https://github.com/strarsis/slider-block/.

The Slider Gutenblock is still a prototype but you can already place a slider block, add/remove slides, add other blocks and even nest further sliders into the slides!

Because it is still alpha there are some bugs though and the slider options aren't configurable yet but this can be a starting point for further improvements.

Either download the repository as archive and extract into plugin folder or clone and develop on it using the existing tools (Create Guten Block generated).

Some features/suggestions/plans/inspiration:

  • Wholly separate slide block for slide-specific transitions and options (Introduce Child Blocks #5540).
  • Normalization of underlying slider library so that other slider libraries can be used in future besides from Swiper (though it is already really comprehensive and open source).
  • Separate / freely movable blocks that can be linked to a slider:
    1. Previous/Next button
    2. Pagination
    3. Scrollbar
  • Block-level event/notification system so that the blocks inside the slider slides are notified when they are shown or moving out of sight. This allows even more modularity for other block authors, e.g. for image effect blocks.
  • Declarative approach for slider options: Storing the slider options as HTML data attributes for initialization by script in frontend (theme).
  • Easier sorting/moving of slides, especially when there are many of them.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions