Skip to content

Why is the swiper setting direction={'vertical'} in the card state, but it doesn't center when sliding? #8075

@wangrongding

Description

@wangrongding

Check that this is really a bug

  • I confirm

Reproduction link

https://codepen.io/wangrongding/pen/OPyrMrZ

Bug description

Image

I hope it is centered horizontally.

Expected Behavior

No response

Actual Behavior

No response

Swiper version

11.1.14

Platform/Target and Browser Versions

Chrome 139.0.7258.155

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.
  • Make sure this is a Swiper issue and not a framework-specific issue

Would you like to open a PR for this bug?

  • I'm willing to open a PR

Metadata

Metadata

Assignees

No one assigned

    Labels

    t0gglesLinked to the t0ggles task

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions