A
A
Anton2017-09-27 16:31:56
Slider
Anton, 2017-09-27 16:31:56

How to bubble such a slider?

Good afternoon. I made ordinary sliders for one or more pictures.
But with this one, I have something straight to plug, namely, with the primary positioning of elements, I can’t get to the logic in any way.
4645851698.jpg

5 slides in a container, slide scroll - 1 pc.
The first slide, also known as the zero index, should be in the middle.
The positioning of the slides will be done via transform: translateX.

I just set the center position for the first slide, i.e. the coordinates are in the middle, the second is larger by the width of the slide itself, the third, of course, is also larger ...
And when the 4th and 5th slides went beyond the container, which is hidden by the Hayden overflow, a brilliant idea came to my head - "I'm doing some kind of hellish game" and becomes ashamed.
As a result, I got such a vyser
5818590680.jpg

Something I just can’t figure out how to get all this to be positioned normally, especially considering that we won’t have only 5 slides, but more ... Here I’m just like in I farted a puddle, I feel underdeveloped, because nothing but trash in the head does not climb.

Maybe someone has a similar implementation example, al what?

Ready-made libs are not interested, tk. what is needed is not the result, but the process of improving experience)

Answer the question

In order to leave comments, you need to log in

4 answer(s)
V
Vazgen Aleksanyan, 2019-06-16
@VazgXa

And what is the difficulty, take the same slick slider and rewrite some css

M
Maxim Timofeev, 2017-09-27
@webinar

How to bubble such a slider?

in a graphics editor
Alternatively:
www.responsivejqueryslider.com/carousel.html
https://owlcarousel2.github.io/OwlCarousel2/demos/...

I
Ivan, 2017-09-27
@LiguidCool

brokensquare.com/Code/jquery-flipster/demo
Note that there are 4 demos on the left side of the menu.

D
Dmitry Pyrkin, 2017-09-27
@ps1panda

https://owlcarousel2.github.io/OwlCarousel2/
play around with the margin settings there

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question