swiper icon indicating copy to clipboard operation
swiper copied to clipboard

Allow for function in spaceBetween param

Open xxvii opened this issue 2 years ago • 0 comments

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

xxvii avatar Aug 18 '22 07:08 xxvii