Drifting Motion

Adds a slow, continuous drift to the layer's position.

Code

speed = 20;
angle = 45;
radians = degreesToRadians(angle);
[ Math.cos(radians) * speed * time, Math.sin(radians) * speed * time ]
positiondriftanimation

How to Use

Apply this to the Position property so your layer drifts gracefully across the composition. Adjust the `speed` and `angle` variables for different drift directions.