🎥 Make videos programmatically with React
remove some more examples
Jonny Burgerfa38f0ce7b89
diff --git a/packages/skills/skills/charts/SKILL.md b/packages/skills/skills/charts/SKILL.mdindex fba3f34789..bf10e9b929 100644--- a/packages/skills/skills/charts/SKILL.md+++ b/packages/skills/skills/charts/SKILL.md@@ -106,7 +106,5 @@ const offset = interpolate(progress, [0, 1], [segmentLength, 0]);For full working code examples, see:- [Bar Chart Example](assets/bar-chart.tsx) - Bar chart with Y-axis labels and staggered springs-- [Histogram Example](../example-histogram/SKILL.md) - Animated bar chart with @remotion/shapes-- [Progress Bar Example](../example-progress-bar/SKILL.md) - Loading bar from 0 to 100%- [Counter Animation Example](../example-counter/SKILL.md) - Animated number counters- [Animated Shapes Example](assets/animated-shapes.tsx) - Bouncing and rotating SVG shapes with spring animationsdiff --git a/packages/skills/skills/example-histogram/SKILL.md b/packages/skills/skills/example-histogram/SKILL.mddeleted file mode 100644index 1f24e57727..0000000000--- a/packages/skills/skills/example-histogram/SKILL.md+++ /dev/null@@ -1,22 +0,0 @@-----name: example-histogram-description: Complete working example of an animated bar chart using @remotion/shapes with spring animations and staggered entrances.-metadata:- category: Charts- durationInFrames: 120- fps: 30------## Histogram Example--Animated bar chart using @remotion/shapes with staggered spring entrances and value labels.--See the full implementation in [assets/example.tsx](assets/example.tsx).--### Key Features--- Uses `@remotion/shapes` Rect component for bars-- Staggered entrance animations with spring physics-- Animated value labels that fade in-- Glow effect using CSS filter-- Responsive bar heights based on data valuesdiff --git a/packages/skills/skills/example-histogram/assets/example.tsx b/packages/skills/skills/example-histogram/assets/example.tsxdeleted file mode 100644index c5e74c7051..0000000000--- a/packages/skills/skills/example-histogram/assets/example.tsx+++ /dev/null@@ -1,91 +0,0 @@-import { AbsoluteFill, useCurrentFrame, useVideoConfig, spring } from "remotion";-import { Rect } from "@remotion/shapes";--export const MyAnimation = () => {- const frame = useCurrentFrame();- const { fps } = useVideoConfig();-- const data = [- { label: "Mon", value: 65, color: "#6366f1" },- { label: "Tue", value: 85, color: "#8b5cf6" },- { label: "Wed", value: 45, color: "#a855f7" },- { label: "Thu", value: 95, color: "#d946ef" },- { label: "Fri", value: 75, color: "#ec4899" },- ];-- const maxValue = Math.max(...data.map(d => d.value));- const barWidth = 80;-- return (- <AbsoluteFill- style={{- backgroundColor: "#0a0a0a",- justifyContent: "center",- alignItems: "flex-end",- padding: 60,- paddingBottom: 100,- }}- >- <div- style={{- display: "flex",- alignItems: "flex-end",- gap: 24,- height: 400,- width: "100%",- justifyContent: "center",- }}- >- {data.map((item, i) => {- const delay = i * 10;- const progress = spring({- frame: frame - delay,- fps,- config: { damping: 15, stiffness: 100 },- });-- const height = Math.max(1, (item.value / maxValue) * 300 * progress);-- return (- <div key={i} style={{ textAlign: "center", position: "relative" }}>- <div style={{ position: "relative", height, width: barWidth }}>- <Rect- width={barWidth}- height={height}- fill={item.color}- cornerRadius={12}- style={{ filter: `drop-shadow(0 0 8px ${item.color}50)` }}- />- <span- style={{- position: "absolute",- top: 10,- left: "50%",- transform: "translateX(-50%)",- color: "#fff",- fontSize: 18,- fontWeight: "bold",- opacity: progress,- fontFamily: "system-ui, sans-serif",- }}- >- {Math.round(item.value * progress)}- </span>- </div>- <div- style={{- color: "#888",- fontSize: 16,- marginTop: 12,- fontFamily: "system-ui, sans-serif",- }}- >- {item.label}- </div>- </div>- );- })}- </div>- </AbsoluteFill>- );-};diff --git a/packages/skills/skills/example-progress-bar/SKILL.md b/packages/skills/skills/example-progress-bar/SKILL.mddeleted file mode 100644index 0ee50cb4f1..0000000000--- a/packages/skills/skills/example-progress-bar/SKILL.md+++ /dev/null@@ -1,22 +0,0 @@-----name: example-progress-bar-description: Complete working example of an animated progress bar that fills from 0 to 100% with gradient styling.-metadata:- category: Other- durationInFrames: 180- fps: 30------## Progress Bar Example--Animated progress bar with percentage counter and gradient fill.--See the full implementation in [assets/example.tsx](assets/example.tsx).--### Key Features--- Smooth progress animation using interpolate-- Fade-in entrance animation-- Percentage counter that updates in sync-- Gradient fill for visual appeal-- Rounded corners for modern lookdiff --git a/packages/skills/skills/example-progress-bar/assets/example.tsx b/packages/skills/skills/example-progress-bar/assets/example.tsxdeleted file mode 100644index 5ebba374b9..0000000000--- a/packages/skills/skills/example-progress-bar/assets/example.tsx+++ /dev/null@@ -1,80 +0,0 @@-import { AbsoluteFill, useCurrentFrame, useVideoConfig, interpolate } from "remotion";--export const MyAnimation = () => {- const frame = useCurrentFrame();- const { durationInFrames } = useVideoConfig();-- const progress = interpolate(- frame,- [0, durationInFrames * 0.8],- [0, 100],- { extrapolateRight: "clamp" }- );-- const opacity = interpolate(- frame,- [0, 20],- [0, 1],- { extrapolateRight: "clamp" }- );-- return (- <AbsoluteFill- style={{- backgroundColor: "#1a1a1a",- justifyContent: "center",- alignItems: "center",- opacity,- }}- >- <div style={{ width: 600 }}>- <div- style={{- display: "flex",- justifyContent: "space-between",- marginBottom: 16,- }}- >- <span- style={{- color: "#fff",- fontSize: 24,- fontFamily: "system-ui, sans-serif",- }}- >- Loading...- </span>- <span- style={{- color: "#10b981",- fontSize: 24,- fontWeight: "bold",- fontFamily: "system-ui, sans-serif",- }}- >- {Math.round(progress)}%- </span>- </div>- <div- style={{- width: "100%",- height: 24,- backgroundColor: "#333",- borderRadius: 12,- overflow: "hidden",- }}- >- <div- style={{- width: `${progress}%`,- height: "100%",- background: "linear-gradient(90deg, #10b981, #34d399)",- borderRadius: 12,- transition: "width 0.1s ease-out",- }}- />- </div>- </div>- </AbsoluteFill>- );-};diff --git a/packages/skills/src/Root.tsx b/packages/skills/src/Root.tsxindex 6bcdea0203..debfbe48d6 100644--- a/packages/skills/src/Root.tsx+++ b/packages/skills/src/Root.tsx@@ -8,8 +8,6 @@ import {MyAnimation as BarChartAnimation} from '../skills/charts/assets/bar-charimport {MyAnimation as ChatMessagesAnimation} from '../skills/example-chat-messages/assets/example';import {MyAnimation as CounterAnimation} from '../skills/example-counter/assets/example';import {MyAnimation as FallingSpheresAnimation} from '../skills/example-falling-spheres/assets/example';-import {MyAnimation as HistogramAnimation} from '../skills/example-histogram/assets/example';-import {MyAnimation as ProgressBarAnimation} from '../skills/example-progress-bar/assets/example';import {MyAnimation as StaggeredListAnimation} from '../skills/example-staggered-list/assets/example';import {MyAnimation as TextRotationAnimation} from '../skills/example-text-rotation/assets/example';import {MyAnimation as TypewriterHighlightAnimation} from '../skills/example-typewriter-highlight/assets/example';@@ -35,22 +33,6 @@ export const RemotionRoot = () => {width={1080}height={1080}/>- <Composition- id="Histogram"- component={HistogramAnimation}- durationInFrames={90}- fps={30}- width={1080}- height={1080}- />- <Composition- id="ProgressBar"- component={ProgressBarAnimation}- durationInFrames={90}- fps={30}- width={1080}- height={1080}- /><Compositionid="Counter"component={CounterAnimation}