Skip to content

Production-ready animations, transitions, backgrounds, and scenes for Remotion

fix: linter

kapishdima975b7549f673
diff --git a/registry/remocn/chromatic-wave/index.tsx b/registry/remocn/chromatic-wave/index.tsx
index 41c3f5dd..4ec72afd 100644
--- a/registry/remocn/chromatic-wave/index.tsx
+++ b/registry/remocn/chromatic-wave/index.tsx
@@ -77,7 +77,8 @@ function buildMapUri({
return `${x},${y}`;
});
const back = Array.from({ length: segments + 1 }, (_, s) => {
- const x = -overhang + ((segments - s) / segments) * (width + overhang * 2);
+ const x =
+ -overhang + ((segments - s) / segments) * (width + overhang * 2);
const y =
top +
bandHeight +
diff --git a/registry/remocn/lens-zoom/index.tsx b/registry/remocn/lens-zoom/index.tsx
index 3d1c2d90..9e6f63ba 100644
--- a/registry/remocn/lens-zoom/index.tsx
+++ b/registry/remocn/lens-zoom/index.tsx
@@ -157,8 +157,9 @@ function TransitionHalf({
const samples =
blur <= 0.05 ? 1 : Math.max(2, Math.round((blurSamples * blur) / 60));
- const weights = Array.from({ length: samples }, (_, j) =>
- Math.pow(1 - j / samples, blurFade),
+ const weights = Array.from(
+ { length: samples },
+ (_, j) => (1 - j / samples) ** blurFade,
);
const groups: {
@@ -211,7 +212,10 @@ function TransitionHalf({
return (
<div style={{ position: "absolute", inset: 0 }}>
{groups.map(({ key, alpha, copies }) => (
- <div key={key} style={{ position: "absolute", inset: 0, opacity: alpha }}>
+ <div
+ key={key}
+ style={{ position: "absolute", inset: 0, opacity: alpha }}
+ >
{copies.map(({ key: ck, clip, k }) => (
<div
key={ck}
@@ -384,7 +388,12 @@ function LensZoomStage({
const LensZoomPresentation: React.FC<
TransitionPresentationComponentProps<LensZoomProps>
-> = ({ children, presentationDirection, presentationProgress, passedProps }) => {
+> = ({
+ children,
+ presentationDirection,
+ presentationProgress,
+ passedProps,
+}) => {
const config = useVideoConfig();
const {
inScaleFrom = 100,