Skip to content

spring raise and then decrease #1909

Answered by JonnyBurger
martinlau01 asked this question in Q&A
Discussion options

You must be logged in to vote

My recommendation is to add the transforms together =

const scaleUp = spring({
		frame,
		from: 0,
		to: 20,
		config: {
			mass: 3,
			damping: 20,
		},
		fps: videoConfig.fps,
	}) + spring({
		frame: frame - 20,
		from: 5,
		to: 0,
		config: {
			mass: 3,
			damping: 20,
		},
		fps: videoConfig.fps,
	});

See also https://www.remotion.dev/docs/miscellaneous/snippets/adding-animations!

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by martinlau01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants