remotion-dev / remotion

🎥 Make videos programmatically with React

Home Page:https://remotion.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Setting spring config.damping to 0 makes browser page to hang.

curvednebula opened this issue · comments

I think it makes sense to put assertion somewhere inside spring() - to avoid this condition - I almost decided to abandon remotion altogether, because I made a few innocent (as I thought) changes and couldn't understand why UI suddenly stopped working - I thought it was just very unstable and it stopped working for no reason.

const translationMotion = spring({
	frame: frame - startTime,
	fps,
	durationInFrames: 25,
	config: {
		damping: 10, // WARNING: don't put 0 - browser hangs!!!
	},
});

This is a great point, thanks for telling your story!

Fixed in #3792