Skip to content

🎥 Make videos programmatically with React

new CTA animation for my videos

JonnyBurgerfbd8bbb9222c
diff --git a/packages/example/src/CallToAction/index.tsx b/packages/example/src/CallToAction/index.tsx
index 268e4706d9..490ad7f3f9 100644
--- a/packages/example/src/CallToAction/index.tsx
+++ b/packages/example/src/CallToAction/index.tsx
@@ -71,7 +71,7 @@ export const CTAEndCard: React.FC = () => {
config: {
damping: 200,
},
- delay: 60,
+ delay: 110,
durationInFrames: 10,
});
@@ -101,13 +101,12 @@ export const CTAEndCard: React.FC = () => {
>
<RotateY
radians={
- -0.2 +
interpolate(jumpUp, [0, 1], [Math.PI * 2, 0]) -
frame * 0.004
}
>
<TranslateX px={(width - WIDTH) / 2}>
- <TranslateY px={(height - HEIGHT) / 2 + up + 200}>
+ <TranslateY px={(height - HEIGHT) / 2 + up + 350}>
<CallToAction
cornerRadius={HEIGHT / 2}
width={WIDTH}
diff --git a/packages/example/src/Root.tsx b/packages/example/src/Root.tsx
index a0ab3f3d8f..b4319b1736 100644
--- a/packages/example/src/Root.tsx
+++ b/packages/example/src/Root.tsx
@@ -1782,7 +1782,7 @@ export const Index: React.FC = () => {
width={1920}
height={1080}
fps={30}
- durationInFrames={90}
+ durationInFrames={180}
defaultProps={{
cornerRadius: 10,
}}