-
Slider/Carousel with center fade on – yet controlled by null-movement
Hey guys,
right now, I cant really get my head around this. I hope one of you can help me. I bet its actually nothing crazy to change 😛I want to create a slider like this:
https://i.imgur.com/pXhNNkB.gifI get how the code works and how to apply it to any kind of property, like in this case, the layers opacity:
v = transform.position[0] // x
d = length(v,thisComp.width/2);
maxDist= 960; ease(d,0,maxDist,100,0);Unfortunately, it only gets triggerd if every single “slider-element” / layer gets actually moved by changing its position. – I would like to have it work by using a null thats handling the movement from left to right while its the parent of all the slider-elements.
Now, if i parent a layer to a null and move it by moving the null, its position-coordinates remain untouched. – Does anyone of you guys know, how i can make the null position affect the position-coordinates of each layer? Would be much appreaciated!