This block was initially created during the Speed Build Challenge at WordCamp Asia 2025, with approximately an additional hour of refinement work afterward. Total development time was about 1.5 hours, built using Cursor.
A WordPress block that creates a responsive, customizable carousel/slider using cover blocks as slides. Built with modern WordPress development practices and the Splide.js library.
- Supports multiple slides with configurable number of visible slides (1-3)
- Adjustable gap between slides
- Customizable minimum height for slides
- Optional infinite loop functionality
- Interactive floating arrows for navigation
- Color customization through WordPress color palette
- Full support for WordPress block alignment (full-width, wide, and default)
- Fully responsive with mobile optimization
- Compatible with WordPress block themes
- Built using modern WordPress block development practices
- Built using
@wordpress/create-block
- Uses Splide.js for carousel functionality
- Follows WordPress coding standards
- Implements modern React patterns
- Supports WordPress color system integration
- Uses CSS custom properties for dynamic styling
- Download or clone this repository
- Run
npm install
to install dependencies - Run
npm run build
to build the block - Activate the plugin in WordPress
- Add the Carousel block to your page/post
- Add Cover blocks as slides
- Customize the carousel settings in the block sidebar:
- Number of slides to show
- Gap between slides
- Minimum height
- Loop functionality
- Arrow color
npm start
- Starts the development environmentnpm run build
- Builds the production versionnpm run format
- Formats code according to WordPress standards
- Built during WordCamp Asia 2024 Speed Build Challenge
- Additional development using Cursor
- Uses Splide.js for carousel functionality
GPLv2 or later