G
G
godsplane2021-01-07 00:57:04
JavaScript
godsplane, 2021-01-07 00:57:04

How to make a similar slider on slick?

https://derevopark.com/
Slider at the bottom
The problem is with the location of the first and second slides, the second slide is only half visible and when scrolling it should increase and the next slide should decrease and be pulled up to it. I tried different options with scale and transform-origin , but my animation is jerky or out of sync.
Help plz I've been hammering for hours.

https://codepen.io/poylar/pen/YzGvZEX
These are my attempts

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey delphinpro, 2021-01-07
@godsplane

Remove all this garbage in js with styles.
All slides coming after the active set the transformation (scale < 1) and transitions.
Active (the first of the active ones, because there will probably be two active ones) - scale = 1 transformation
All this can be written in css, without using slider events.
Here, illustrated the main idea: https://codepen.io/delphinpro/pen/ExgRENX

I
inkShio, 2021-01-07
@inkShio

codepen.io something like that, just position the arrows and pagination.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question