Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/remotion/MyPerformances.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const MyPerformanceCard: React.FC<
}
});

const translateX = interpolate(progress, [0, 1], [200, 0]);
const translateX = Math.floor(interpolate(progress, [0, 1], [200, 0]));
const opacity = interpolate(progress, [0, 1], [0, 1]);

const placementColor = useMemo(() => {
Expand Down
13 changes: 11 additions & 2 deletions src/remotion/ThisIsMyRecap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,17 @@ export const ThisIsMyRecap: React.FC<ThisIsMyRecapProps> = ({
}
});

const titleTranslateY = interpolate(entrance, [0, 1], [-height, 0]);
const cardTranslateY = interpolate(entrance, [0, 1], [height, height * 0.3]);
const titleTranslateY = Math.ceil(
interpolate(entrance, [0, 1], [-height, 0], {
extrapolateRight: 'clamp'
})
);
const cardTranslateY = Math.floor(
interpolate(entrance, [0, 1], [height, height * 0.3], {
extrapolateLeft: 'identity',
extrapolateRight: 'clamp'
})
);

return (
<AbsoluteFill
Expand Down
3 changes: 1 addition & 2 deletions src/remotion/Tournaments.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ export const Tournaments: React.FC<TournamentsProps> = ({ year, attendance }) =>
[TOURNAMENTS_DURATION - 10, TOURNAMENTS_DURATION],
[1, 0],
{
extrapolateLeft: 'clamp',
extrapolateRight: 'clamp'
extrapolateLeft: 'clamp'
}
);

Expand Down
10 changes: 8 additions & 2 deletions src/remotion/components/Bar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,14 @@ export const Bar: React.FC<BarProps> = ({ label, value, isHighest, maxHeight, in
}
});

const displayedValue = Math.round(interpolate(progress, [0, 1], [0, value]));
const currentHeight = interpolate(progress, [0, 1], [0, maxHeight]);
const displayedValue = Math.round(
interpolate(progress, [0, 1], [0, value], {
extrapolateRight: 'identity'
})
);
const currentHeight = interpolate(progress, [0, 1], [0, maxHeight], {
extrapolateRight: 'identity'
});

return (
<div
Expand Down