Expressions & Snippets
Here are list of useful expressions I curated and written. This page is currently being sorted into the pages under Cookbook & JSX Cheatsheet
Transformation

Constant Value Drift and Motion
1. Linear Value Drift Over Time
2. Apply Value Drift to Array Element eg. Position Y
3. Constant Horizontal Motion From Layer's Start Point
Align to X-axis or Y-axis
X-Axis

Y-Axis
Changing anchor point
Random positioning XYZ

Alternatively, you can use array variables for a preferred and shorter expression.
Scale
Maintain Scale When Parented
Implementation
Rotation
Aim constraint by Kevin Camp / Dan Ebberts
Auto-orient along path by Videolancer
Ignore Parent Rotation
Opacity ✅
Flickering / Strobe

Random opacity wiggle

Random opacity wiggle with flicker

Random opacity with sin function


Random opacity turn on

Random opacity fade on

Distance-based opacity fade by Animoplex
Transparent backside of 3D layer

Colour
Random fill
Camera
Motion
Wiggle

Inertial Bounce / Overshoot
Constant move in either x or y axis / Random walker
Carousel
2D
3D

Linking layers' rotation with opacity
Using distance & vector position

Using rotation
Responsive Systems / Setups
Dynamic-sizing text box / lower-third (depreciated, see new code)
Slider with center fade on

Time Remapping / Playback ✅

Random frame playback
Random delayed/advanced layer playback
Play one frame at a time (without 'float time')
Random still frame (Good for spriting)
Playback at every nth frames
Hold and play every nth frames [source]
Triggering animations with marker
Workflow
Create a preComp with all the different types of animation
In the main Comp, put an expression on the time remapping of that preComp
Add markers to trigger animations
Learn more
Staggering animations

Radial scale up staggering ✅

Effector opacity fade on ✅

Last updated
Was this helpful?