-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Closed
Description
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:
- Previous/Next button
- Pagination
- 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
dataattributes for initialization by script in frontend (theme). - Easier sorting/moving of slides, especially when there are many of them.
Metadata
Metadata
Assignees
Labels
No labels