D
D
Denis2021-10-21 15:27:28
css
Denis, 2021-10-21 15:27:28

swiperjs slider, how to make one like this?

Hello, there is a swiperjs slider, everything works fine, but you need to pull the last slide out of the container

61715c540d877307392334.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Litvinenko, 2021-10-21
@AntonLitvinenko

Take the slider out of the container, wrap it in a wrapper and give the wrapper an indent on the left

.slider-wrapper {
  margin-left: calc(50% - 1200px/2);
}

where 1200 is the width of your container

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question