Skip to content

🎥 Make videos programmatically with React

remotion.dev/brand: Reorganize compositions

JonnyBurgerd745859a2cec
diff --git a/packages/brand/public/logo/external/opencode.svg b/packages/brand/public/logo/external/opencode.svg
deleted file mode 100644
index 1b82304663..0000000000
--- a/packages/brand/public/logo/external/opencode.svg
+++ /dev/null
@@ -1 +0,0 @@
-<svg width='234' height='42' viewBox='0 0 234 42' fill='none' xmlns='http://www.w3.org/2000/svg'><g clip-path='url(#clip0_1311_95049)'><path d='M18 30H6V18H18V30Z' fill='#CFCECD'/><path d='M18 12H6V30H18V12ZM24 36H0V6H24V36Z' fill='#656363'/><path d='M48 30H36V18H48V30Z' fill='#CFCECD'/><path d='M36 30H48V12H36V30ZM54 36H36V42H30V6H54V36Z' fill='#656363'/><path d='M84 24V30H66V24H84Z' fill='#CFCECD'/><path d='M84 24H66V30H84V36H60V6H84V24ZM66 18H78V12H66V18Z' fill='#656363'/><path d='M108 36H96V18H108V36Z' fill='#CFCECD'/><path d='M108 12H96V36H90V6H108V12ZM114 36H108V12H114V36Z' fill='#656363'/><path d='M144 30H126V18H144V30Z' fill='#CFCECD'/><path d='M144 12H126V30H144V36H120V6H144V12Z' fill='#211E1E'/><path d='M168 30H156V18H168V30Z' fill='#CFCECD'/><path d='M168 12H156V30H168V12ZM174 36H150V6H174V36Z' fill='#211E1E'/><path d='M198 30H186V18H198V30Z' fill='#CFCECD'/><path d='M198 12H186V30H198V12ZM204 36H180V6H198V0H204V36Z' fill='#211E1E'/><path d='M234 24V30H216V24H234Z' fill='#CFCECD'/><path d='M216 12V18H228V12H216ZM234 24H216V30H234V36H210V6H234V24Z' fill='#211E1E'/></g><defs><clipPath id='clip0_1311_95049'><rect width='234' height='42' fill='white'/></clipPath></defs></svg>
diff --git a/packages/brand/public/logo/remotion/withtitle-dark.png b/packages/brand/public/logo/remotion/withtitle-dark.png
deleted file mode 100644
index 1fc217fef1..0000000000
Binary files a/packages/brand/public/logo/remotion/withtitle-dark.png and /dev/null differ
diff --git a/packages/brand/public/logo/remotion/withtitle.png b/packages/brand/public/logo/remotion/withtitle.png
deleted file mode 100644
index 265c340825..0000000000
Binary files a/packages/brand/public/logo/remotion/withtitle.png and /dev/null differ
diff --git a/packages/brand/public/remotion-capture-editor-starter.mp4 b/packages/brand/public/remotion-capture-editor-starter.mp4
deleted file mode 100644
index b1d2b36d39..0000000000
Binary files a/packages/brand/public/remotion-capture-editor-starter.mp4 and /dev/null differ
diff --git a/packages/brand/src/3DCheck/index.tsx b/packages/brand/src/3DCheck/index.tsx
index 39b3f64323..bd77ebb8c9 100644
--- a/packages/brand/src/3DCheck/index.tsx
+++ b/packages/brand/src/3DCheck/index.tsx
@@ -20,7 +20,7 @@ const Comp = () => {
return (
<AbsoluteFill className="flex justify-center items-center">
- <Scale factor={14}>
+ <Scale factor={3.94}>
<RotateY radians={progress * Math.PI}>
<ExtrudeDiv
width={width}
diff --git a/packages/brand/src/CanvasCapturePreview.tsx b/packages/brand/src/CanvasCapturePreview.tsx
deleted file mode 100644
index 7288c8bb76..0000000000
--- a/packages/brand/src/CanvasCapturePreview.tsx
+++ /dev/null
@@ -1,162 +0,0 @@
-import {MacOSCursor} from '@remotion/mac-cursors';
-import {Video} from '@remotion/media';
-import {
- AbsoluteFill,
- Composition,
- Easing,
- interpolate,
- staticFile,
- useCurrentFrame,
-} from 'remotion';
-
-export const CanvasCapturePreview = () => {
- const frame = useCurrentFrame();
-
- return (
- <AbsoluteFill
- style={{
- width: 3026,
- height: 1386,
- }}
- >
- <Video
- src={staticFile('remotion-capture-editor-starter.mp4')}
- style={{
- position: 'absolute',
- }}
- />
- <MacOSCursor
- cursor={interpolate(
- frame,
- [6, 64, 68, 99, 164, 166],
- ['default', 'auto', 'pointer', 'e-resize', 'auto', 'default'],
- {
- easing: Easing.step1,
- extrapolateLeft: 'clamp',
- extrapolateRight: 'clamp',
- },
- )}
- style={{
- position: 'absolute',
- left: 0,
- top: 0,
- scale: interpolate(
- frame,
- [0, 79, 82, 110, 161],
- [6, 5.4, 6, 5.4, 6],
- {
- easing: Easing.step1,
- extrapolateLeft: 'clamp',
- extrapolateRight: 'clamp',
- },
- ),
- translate: interpolate(
- frame,
- [
- 6, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 83,
- 84, 85, 86, 87, 88, 89, 90, 91, 92, 97, 98, 99, 100, 114, 115,
- 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128,
- 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143,
- 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 162, 163,
- 164, 165, 166, 167,
- ],
- [
- '-2016.9375px -1677.375px',
- '-2016.9375px -1677.375px',
- '1813.96875px 948.3515625px',
- '1784.15625px 916.828125px',
- '1703.2734375px 833.9765625px',
- '1571.3203125px 718.875px',
- '1540.0546875px 674.390625px',
- '1537.40625px 647.2734375px',
- '1528.7109375px 533.8125px',
- '1505.953125px 496.6875px',
- '1500.46875px 484.7109375px',
- '1498.0078125px 481.359375px',
- '1498.0078125px 481.359375px',
- '1497.7734375px 478.7109375px',
- '1496.4609375px 473.90625px',
- '1496.2734375px 473.53125px',
- '1496.2734375px 473.53125px',
- '1487.0625px 472.4296875px',
- '1450.828125px 469.546875px',
- '1429.9453125px 468.4453125px',
- '1414.171875px 468.4453125px',
- '1367.4609375px 469.2421875px',
- '1335.4921875px 471.3984375px',
- '1313.53125px 472.171875px',
- '1299.140625px 472.171875px',
- '1297.828125px 472.453125px',
- '1297.828125px 472.453125px',
- '1290.65625px 472.453125px',
- '1270.8515625px 473.296875px',
- '1266px 473.296875px',
- '1266px 473.296875px',
- '1233.421875px 470.6953125px',
- '1222.7578125px 470.15625px',
- '1147.1953125px 470.15625px',
- '1139.8125px 470.15625px',
- '1118.4375px 470.15625px',
- '1096.40625px 470.15625px',
- '1049.6484375px 470.15625px',
- '1002.8203125px 470.15625px',
- '971.859375px 470.0390625px',
- '954.140625px 469.3359375px',
- '937.21875px 469.0546875px',
- '926.34375px 468.609375px',
- '916.6171875px 468.609375px',
- '910.875px 468.0234375px',
- '910.875px 468.0234375px',
- '916.4296875px 468.796875px',
- '934.125px 469.640625px',
- '978.328125px 471.1640625px',
- '1022.765625px 473.6015625px',
- '1069.78125px 474.5390625px',
- '1087.546875px 474.609375px',
- '1142.390625px 475.59375px',
- '1149.4453125px 475.0546875px',
- '1203px 473.5546875px',
- '1244.15625px 473.625px',
- '1274.4609375px 474.9609375px',
- '1297.2421875px 474.9609375px',
- '1332px 474.9609375px',
- '1379.3203125px 473.90625px',
- '1419.75px 473.90625px',
- '1432.2421875px 473.90625px',
- '1452.796875px 473.90625px',
- '1488.3046875px 474.6796875px',
- '1499.2265625px 474.6796875px',
- '1515.0703125px 475.9453125px',
- '1544.1796875px 477.234375px',
- '1553.53125px 477.5390625px',
- '1555.2421875px 477.5390625px',
- '1555.2421875px 477.5390625px',
- '1550.8125px 477.5390625px',
- '1473.4453125px 451.6171875px',
- '1317.140625px 374.5078125px',
- '-4.3828125px -360.3046875px',
- '-2614.3125px -2067.7265625px',
- ],
- {
- extrapolateLeft: 'clamp',
- extrapolateRight: 'clamp',
- },
- ),
- }}
- />
- </AbsoluteFill>
- );
-};
-
-export const CanvasCaptureComposition = () => {
- return (
- <Composition
- id="canvas-capture-promo"
- component={CanvasCapturePreview}
- width={1920}
- height={1080}
- fps={60}
- durationInFrames={500}
- />
- );
-};
diff --git a/packages/brand/src/Checker.tsx b/packages/brand/src/Checker.tsx
deleted file mode 100644
index 46f4a8a6b7..0000000000
--- a/packages/brand/src/Checker.tsx
+++ /dev/null
@@ -1,37 +0,0 @@
-import React from 'react';
-import {Solid, Sequence} from 'remotion';
-import {paper} from '@remotion/effects/paper';
-import {ThreeDCheck} from './3DCheck/index';
-
-export const Checker: React.FC = () => {
- return (
- <>
- <Solid
- width={900}
- height={900}
- color={'#ffffff'}
- style={{
- position: 'absolute',
- }}
- effects={[
- paper({
- colorFront: '#ffffff',
- contrast: 0.04,
- }),
- ]}
- />
- <Sequence
- name="3DCheck"
- width={300}
- height={300}
- durationInFrames={1000}
- style={{
- position: 'absolute',
- translate: '0px 231.6px',
- }}
- >
- <ThreeDCheck />
- </Sequence>
- </>
- );
-};
diff --git a/packages/brand/src/LogoCollab/LogoCollab.tsx b/packages/brand/src/LogoCollab/LogoCollab.tsx
deleted file mode 100644
index 5deea7fb68..0000000000
--- a/packages/brand/src/LogoCollab/LogoCollab.tsx
+++ /dev/null
@@ -1,123 +0,0 @@
-import {
- AbsoluteFill,
- Img,
- spring,
- staticFile,
- useCurrentFrame,
- useVideoConfig,
-} from 'remotion';
-import {z} from 'zod';
-
-export const logoCollabSchema = z.object({
- partnerLogoUrl: z.string(),
- theme: z.enum(['light', 'dark']),
- partnerLogoScale: z.number().min(0.1).max(3).default(1),
- remotionLogoScale: z.number().min(0.1).max(3).default(1),
- partnerLogoX: z.number().min(-500).max(500).default(0),
- remotionLogoX: z.number().min(-500).max(500).default(0),
-});
-
-type LogoCollabProps = z.infer<typeof logoCollabSchema>;
-
-const COLORS = {
- brand: '#0B84F3',
- light: {bg: '#FFFFFF', text: '#000000'},
- dark: {bg: '#2E2E2E', text: '#FFFFFF'},
-};
-
-const REMOTION_LOGO = {
- light: staticFile('logo/remotion/withtitle.png'),
- dark: staticFile('logo/remotion/withtitle-dark.png'),
-};
-
-export const LogoCollab: React.FC<LogoCollabProps> = ({
- partnerLogoUrl,
- theme,
- partnerLogoScale,
- remotionLogoScale,
- partnerLogoX,
- remotionLogoX,
-}) => {
- const frame = useCurrentFrame();
- const {fps} = useVideoConfig();
-
- const themeColors = COLORS[theme];
-
- const partnerDelay = 0;
- const plusDelay = 15;
- const remotionDelay = 25;
-
- const partnerProgress = spring({
- frame: frame - partnerDelay,
- fps,
- config: {damping: 200},
- });
-
- const plusProgress = spring({
- frame: frame - plusDelay,
- fps,
- config: {damping: 200},
- });
-
- const remotionProgress = spring({
- frame: frame - remotionDelay,
- fps,
- config: {damping: 200},
- });
-
- const logoHeight = 80;
-
- return (
- <AbsoluteFill
- style={{
- backgroundColor: themeColors.bg,
- fontFamily: 'GTPlanar, sans-serif',
- fontFeatureSettings: "'ss03' 1",
- }}
- >
- <span
- style={{
- position: 'absolute',
- top: '50%',
- left: '50%',
- transform: 'translate(-50%, -50%)',
- fontSize: 48,
- fontWeight: 500,
- color: COLORS.brand,
- opacity: plusProgress,
- lineHeight: 1,
- }}
- >
- +
- </span>
-
- <Img
- src={partnerLogoUrl}
- style={{
- position: 'absolute',
- top: '50%',
- left: '50%',
- transform: `translate(calc(-100% - 50px + ${partnerLogoX}px), -50%) scale(${(0.9 + partnerProgress * 0.1) * partnerLogoScale})`,
- transformOrigin: 'right center',
- opacity: partnerProgress,
- height: logoHeight,
- objectFit: 'contain',
- }}
- />
-
- <Img
- src={REMOTION_LOGO[theme]}
- style={{
- position: 'absolute',
- top: '50%',
- left: '50%',
- transform: `translate(calc(50px + ${remotionLogoX}px), -50%) scale(${(0.9 + remotionProgress * 0.1) * remotionLogoScale})`,
- transformOrigin: 'left center',
- opacity: remotionProgress,
- height: logoHeight,
- objectFit: 'contain',
- }}
- />
- </AbsoluteFill>
- );
-};
diff --git a/packages/brand/src/NewSticker.tsx b/packages/brand/src/NewSticker.tsx
deleted file mode 100644
index 8858a69c00..0000000000
--- a/packages/brand/src/NewSticker.tsx
+++ /dev/null
@@ -1,49 +0,0 @@
-import {Star} from '@remotion/shapes';
-import React from 'react';
-import {AbsoluteFill, Interactive} from 'remotion';
-
-const NewSticker: React.FC = () => {
- return (
- <AbsoluteFill
- style={{
- display: 'flex',
- justifyContent: 'center',
- alignItems: 'center',
- backgroundColor: '#fff9bd',
- position: 'absolute',
- width: '100%',
- height: '100%',
- }}
- >
- <Interactive.Div
- style={{
- position: 'relative',
- }}
- >
- <Star
- points={20}
- innerRadius={174}
- outerRadius={207}
- fill={'#f2be0a'}
- cornerRadius={33}
- showInTimeline={false}
- />
- <AbsoluteFill
- style={{
- justifyContent: 'center',
- alignItems: 'center',
- fontSize: 110,
- fontWeight: 'bolder',
- fontFamily: 'GT Planar',
- letterSpacing: '-0.02em',
- color: '#fcff79',
- }}
- >
- New!
- </AbsoluteFill>
- </Interactive.Div>
- </AbsoluteFill>
- );
-};
-
-export default NewSticker;
diff --git a/packages/brand/src/Root.tsx b/packages/brand/src/Root.tsx
index a8db11d394..1dec8936ab 100644
--- a/packages/brand/src/Root.tsx
+++ b/packages/brand/src/Root.tsx
@@ -1,10 +1,8 @@
-import {Composition, Folder, staticFile} from 'remotion';
+import {Composition, Folder} from 'remotion';
import {ThreeDCheck} from './3DCheck';
import {AnimatedBanner} from './animated-logo/AnimatedBanner';
import {AnimatedLogo} from './animated-logo/AnimatedLogo';
import {AnimatedLogoStringer} from './animated-logo/AnimatedLogoStinger';
-import {AnimatedMaster} from './animated-logo/AnimatedMaster';
-import {ExplodingLogo} from './animated-logo/ExplodingLogo';
import {AppIcons} from './AppIcons';
import {
ApplicationRenderButton,
@@ -16,9 +14,7 @@ import {Banner} from './Brand/Banner';
import {Comp} from './Brand/Composition';
import {TriangleDemo} from './Brand/TriangleToSquare';
import {CanvasCaptureAnnouncement} from './CanvasCaptureAnnouncement/CanvasCaptureAnnouncement';
-import {CanvasCaptureComposition} from './CanvasCapturePreview';
import {CanvasCaptureShort} from './CanvasCaptureShort/CanvasCaptureShort';
-import {Checker} from './Checker';
import {CloseUp1} from './CloseUp1';
import {CloseUp2} from './CloseUp2';
import {CloseUp3} from './CloseUp3';
@@ -101,14 +97,8 @@ import {OuterStudio, studioDurationInFrames} from './HomepageAssets/Studio';
import {TemplateRecorderEndcardComposition} from './HomepageAssets/TemplateRecorderEndcard';
import './index.css';
import {Logo} from './Logo';
-import {LogoCollab, logoCollabSchema} from './LogoCollab/LogoCollab';
import {LogoHorn, calculateLogoHornMetadata} from './LogoHorn';
-import NewSticker from './NewSticker';
import {PreviewToolbarIcons} from './PreviewToolbarIcons';
-import {
- RulesEnumeration,
- rulesEnumerationSchema,
-} from './RulesEnumeration/RulesEnumeration';
import {ProductHuntLogo} from './ScalingLogo';
import {SfxShowcase, sfxShowcaseDurationInFrames} from './Sfx/SfxShowcase';
import {ShipCard, shipCardDurationInFrames} from './ShipCard';
@@ -158,124 +148,58 @@ import {WebMCPPromo2} from './WebMCPPromo2';
export const RemotionRoot: React.FC = () => {
return (
<>
- <Composition
- id="app-icons"
- component={AppIcons}
- durationInFrames={1}
- fps={30}
- width={2048}
- height={720}
- />
- <Composition
- id="preview-toolbar-icons"
- component={PreviewToolbarIcons}
- durationInFrames={1}
- fps={30}
- width={3200}
- height={520}
- />
- <Folder name="announcements">
- <Folder name="canvas-capture-announcement">
+ <Folder name="Logo">
+ <Folder name="AnimatedLogo">
<Composition
- id="CanvasCaptureAnnouncement"
- component={CanvasCaptureAnnouncement}
- durationInFrames={5248}
- fps={30}
- width={1920}
+ component={AnimatedLogo}
+ width={1080}
height={1080}
+ fps={30}
+ durationInFrames={450}
+ id="AnimatedLogo"
+ defaultProps={{
+ theme: 'light',
+ }}
/>
<Composition
- id="CanvasCaptureShort"
- component={CanvasCaptureShort}
- durationInFrames={1250}
+ component={AnimatedBanner}
+ width={1080}
+ height={500}
+ fps={30}
+ durationInFrames={60}
+ id="AnimatedLogoBannerLight"
+ defaultProps={{
+ theme: 'light' as const,
+ }}
+ />
+ <Composition
+ component={EmailSignature}
+ width={500}
+ height={160}
fps={30}
+ durationInFrames={80}
+ id="EmailSignature"
+ />
+ <Composition
+ component={AnimatedBanner}
width={1080}
- height={1920}
+ height={500}
+ fps={30}
+ durationInFrames={60}
+ id="AnimatedLogoBannerDark"
+ defaultProps={{
+ theme: 'dark' as const,
+ }}
+ />
+ <Composition
+ component={AnimatedLogoStringer}
+ width={1920}
+ height={1080}
+ fps={30}
+ durationInFrames={80}
+ id="AnimatedLogoStinger"
/>
</Folder>
- <Composition
- id="Skills2CodeChange"
- component={Skills2CodeChange}
- durationInFrames={180}
- fps={30}
- width={1920}
- height={1920}
- />
- <Composition
- id="Skills2CrazyContext"
- component={Skills2CrazyContext}
- durationInFrames={120}
- fps={30}
- width={1920}
- height={1400}
- />
- <Composition
- id="Skills2Announcement"
- component={Skills2AnnouncementComposition}
- durationInFrames={180}
- fps={30}
- width={1071}
- height={102}
- schema={skills2AnnouncementSchema}
- defaultProps={{
- title: '/react-best-practices',
- }}
- />
- <Composition
- id="Skills2Gesture"
- component={Skills2Gesture}
- durationInFrames={456}
- fps={30}
- width={1344}
- height={1700}
- />
- <Composition
- id="Skills2Pick"
- component={Skills2Pick}
- durationInFrames={78}
- fps={30}
- width={1920}
- height={1080}
- />
- <Composition
- id="Skills2Hand"
- component={Skills2TableBang}
- durationInFrames={78}
- fps={10}
- width={1344}
- height={1126}
- />
- <Composition
- id="Skills2TableBangComp"
- component={Skills2TableBangComp}
- durationInFrames={120}
- fps={30}
- width={1344}
- height={1700}
- />
- <Composition
- id="Skills2Router"
- component={Skills2Router}
- durationInFrames={456}
- fps={30}
- width={1344}
- height={1700}
- />
- </Folder>
- <Folder name="docs">
- <Composition
- id="1000-documentation-pages"
- component={DocsPagesShowcase}
- width={INSTAGRAM_POST_WIDTH}
- height={INSTAGRAM_POST_HEIGHT}
- fps={30}
- durationInFrames={90}
- schema={docsPagesShowcaseSchema}
- defaultProps={docsPagesShowcaseDefaultProps}
- calculateMetadata={calculateDocsPagesShowcaseMetadata}
- />
- </Folder>
- <Folder name="static-logo">
<Composition
component={Logo}
width={820}
@@ -299,20 +223,17 @@ export const RemotionRoot: React.FC = () => {
size: 1100,
}}
/>
+ <SvgLogoCompositions />
<Composition
- component={ExplodingLogo}
- width={1920}
- height={1080}
+ component={ProductHuntLogo}
+ width={240}
+ height={240}
fps={30}
- durationInFrames={200}
- id="ExplodingLogo"
- defaultProps={{
- theme: 'light',
- }}
+ durationInFrames={90}
+ id="scaling-logo"
/>
</Folder>
- <SvgLogoCompositions />
- <Folder name="homepage-assets">
+ <Folder name="HomepageAssets">
<Composition
id="ExpertsGraphic"
component={ExpertsGraphic}
@@ -357,7 +278,7 @@ export const RemotionRoot: React.FC = () => {
<RemotionTriangleComposition />
<TemplateRecorderEndcardComposition />
<Composition
- id="coding-prompt"
+ id="CodingPrompt"
component={CodingPrompt}
durationInFrames={120}
fps={30}
@@ -378,7 +299,7 @@ export const RemotionRoot: React.FC = () => {
height={1080}
/>
<Composition
- id="homepage-assets-master"
+ id="MakeVideosAgentically"
component={HomepageAssetMaster}
durationInFrames={homepageAssetMasterDurationInFrames}
fps={30}
@@ -450,17 +371,10 @@ export const RemotionRoot: React.FC = () => {
height={1080}
/>
</Folder>
- <Composition
- component={ProductHuntLogo}
- width={240}
- height={240}
- fps={30}
- durationInFrames={90}
- id="scaling-logo"
- />
- <Folder name="showcase">
- <Composition
- id="sfx-showcase"
+
+ <Folder name="Showcases">
+ <Composition
+ id="SoundEffectShowcases"
component={SfxShowcase}
width={1080}
height={1080}
@@ -468,7 +382,7 @@ export const RemotionRoot: React.FC = () => {
durationInFrames={sfxShowcaseDurationInFrames}
/>
<Composition
- id="html-in-canvas-all-effects"
+ id="HtmlInCanvasTransitions"
component={HtmlInCanvasAllEffects}
fps={30}
height={1080}
@@ -478,184 +392,9 @@ export const RemotionRoot: React.FC = () => {
defaultProps={htmlInCanvasAllEffectsDefaultProps}
calculateMetadata={calculateHtmlInCanvasAllEffectsMetadata}
/>
- <CanvasCaptureComposition />
- <Composition
- id="canvas-capture-new-sticker"
- component={NewSticker}
- width={1400}
- height={1080}
- fps={30}
- durationInFrames={60}
- />
</Folder>
- <Folder name="effects">
- <Composition
- id="rough-notation-showcase"
- component={RoughNotationShowcase}
- durationInFrames={roughNotationShowcaseDurationInFrames}
- fps={30}
- width={1080}
- height={1080}
- />
- <Composition
- id="corner-pin-effect-showcase"
- component={CornerPinEffectShowcase}
- durationInFrames={cornerPinEffectShowcaseDurationInFrames}
- fps={30}
- width={1080}
- height={1350}
- />
- <Composition
- id="pattern-effect-showcase"
- component={PatternEffectShowcase}
- width={1080}
- height={1350}
- fps={30}
- durationInFrames={patternEffectShowcaseDurationInFrames}
- />
- <Folder name="experiments">
- <Composition
- id="billboard-foreground"
- component={BillboardForeground}
- width={1080}
- height={675}
- fps={30}
- durationInFrames={120}
- />
- </Folder>
- <Composition
- id="starburst-effect-showcase"
- component={StarburstEffectShowcase}
- durationInFrames={starburstEffectShowcaseDurationInFrames}
- fps={30}
- width={1080}
- height={1350}
- />
- <Composition
- id="zigzag-linear-blur-effect-showcase"
- component={ZigzagLinearBlurShowcase}
- durationInFrames={zigzagLinearBlurShowcaseDurationInFrames}
- fps={30}
- width={1080}
- height={1350}
- />
- <Composition
- id="effects-announcement"
- component={EffectsAnnouncement}
- width={1280}
- height={720}
- fps={30}
- durationInFrames={200}
- />
- <Composition
- id="thermometer"
- component={EffectsAnnouncement}
- width={1280}
- height={720}
- fps={30}
- durationInFrames={200}
- />
- <Composition
- id="news-headline"
- component={NewsHeadline}
- width={1280}
- height={720}
- fps={30}
- durationInFrames={200}
- />
- <Composition
- id="thermo"
- component={Thermometer}
- width={1080}
- height={1080}
- fps={30}
- durationInFrames={200}
- />
- <Composition
- id="goal"
- component={Goal}
- width={1280}
- height={720}
- fps={30}
- durationInFrames={120}
- />
- <Composition
- id="metallic-swirl"
- component={MetallicSwirl}
- width={1280}
- height={720}
- fps={30}
- durationInFrames={200}
- />
- <Composition
- id="fx-icon"
- component={FxIconComposition}
- width={1080}
- height={1080}
- fps={30}
- durationInFrames={90}
- />
- </Folder>
- <Folder name="animated-logo">
- <Composition
- component={AnimatedLogo}
- width={1080}
- height={1080}
- fps={30}
- durationInFrames={450}
- id="animated-logo"
- defaultProps={{
- theme: 'light',
- }}
- />
- <Composition
- component={AnimatedBanner}
- width={1080}
- height={500}
- fps={30}
- durationInFrames={60}
- id="animated-logo-banner-light"
- defaultProps={{
- theme: 'light' as const,
- }}
- />
- <Composition
- component={EmailSignature}
- width={500}
- height={160}
- fps={30}
- durationInFrames={80}
- id="email-signature"
- />
- <Composition
- component={AnimatedBanner}
- width={1080}
- height={500}
- fps={30}
- durationInFrames={60}
- id="animated-logo-banner-dark"
- defaultProps={{
- theme: 'dark' as const,
- }}
- />
- <Composition
- component={AnimatedLogoStringer}
- width={1920}
- height={1080}
- fps={30}
- durationInFrames={80}
- id="animated-logo-stinger"
- />
- <Composition
- component={AnimatedMaster}
- width={1080}
- height={1080}
- fps={30}
- durationInFrames={450}
- id="animated-master"
- />
- </Folder>
- <Folder name="video-elements">
+
+ <Folder name="VideoElements">
<Composition
id="StepGuide"
component={StepGuide}
@@ -674,7 +413,7 @@ export const RemotionRoot: React.FC = () => {
height={1080}
/>
<Composition
- id="lower-third-reference"
+ id="YouTubeReference"
component={LowerReference}
durationInFrames={5 * 30}
fps={30}
@@ -682,7 +421,7 @@ export const RemotionRoot: React.FC = () => {
height={1080}
/>
<Composition
- id="github-repo"
+ id="GitHubRepoReference"
component={GithubRepo}
schema={githubRepoSchema}
defaultProps={{
@@ -694,7 +433,7 @@ export const RemotionRoot: React.FC = () => {
height={1080}
/>
<Composition
- id="upper-third"
+ id="UpperThird"
component={UpperThird}
schema={upperThirdSchema}
defaultProps={{
@@ -707,7 +446,7 @@ export const RemotionRoot: React.FC = () => {
height={1080}
/>
<Composition
- id="numbered-chapter"
+ id="NumberedChapter"
component={NumberedChapter}
schema={numberedChapterSchema}
defaultProps={{
@@ -720,7 +459,7 @@ export const RemotionRoot: React.FC = () => {
height={1080}
/>
<Composition
- id="money-burn"
+ id="MoneyBurn"
component={MoneyBurn}
durationInFrames={36}
fps={30}
@@ -776,8 +515,16 @@ export const RemotionRoot: React.FC = () => {
width={1920}
height={1080}
/>
+ <Composition
+ id="3DCheck"
+ component={ThreeDCheck}
+ width={300}
+ height={300}
+ fps={30}
+ durationInFrames={1000}
+ />
</Folder>
- <Folder name="recorder">
+ <Folder name="Recorder">
<Composition
id="LightMode"
component={Comp}
@@ -823,7 +570,7 @@ export const RemotionRoot: React.FC = () => {
}}
/>
<Composition
- id="TriangletoSwquare"
+ id="TriangleToSquare"
component={TriangleDemo}
durationInFrames={240}
fps={30}
@@ -832,88 +579,6 @@ export const RemotionRoot: React.FC = () => {
defaultProps={{theme: 'light'}}
/>
</Folder>
- <Folder name="brand-assets">
- <Composition
- id="3DCheck"
- component={ThreeDCheck}
- width={300}
- height={300}
- fps={30}
- durationInFrames={1000}
- />
- <Composition
- id="logo-horn"
- component={LogoHorn}
- width={1080}
- height={1080}
- fps={30}
- durationInFrames={90}
- calculateMetadata={calculateLogoHornMetadata}
- />
- <Composition
- id="LogoCollab"
- component={LogoCollab}
- schema={logoCollabSchema}
- defaultProps={{
- partnerLogoUrl: staticFile('logo/external/opencode.svg'),
- theme: 'light' as const,
- partnerLogoScale: 1,
- remotionLogoScale: 2.6,
- partnerLogoX: -36,
- remotionLogoX: -8,
- }}
- durationInFrames={90}
- fps={30}
- width={1920}
- height={1080}
- />
- <Composition
- id="RulesEnumeration"
- component={RulesEnumeration}
- schema={rulesEnumerationSchema}
- defaultProps={{
- heading: 'AI Best Practices',
- rules: [
- {
- title: 'Tell the agent to use Remotion Best Practices skill',
- description:
- 'Be explicit, so that the agent picks it up correctly.',
- },
- {
- title: 'Do one thing at a time',
- description:
- 'Do not ask for 5 or 10 changes in one message. Otherwise, the AI gets confused.',
- },
- {
- title: 'Use Remotion documentation',
- description:
- 'You can copy the page or add .md to the end of the URL to get a Markdown version and feed it to your AI agent.',
- },
- ],
- theme: 'light' as const,
- }}
- durationInFrames={120}
- fps={30}
- width={1920}
- height={1080}
- />
- </Folder>
- <Composition
- id="ShipCard"
- component={ShipCard}
- durationInFrames={shipCardDurationInFrames}
- fps={30}
- width={EFFECT_SHOWCASE_WIDTH}
- height={EFFECT_SHOWCASE_HEIGHT}
- />
- <Composition
- id="Checker"
- component={Checker}
- durationInFrames={1000}
- fps={30}
- width={900}
- height={900}
- />
<Folder name="CloseUps">
<CloseUp1 />
@@ -924,49 +589,296 @@ export const RemotionRoot: React.FC = () => {
<CloseUp6 />
<CloseUp7 />
<CloseUp8 />
- </Folder>
- <Composition
- id="CloseUpsSeries"
- component={CloseUpsSeries}
- durationInFrames={637}
- fps={60}
- width={1920}
- height={1080}
- />
- <Folder name="WebMCPPromo-Scenes">
- <Composition
- id="WebMCPPromo-MacBook-Loop"
- component={MacBookLoopScene}
- durationInFrames={800}
+ <Composition
+ id="CloseUpsSeries"
+ component={CloseUpsSeries}
+ durationInFrames={637}
fps={60}
width={1920}
height={1080}
/>
+ </Folder>
+
+ <Folder name="StudioAssets">
<Composition
- id="WebMCPPromo-MacBook"
- component={MacBookScene}
- durationInFrames={800}
- fps={60}
- width={1920}
- height={1080}
+ id="app-icons"
+ component={AppIcons}
+ durationInFrames={1}
+ fps={30}
+ width={2048}
+ height={720}
/>
<Composition
- id="WebMCPPromo-MacBook-Desktop"
- component={MacBookDesktopScene}
- durationInFrames={1200}
- fps={60}
- width={1920}
- height={1080}
+ id="preview-toolbar-icons"
+ component={PreviewToolbarIcons}
+ durationInFrames={1}
+ fps={30}
+ width={3200}
+ height={520}
+ />
+ </Folder>
+ <Folder name="SocialMediaAnnouncements">
+ <Folder name="effect-showcases">
+ <Composition
+ id="corner-pin-effect-showcase"
+ component={CornerPinEffectShowcase}
+ durationInFrames={cornerPinEffectShowcaseDurationInFrames}
+ fps={30}
+ width={1080}
+ height={1350}
+ />
+ <Composition
+ id="pattern-effect-showcase"
+ component={PatternEffectShowcase}
+ width={1080}
+ height={1350}
+ fps={30}
+ durationInFrames={patternEffectShowcaseDurationInFrames}
+ />
+ <Composition
+ id="starburst-effect-showcase"
+ component={StarburstEffectShowcase}
+ durationInFrames={starburstEffectShowcaseDurationInFrames}
+ fps={30}
+ width={1080}
+ height={1350}
+ />
+ <Composition
+ id="zigzag-linear-blur-effect-showcase"
+ component={ZigzagLinearBlurShowcase}
+ durationInFrames={zigzagLinearBlurShowcaseDurationInFrames}
+ fps={30}
+ width={1080}
+ height={1350}
+ />
+ </Folder>
+ <Folder name="skills-2-0">
+ <Composition
+ id="Skills2Router"
+ component={Skills2Router}
+ durationInFrames={456}
+ fps={30}
+ width={1344}
+ height={1700}
+ />
+ <Composition
+ id="Skills2CodeChange"
+ component={Skills2CodeChange}
+ durationInFrames={180}
+ fps={30}
+ width={1920}
+ height={1920}
+ />
+ <Composition
+ id="Skills2CrazyContext"
+ component={Skills2CrazyContext}
+ durationInFrames={120}
+ fps={30}
+ width={1920}
+ height={1400}
+ />
+ <Composition
+ id="Skills2Announcement"
+ component={Skills2AnnouncementComposition}
+ durationInFrames={180}
+ fps={30}
+ width={1071}
+ height={102}
+ schema={skills2AnnouncementSchema}
+ defaultProps={{
+ title: '/react-best-practices',
+ }}
+ />
+ <Composition
+ id="Skills2Gesture"
+ component={Skills2Gesture}
+ durationInFrames={456}
+ fps={30}
+ width={1344}
+ height={1700}
+ />
+ <Composition
+ id="Skills2Pick"
+ component={Skills2Pick}
+ durationInFrames={78}
+ fps={30}
+ width={1920}
+ height={1080}
+ />
+ <Composition
+ id="Skills2TableBangComp"
+ component={Skills2TableBangComp}
+ durationInFrames={120}
+ fps={30}
+ width={1344}
+ height={1700}
+ />
+ <Composition
+ id="Skills2Hand"
+ component={Skills2TableBang}
+ durationInFrames={78}
+ fps={10}
+ width={1344}
+ height={1126}
+ />
+ </Folder>
+
+ <Folder name="webmcp">
+ <Composition
+ id="WebMCPPromo-MacBook-Loop"
+ component={MacBookLoopScene}
+ durationInFrames={800}
+ fps={60}
+ width={1920}
+ height={1080}
+ />
+ <Composition
+ id="WebMCPPromo-MacBook"
+ component={MacBookScene}
+ durationInFrames={800}
+ fps={60}
+ width={1920}
+ height={1080}
+ />
+ <Composition
+ id="WebMCPPromo-MacBook-Desktop"
+ component={MacBookDesktopScene}
+ durationInFrames={1200}
+ fps={60}
+ width={1920}
+ height={1080}
+ />
+ <Composition
+ id="WebMCPPromo-MacBook-App"
+ component={MacBookAppScene}
+ durationInFrames={1200}
+ fps={60}
+ width={1320}
+ height={827}
+ />
+ <WebMCPPromo2 />
+ </Folder>
+ <Folder name="canvas-capture-announcement">
+ <Composition
+ id="CanvasCaptureAnnouncement"
+ component={CanvasCaptureAnnouncement}
+ durationInFrames={5248}
+ fps={30}
+ width={1920}
+ height={1080}
+ />
+ <Composition
+ id="CanvasCaptureShort"
+ component={CanvasCaptureShort}
+ durationInFrames={1250}
+ fps={30}
+ width={1080}
+ height={1920}
+ />
+ </Folder>
+
+ <Folder name="effects">
+ <Composition
+ id="effects-announcement"
+ component={EffectsAnnouncement}
+ width={1280}
+ height={720}
+ fps={30}
+ durationInFrames={200}
+ />
+ <Composition
+ id="thermometer"
+ component={EffectsAnnouncement}
+ width={1280}
+ height={720}
+ fps={30}
+ durationInFrames={200}
+ />
+ <Composition
+ id="news-headline"
+ component={NewsHeadline}
+ width={1280}
+ height={720}
+ fps={30}
+ durationInFrames={200}
+ />
+ <Composition
+ id="thermo"
+ component={Thermometer}
+ width={1080}
+ height={1080}
+ fps={30}
+ durationInFrames={200}
+ />
+ <Composition
+ id="goal"
+ component={Goal}
+ width={1280}
+ height={720}
+ fps={30}
+ durationInFrames={120}
+ />
+ <Composition
+ id="metallic-swirl"
+ component={MetallicSwirl}
+ width={1280}
+ height={720}
+ fps={30}
+ durationInFrames={200}
+ />
+ <Composition
+ id="fx-icon"
+ component={FxIconComposition}
+ width={1080}
+ height={1080}
+ fps={30}
+ durationInFrames={90}
+ />
+ <Composition
+ id="ShipCard"
+ component={ShipCard}
+ durationInFrames={shipCardDurationInFrames}
+ fps={30}
+ width={EFFECT_SHOWCASE_WIDTH}
+ height={EFFECT_SHOWCASE_HEIGHT}
+ />
+ <Composition
+ id="billboard-foreground"
+ component={BillboardForeground}
+ width={1080}
+ height={675}
+ fps={30}
+ durationInFrames={120}
+ />
+ <Composition
+ id="logo-horn"
+ component={LogoHorn}
+ width={1080}
+ height={1080}
+ fps={30}
+ durationInFrames={90}
+ calculateMetadata={calculateLogoHornMetadata}
+ />
+ </Folder>
+ <Composition
+ id="1000-documentation-pages"
+ component={DocsPagesShowcase}
+ width={INSTAGRAM_POST_WIDTH}
+ height={INSTAGRAM_POST_HEIGHT}
+ fps={30}
+ durationInFrames={90}
+ schema={docsPagesShowcaseSchema}
+ defaultProps={docsPagesShowcaseDefaultProps}
+ calculateMetadata={calculateDocsPagesShowcaseMetadata}
/>
<Composition
- id="WebMCPPromo-MacBook-App"
- component={MacBookAppScene}
- durationInFrames={1200}
- fps={60}
- width={1320}
- height={827}
+ id="rough-notation"
+ component={RoughNotationShowcase}
+ durationInFrames={roughNotationShowcaseDurationInFrames}
+ fps={30}
+ width={1080}
+ height={1080}
/>
- <WebMCPPromo2 />
</Folder>
</>
);
diff --git a/packages/brand/src/RulesEnumeration/RulesEnumeration.tsx b/packages/brand/src/RulesEnumeration/RulesEnumeration.tsx
deleted file mode 100644
index a044b955cb..0000000000
--- a/packages/brand/src/RulesEnumeration/RulesEnumeration.tsx
+++ /dev/null
@@ -1,270 +0,0 @@
-import {loadFont} from '@remotion/fonts';
-import {
- AbsoluteFill,
- spring,
- staticFile,
- useCurrentFrame,
- useVideoConfig,
-} from 'remotion';
-import {z} from 'zod';
-
-const fontFamily = 'GTPlanar';
-
-loadFont({
- family: fontFamily,
- url: staticFile('GT Planar/GT-Planar-Medium.woff2'),
- weight: '500',
-});
-
-loadFont({
- family: fontFamily,
- url: staticFile('GT Planar/GT-Planar-Bold.woff2'),
- weight: '700',
-});
-
-const ruleSchema = z.object({
- title: z.string(),
- description: z.string(),
-});
-
-export const rulesEnumerationSchema = z.object({
- heading: z.string(),
- rules: z.array(ruleSchema).min(1).max(5),
- theme: z.enum(['light', 'dark']),
-});
-
-type RulesEnumerationProps = z.infer<typeof rulesEnumerationSchema>;
-
-const COLORS = {
- brand: '#0B84F3',
- white: '#FFFFFF',
- black: '#000000',
- darkBg: '#2E2E2E',
-} as const;
-
-const FONT_STYLE = {
- fontFamily: `${fontFamily}, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif`,
- fontFeatureSettings: "'ss03' 1",
-} as const;
-
-const getThemeColors = (theme: 'light' | 'dark') => ({
- bg: theme === 'dark' ? COLORS.darkBg : COLORS.white,
- text: theme === 'dark' ? COLORS.white : COLORS.black,
- cardBg: theme === 'dark' ? '#3A3A3A' : COLORS.white,
-});
-
-const NumberBadge = ({
- number,
- progress,
-}: {
- readonly number: number;
- readonly progress: number;
-}) => {
- const scale = progress;
- const opacity = progress;
-
- return (
- <div
- style={{
- width: 48,
- height: 48,
- borderRadius: '50%',
- backgroundColor: COLORS.brand,
- display: 'flex',
- justifyContent: 'center',
- alignItems: 'center',
- transform: `scale(${scale})`,
- opacity,
- flexShrink: 0,
- }}
- >
- <span
- style={{
- ...FONT_STYLE,
- fontSize: 24,
- fontWeight: 700,
- color: COLORS.white,
- lineHeight: 1,
- }}
- >
- {number}
- </span>
- </div>
- );
-};
-
-const RuleCard = ({
- number,
- title,
- description,
- progress,
- theme,
-}: {
- readonly number: number;
- readonly title: string;
- readonly description: string;
- readonly progress: number;
- readonly theme: 'light' | 'dark';
-}) => {
- const colors = getThemeColors(theme);
- const slideDistance = 40;
- const cardOpacity = progress;
- const cardTranslateY = (1 - progress) * slideDistance;
-
- return (
- <div
- style={{
- display: 'flex',
- flexDirection: 'row',
- alignItems: 'center',
- gap: 20,
- opacity: cardOpacity,
- transform: `translateY(${cardTranslateY}px)`,
- }}
- >
- <NumberBadge number={number} progress={progress} />
- <div
- style={{
- backgroundColor: colors.cardBg,
- flex: 1,
- display: 'flex',
- flexDirection: 'column',
- gap: 8,
- }}
- >
- <span
- style={{
- ...FONT_STYLE,
- fontSize: 32,
- fontWeight: 700,
- color: colors.text,
- lineHeight: 1.2,
- textDecoration: 'none',
- }}
- >
- {title}
- </span>
- <span
- style={{
- ...FONT_STYLE,
- fontSize: 22,
- fontWeight: 500,
- color: colors.text,
- opacity: 0.6,
- lineHeight: 1.4,
- }}
- >
- {description}
- </span>
- </div>
- </div>
- );
-};
-
-const Heading = ({
- text,
- progress,
- theme,
-}: {
- readonly text: string;
- readonly progress: number;
- readonly theme: 'light' | 'dark';
-}) => {
- const colors = getThemeColors(theme);
- const slideDistance = 30;
-
- return (
- <div
- style={{
- opacity: progress,
- transform: `translateY(${(1 - progress) * slideDistance}px)`,
- }}
- >
- <span
- style={{
- ...FONT_STYLE,
- fontSize: 64,
- fontWeight: 700,
- color: colors.text,
- lineHeight: 1.1,
- }}
- >
- {text}
- </span>
- </div>
- );
-};
-
-export const RulesEnumeration: React.FC<RulesEnumerationProps> = ({
- heading,
- rules,
- theme,
-}) => {
- const frame = useCurrentFrame();
- const {fps} = useVideoConfig();
- const colors = getThemeColors(theme);
-
- const headingDelay = 0;
- const ruleBaseDelay = 20;
- const ruleStaggerDelay = 12;
-
- const headingProgress = spring({
- frame: frame - headingDelay,
- fps,
- config: {damping: 200},
- });
-
- return (
- <AbsoluteFill
- style={{
- backgroundColor: colors.bg,
- display: 'flex',
- flexDirection: 'row',
- justifyContent: 'center',
- alignItems: 'center',
- padding: 120,
- gap: 120,
- }}
- >
- <div
- style={{
- display: 'flex',
- flexDirection: 'column',
- alignItems: 'flex-start',
- width: 320,
- flexShrink: 0,
- }}
- >
- <Heading text={heading} progress={headingProgress} theme={theme} />
- </div>
-
- <div
- style={{
- display: 'flex',
- flexDirection: 'column',
- gap: 48,
- flex: 1,
- }}
- >
- {rules.map((rule, index) => {
- const ruleProgress = spring({
- frame: frame - ruleBaseDelay - index * ruleStaggerDelay,
- fps,
- config: {damping: 200},
- });
-
- return (
- <RuleCard
- key={rule.title}
- number={index + 1}
- title={rule.title}
- description={rule.description}
- progress={ruleProgress}
- theme={theme}
- />
- );
- })}
- </div>
- </AbsoluteFill>
- );
-};
diff --git a/packages/brand/src/SvgLogos/index.tsx b/packages/brand/src/SvgLogos/index.tsx
index 5f673e29ec..d82d7735ae 100644
--- a/packages/brand/src/SvgLogos/index.tsx
+++ b/packages/brand/src/SvgLogos/index.tsx
@@ -1,4 +1,4 @@
-import {Composition, Folder} from 'remotion';
+import {Composition} from 'remotion';
import type {SvgLogoVariant} from './Logos';
import {SvgLogo} from './Logos';
@@ -57,7 +57,7 @@ const logos: readonly {
export const SvgLogoCompositions = () => {
return (
- <Folder name="svg-logos">
+ <>
{logos.map((logo) => (
<Composition
key={logo.id}
@@ -70,6 +70,6 @@ export const SvgLogoCompositions = () => {
durationInFrames={1}
/>
))}
- </Folder>
+ </>
);
};
diff --git a/packages/brand/src/animated-logo/AnimatedMaster.tsx b/packages/brand/src/animated-logo/AnimatedMaster.tsx
deleted file mode 100644
index c056a71fec..0000000000
--- a/packages/brand/src/animated-logo/AnimatedMaster.tsx
+++ /dev/null
@@ -1,13 +0,0 @@
-import React from 'react';
-import {AbsoluteFill, Sequence} from 'remotion';
-import {AnimatedLogo} from './AnimatedLogo';
-
-export const AnimatedMaster: React.FC = () => {
- return (
- <AbsoluteFill>
- <Sequence from={108}>
- <AnimatedLogo theme="light" />
- </Sequence>
- </AbsoluteFill>
- );
-};
diff --git a/packages/brand/src/animated-logo/ExplodingLogo.tsx b/packages/brand/src/animated-logo/ExplodingLogo.tsx
deleted file mode 100644
index c21b27b621..0000000000
--- a/packages/brand/src/animated-logo/ExplodingLogo.tsx
+++ /dev/null
@@ -1,195 +0,0 @@
-import React from 'react';
-import {
- AbsoluteFill,
- Freeze,
- interpolate,
- spring,
- useCurrentFrame,
- useVideoConfig,
-} from 'remotion';
-import {E} from './e';
-import {FirstO} from './first-o';
-import {I} from './i';
-import {M} from './m';
-import {N} from './n';
-import {R} from './r';
-import {SecondO} from './second-o';
-import {T} from './t';
-
-export const ExplodingLogo: React.FC<{
- readonly theme: 'light' | 'dark';
-}> = ({theme}) => {
- const frame = useCurrentFrame();
- const {fps} = useVideoConfig();
-
- const implode = spring({
- fps,
- frame,
- config: {
- mass: 1,
- damping: 200,
- },
- durationInFrames: 12,
- });
-
- const spr = spring({
- fps,
- frame: frame - 3,
- config: {
- mass: 1.7,
- },
- durationInFrames: 20,
- });
-
- const align = spring({
- fps,
- frame: frame - 10,
- config: {
- mass: 1.1,
- damping: 15,
- },
- durationInFrames: 20,
- });
-
- const oInnerScale = spring({
- fps,
- frame: frame - 7,
- config: {
- mass: 1,
- damping: 200,
- },
- durationInFrames: 5,
- });
-
- const rStyle: React.CSSProperties = {
- translate: interpolate(spr, [0, 1], [400, 0]) + 'px',
- };
-
- const eStyle: React.CSSProperties = {
- translate: interpolate(spr, [0, 1], [300, 0]) + 'px',
- };
-
- const mStyle: React.CSSProperties = {
- translate: interpolate(spr, [0, 1], [200, 0]) + 'px',
- };
-
- const firstOStyle: React.CSSProperties = {
- translate: interpolate(spr, [0, 1], [100, 0]) + 'px',
- };
-
- const tStyle: React.CSSProperties = {
- translate: interpolate(spr, [0, 1], [-100, 0]) + 'px',
- };
-
- const iStyle: React.CSSProperties = {
- translate: interpolate(spr, [0, 1], [-200, 0]) + 'px',
- };
-
- const secondOStyle: React.CSSProperties = {
- translate: interpolate(spr, [0, 1], [-300, 0]) + 'px',
- };
-
- const nStyle: React.CSSProperties = {
- translate: interpolate(spr, [0, 1], [-400, 0]) + 'px',
- };
-
- const xAlign = interpolate(align, [0, 1], [-240, 0]);
-
- return (
- <Freeze frame={120}>
- <AbsoluteFill
- style={{
- justifyContent: 'center',
- alignItems: 'center',
- backgroundColor: theme === 'dark' ? '#22272e' : 'white',
- color: theme === 'dark' ? 'white' : 'black',
- }}
- >
- <svg
- width="2100"
- height="800"
- style={{
- width: '100%',
- }}
- viewBox="0 0 2100 800"
- fill="none"
- xmlns="http://www.w3.org/2000/svg"
- >
- <g
- style={{
- transform: `translateX(${xAlign}px)`,
- }}
- >
- <R style={rStyle} />
- <E style={eStyle} />
- <M style={mStyle} />
- <FirstO
- innerScale={oInnerScale}
- fill={frame >= 8}
- style={firstOStyle}
- />
- <T style={tStyle} />
- <I style={iStyle} />
- <SecondO style={secondOStyle} />
- <N style={nStyle} />
- </g>
- <g
- style={{
- transform: `translateX(${interpolate(
- align,
- [0, 1],
- [-600, 0],
- )}px)`,
- }}
- >
- <path
- d="M235.44 233.13C228.453 233.509 222.824 234.617 217.15 236.776C214.321 237.841 209.683 240.16 207.13 241.764C196.454 248.459 188.316 258.522 184.071 270.234C183.225 272.553 180.936 279.948 179.463 285.038C169.647 319.064 164.075 356.27 162.88 395.65C162.69 401.921 162.69 416.856 162.88 423.026C163.682 449.133 166.176 472.702 170.697 496.738C172.535 506.466 175.481 519.534 177.187 525.47C180.673 537.532 187.791 547.8 197.913 555.326C204.695 560.372 212.395 563.756 220.928 565.418C225.041 566.221 230.466 566.585 234.462 566.323C239.99 565.958 250.958 564.485 259.869 562.895C300.036 555.734 337.14 542.914 370.788 524.566C392.096 512.942 410.313 500.355 427.888 485.085C445.404 469.887 460.339 453.537 473.48 435.19C476.529 430.945 478.06 428.466 479.591 425.345C483.529 417.294 485.382 409.287 485.367 400.332C485.367 391.989 483.792 384.58 480.394 376.996C478.76 373.335 477.199 370.71 473.699 365.722C460.806 347.359 446.498 331.359 429.055 315.812C402.014 291.718 369.898 271.955 334.034 257.326C326.26 254.161 318.603 251.376 309.385 248.357C289.871 241.983 265.718 236.455 245.284 233.699C242.076 233.261 237.715 233.013 235.44 233.13Z"
- fill={theme === 'dark' ? 'white' : '#0B84F3'}
- fillOpacity="0.3"
- style={{
- transformBox: 'fill-box',
- transformOrigin: 'center center',
- }}
- />
- <path
- d="M211.39 188.036C202.512 188.518 195.358 189.927 188.148 192.67C184.552 194.023 178.658 196.97 175.415 199.009C161.847 207.516 151.505 220.305 146.112 235.189C145.037 238.136 142.127 247.533 140.255 254.001C127.781 297.243 120.701 344.524 119.181 394.568C118.94 402.538 118.94 421.517 119.181 429.357C120.2 462.534 123.37 492.486 129.115 523.031C131.451 535.394 135.195 552.001 137.363 559.545C141.793 574.873 150.838 587.921 163.701 597.485C172.319 603.898 182.106 608.198 192.949 610.311C198.175 611.33 205.07 611.794 210.149 611.46C217.173 610.997 231.111 609.125 242.436 607.104C293.48 598.004 340.632 581.712 383.392 558.395C410.471 543.623 433.621 527.628 455.955 508.222C478.215 488.909 497.194 468.132 513.894 444.815C517.768 439.422 519.714 436.271 521.66 432.304C526.665 422.073 529.018 411.898 529 400.518C529 389.916 526.998 380.5 522.68 370.862C520.604 366.21 518.62 362.874 514.172 356.535C497.788 333.2 479.605 312.867 457.438 293.109C423.074 262.49 382.261 237.376 336.685 218.785C326.806 214.763 317.075 211.223 305.361 207.387C280.562 199.287 249.868 192.262 223.901 188.759C219.824 188.203 214.282 187.888 211.39 188.036Z"
- fill={theme === 'dark' ? 'white' : '#0B84F3'}
- fillOpacity="0.15"
- style={{
- transformBox: 'fill-box',
- transformOrigin: 'center center',
- }}
- />
- <path
- d="M260.331 279.901C255.307 280.174 251.259 280.971 247.179 282.523C245.144 283.289 241.809 284.956 239.973 286.11C232.295 290.924 226.443 298.162 223.391 306.584C222.782 308.252 221.136 313.569 220.076 317.23C213.017 341.7 209.011 368.456 208.151 396.776C208.014 401.286 208.014 412.026 208.151 416.463C208.727 435.237 210.521 452.187 213.773 469.472C215.094 476.468 217.213 485.866 218.44 490.135C220.947 498.809 226.065 506.193 233.344 511.605C238.221 515.234 243.759 517.667 249.895 518.863C252.853 519.44 256.755 519.702 259.629 519.513C263.604 519.251 271.491 518.192 277.9 517.049C306.786 511.899 333.469 502.679 357.666 489.484C372.99 481.125 386.09 472.073 398.729 461.092C411.326 450.163 422.066 438.405 431.516 425.21C433.708 422.158 434.81 420.375 435.911 418.13C438.743 412.341 440.075 406.582 440.064 400.142C440.064 394.143 438.932 388.815 436.488 383.361C435.313 380.728 434.191 378.84 431.673 375.253C422.402 362.048 412.112 350.542 399.568 339.361C380.122 322.034 357.026 307.822 331.235 297.302C325.644 295.026 320.138 293.022 313.509 290.851C299.475 286.268 282.106 282.292 267.411 280.31C265.104 279.995 261.968 279.817 260.331 279.901Z"
- fill={theme === 'dark' ? 'white' : '#0B84F3'}
- style={{
- transformBox: 'fill-box',
- transformOrigin: 'center center',
- }}
- />
- </g>
- </svg>
- </AbsoluteFill>
- <AbsoluteFill
- style={{
- justifyContent: 'center',
- alignItems: 'center',
- }}
- >
- <div
- style={{
- height: 500,
- width: 500,
- backgroundColor: 'black',
- borderRadius: 250,
- marginLeft: -50,
- marginTop: 40,
- scale: String(7 - implode * 7),
- opacity: frame < 8 ? 1 : 0,
- }}
- />
- </AbsoluteFill>
- </Freeze>
- );
-};