How to setup the styles for slider with scale and transform?

Good afternoon/evening/night dear! The question is the following (see the algorithm), there is a slider
Now the reduction and the shift goes in the right direction, given that the first element as would be highlighted, but we need to do something like
5cf4afefca4c6349573392.png
Need not the algorithm, but a hint on how would be more correct, i.e. if you divide an array into 2 parts and use 2 different algorithm, more like a cattle code, and unfortunately the slider does not know, and to correctly formulate a request to Google can't
March 23rd 20 at 18:50
1 answer
March 23rd 20 at 18:52
Solution
https://jsfiddle.net/z1sqv9La/1/

the answer here, spike, but still, can someone come in handy

Find more questions by tags CSS