// Apply this expression to the scrollbar layer's y position c = thisComp.layer("Layername"); - ( ( c.transform.yPosition - c.height/2 ) - thisComp.height / 2 ) * ( thisComp.height / c.height )