f = 2.3; //factor to increase scale by
min = 0; //distance in pixels from the center where the layer is at full scale
max = 100; //distance in pixels from the center where the layer is at 'normal' scale
c = [thisComp.width / 2, thisComp.height / 2]; //center of the composition
p = toComp(anchorPoint); //location of the current layer in the composition
d = Math.abs((p - c)[0]); //distance from the center along the x-axis
ease(d, min, max, f * value, value);