swiper
swiper copied to clipboard
Allow for function in spaceBetween param
Clear and concise description of the problem
Currently there's no way to set spaceBetween dinamically (apart from using breakpoints). It would be great to be able to set a function returning a number in spaceBetween in order to have dynamic offsets, instead of a fixed numeric value.
Suggested solution
Allow for a function returning a number in spaceBetween, in the same way as slidesOffsetBefore and slidesOffsetAfter
Alternative
No response
Additional context
No response
Validations
- [X] Follow our Code of Conduct
- [X] Read the docs.
- [X] Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
Would you like to open a PR for this feature?
- [ ] I'm willing to open a PR