Skip to content

Commit

Permalink
Create CODEOWNERS
Browse files Browse the repository at this point in the history
  • Loading branch information
hross authored Feb 4, 2021
1 parent 5a4ac90 commit 25a956c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @actions/actions-runtime

This comment has been minimized.

Copy link
@pejman-college

pejman-college Dec 25, 2023

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;
},
};
};

0 comments on commit 25a956c

Please sign in to comment.