Hold-frame based spring animations.
Add hold keyframes to a property, call spring()
, that's it!.
✨ View more details on our website: motiondeveloper.com/tools/espring
- The duration for each animation is set by the spring configuration, so you only need to add one keyframe for each value
- Correctly animate out of in-progress animations
- Use phyically modelled springs to quickly get good looking aniamtions
🏗 This project was created with create-expression-lib - our utility for creating and managing After Effects .jsx
libraries.
- Download the latest version from the releases page.
- Import it into After Effects
Usage:
const { eSpring } = footage('eSpring.jsx').sourceData;
eSpring();
Types:
eSpring(options = {
mass = 1,
stiffness = 100,
damping = 10,
initialVelocity = 0,
property = thisProperty,
__fast = false,
}, time = thisLayer.time): PropertyValueType
-
Clone project locally
git clone https://github.com/motiondeveloper/eSpring.git cd eSpring
-
Start Rollup
Start Rollup in watch mode to automatically refresh your code as you make changes, by running:
npm run watch
You can run also run a once off build:
npm run build
-
Edit the
src
filesThe
index.ts
contains an example expression setup.Any values exported from this file will be included in your library, for example:
export { someValue };
-
Import the
dist
file into After EffectsUse the compiled output file as you would any other
.jsx
library. Any changes to thesrc
files will be live updated, and After Effects will update the result of your expression.