javascript - Swiper Slider - Active Slide is not centered - Stack Overflow

My active slide with my swiperjs slider is not in the centerI did some custom CSS classes to have imag

My active slide with my swiperjs slider is not in the center

I did some custom CSS classes to have images vertically aligned and also to have to in correct sizes on mobile screens.

Any Idea what I am doing wrong?

Here is the link: /

My active slide with my swiperjs slider is not in the center

I did some custom CSS classes to have images vertically aligned and also to have to in correct sizes on mobile screens.

Any Idea what I am doing wrong?

Here is the link: https://markrabadan./personal-work/

Share Improve this question asked Oct 20, 2022 at 8:30 pixelcrashpixelcrash 311 gold badge1 silver badge3 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 2
  1. padding and margin for images messes with sliderjs. Use spaceBetween: 30 option instead.
  2. You can either have clipped images of same size(image-fit:cover) or variable size images(max-width:100%; max-height:100%).

https://codepen.io/saravanapriyanm/pen/mdLZqOJ?editors=1000

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745088175a4610530.html

相关推荐

  • javascript - Swiper Slider - Active Slide is not centered - Stack Overflow

    My active slide with my swiperjs slider is not in the centerI did some custom CSS classes to have imag

    15小时前
    20

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信