View all expressions
Transformation

Scale Up Near Another Layer Expression

Scales an object based on its proximity to another layer.


point1=thisLayer.position;
point2=thisComp.layer('targetLayer').position;
delta=sub(point1, point2);distance=length(delta);
startSize = 10; // you can connect this value to a slider
endSize = 100; // you can connect this value to a slider
linear(distance, 0, 500, [endSize, endSize], [startSize, startSize]);

Scale Up Near Another Layer Expression

Practical use case

Great for interactive animations, like UI buttons that grow as a cursor approaches.

Check out similar expressions

Data-driven video workflows for After Effects are easier with Plainly.

a mesh of elegant lines transparent image