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
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

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

Find more questions by tags CSS