Skip to content

Allow for function in spaceBetween param #5974

Open
@xxvii

Description

@xxvii

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

  • Follow our Code of Conduct
  • Read the docs.
  • 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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions