Problem/Motivation
The module does not allow configuring the zoom option from the SwiperJS library.
Proposed resolution
Please add the zoom option to the module's configuration form and update the schema and default configuration YAML files accordingly.
Object with zoom parameters or boolean true to enable with default settings
const swiper = new Swiper('.swiper', {
zoom: <Object>{
maxRatio: <integer>5,
}|<boolean>true,
});
Demo: https://swiperjs.com/demos#zoom
API docs: https://swiperjs.com/swiper-api#param-zoom
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | Screen-Recording-2025-10-28-11-21-34.gif | 20.09 MB | sebastix |
| #4 | Screen-Recording-2025-10-28-11-18-40.gif | 319.38 KB | sebastix |
Issue fork swiper_formatter-3554570
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
bbu23Hi, thanks for reporting the feature request.
Comment #3
sebastixI need it for a client project, so I'm going to start build this feature.
Comment #4
sebastixZoom options in the Swiper template config form:

Demo:

Comment #5
sebastixI've pushed the changes to https://git.drupalcode.org/issue/swiper_formatter-3554570/-/tree/3554570.... FYI this MR will conflict with MR#24.
I have not fully tested the zoom options in every format (the dialog for example) yet. But this initial push of the code is ready for a review.
Comment #6
sebastixComment #7
bbu23Thanks for the detailed information. Could you please open an MR on this ticket even if it conflicts with other existing MRs? In order for us & others to review, there has to be an MR. Thank you!
Comment #8
sebastixNormally when I push changes to a issue branch, there is a MR created automatically. In this case, no MR was created. So I'm looking how to create that MR. Can't find how. Am I missing something?
Comment #9
bbu23Idk about automatic MRs, I've never experienced something like that in here. I always create my MRs manually.
You should be able to create the MR here: https://git.drupalcode.org/issue/swiper_formatter-3554570/-/compare/2.1.... by clicking on the "Create merge request" button.
Comment #11
sebastixThx. Here we go: https://git.drupalcode.org/project/swiper_formatter/-/merge_requests/28
Comment #12
sebastixComment #13
bbu23Comment #17
bbu23Thx, this will be available in 2.1.0
Comment #19
sebastixCool, you're welcome!