by Lovro Hrust on WordPress.org
Block based slider, leverages the speed and versatility of the Swiper slider.
I am accepting suggestions for new features and improvements.
If you have an idea, please open an issue on GitHub
or write here in support section.
Head to Swiper docs, to Parameters section to find parameter you need.
More elaborate configuration for some features is available further below on page, in Modules section.
Once you found the parameters you need, write them as JSON instead as javascript object, i.e.:
{
autoplay: {
delay: 6000,
disableOnInteraction: true
},
pagination: {
clickable: true
}
}
would be written as
{
"autoplay": {
"delay": 6000,
"disableOnInteraction": true
},
"pagination": {
"clickable": true
}
}
And enter them on settings tab in block sidebar under Advanced slider configuration section.
You can learn more about JSON in Stackoverflow blog or on W3schools page.
Your JSON configuration merges with default configuration needed for swiper to run. You can break slider functioning through misconfiguration, so this is the first place to look if something does not work.
There is a built in syntax checker in Advanced slider settings box,
There is a full source code on github. You can investigate code, adjust it to your needs, collaborate, …