滑入式字卡
色塊帶著姓名與頭銜從左側滑入,乾淨俐落的標準下三分之一。
文字簡約橫式商務
提示詞(可直接修改內容)
import {
AbsoluteFill,
interpolate,
spring,
useCurrentFrame,
useVideoConfig,
} from "remotion";
import React from "react";
export const LowerThirdSlide: React.FC = () => {
const frame = useCurrentFrame();
const { fps } = useVideoConfig();
const slideProgress = spring({ frame, fps, config: { damping: 22, stiffness: 140 } });
const textProgress = spring({ frame: frame - 10, fps, config: { damping: 25, stiffness: 110 } });
const x = interpolate(slideProgress, [0, 1], [-700, 0]);
const textOpacity = interpolate(textProgress, [0, 0.4], [0, 1], { extrapolateRight: "clamp" });
return (
<AbsoluteFill
style={{
background: "linear-gradient(135deg, #1e3a5f 0%, #0f172a 100%)",
justifyContent: "flex-end",
paddingBottom: 80,
}}
>
<div style={{ transform: `translateX(${x}px)`, display: "flex", alignItems: "stretch", height: 90 }}>
<div style={{ width: 6, background: "#3b82f6", flexShrink: 0 }} />
<div
style={{
background: "rgba(15,23,42,0.90)",
paddingLeft: 24,
paddingRight: 52,
display: "flex",
flexDirection: "column",
justifyContent: "center",
opacity: textOpacity,
}}
>
<div style={{ fontSize: 38, fontWeight: 700, color: "#ffffff", fontFamily: "sans-serif", lineHeight: 1.15 }}>
John Doe
</div>
<div style={{ fontSize: 20, color: "#93c5fd", fontFamily: "sans-serif", marginTop: 2 }}>
Senior Product Designer
</div>
</div>
</div>
</AbsoluteFill>
);
};登入後查看完整程式碼