Expression Library

Pulse

Applied to the scale property generates a continuous throbbing or pulsing effect.

Code Sample

Hover over the code and click the copy button.

				
					freq = 2;  //adjust as required
amp = 15; //adjust as required
p = amp*Math.sin(freq*time*Math.PI*2);
value + [p,0] // use [0,p] to affect y value only, [p,p] for uniform scaling, and [p,p,0] to scale the x and y dimensions on 3D layers.