We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
import type { TransitionTiming } from "@remotion/transitions"; import { measureSpring, spring, SpringConfig } from "remotion"; const springTimingWithPause = ({ pauseDuration, }: { pauseDuration: number; }): TransitionTiming => { const firstHalf: Partial = {}; const secondPush: Partial = { damping: 200, }; return { getDurationInFrames: ({ fps }) => { return ( measureSpring({ fps, config: firstHalf }) + measureSpring({ fps, config: secondPush }) + pauseDuration ); }, getProgress({ fps, frame }) { const first = spring({ fps, frame, config: firstHalf }); const second = spring({ fps, frame, config: secondPush, delay: pauseDuration + measureSpring({ fps, config: firstHalf }), }); return first / 2 + second / 2; }, }; };
import type { TransitionTiming } from "@remotion/transitions";
import { measureSpring, spring, SpringConfig } from "remotion";
const springTimingWithPause = ({
pauseDuration,
}: {
pauseDuration: number;
}): TransitionTiming => {
const firstHalf: Partial = {};
const secondPush: Partial = {
damping: 200,
};
return {
getDurationInFrames: ({ fps }) => { return ( measureSpring({ fps, config: firstHalf }) + measureSpring({ fps, config: secondPush }) + pauseDuration ); }, getProgress({ fps, frame }) { const first = spring({ fps, frame, config: firstHalf }); const second = spring({ fps, frame, config: secondPush, delay: pauseDuration + measureSpring({ fps, config: firstHalf }), });
return first / 2 + second / 2; },
Originally posted by @pejman-college in 25a956c
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Originally posted by @pejman-college in 25a956c
The text was updated successfully, but these errors were encountered: