Skip to content

Production-ready animations, transitions, backgrounds, and scenes for Remotion

feat: icon skip-forward

dev_wandry6d268bcde7ac
diff --git a/components/docs/icons-gallery.tsx b/components/docs/icons-gallery.tsx
index 6b533a8c..8a6ceb26 100644
--- a/components/docs/icons-gallery.tsx
+++ b/components/docs/icons-gallery.tsx
@@ -31,6 +31,7 @@ import { RefreshCwIconStatic } from "@/registry/remocn/icon-refresh-cw";
import { SearchIconStatic } from "@/registry/remocn/icon-search";
import { SendIconStatic } from "@/registry/remocn/icon-send";
import { SettingsIconStatic } from "@/registry/remocn/icon-settings";
+import { SkipForwardIconStatic } from "@/registry/remocn/icon-skip-forward";
import { SparklesIconStatic } from "@/registry/remocn/icon-sparkles";
import { StarIconStatic } from "@/registry/remocn/icon-star";
import { ThumbsUpIconStatic } from "@/registry/remocn/icon-thumbs-up";
@@ -172,6 +173,12 @@ export const ICONS: IconEntry[] = [
category: "Media & playback",
Static: PauseIconStatic,
},
+ {
+ name: "icon-skip-forward",
+ label: "Skip Forward",
+ category: "Media & playback",
+ Static: SkipForwardIconStatic,
+ },
{
name: "icon-heart",
label: "Heart",
diff --git a/registry/__index__.tsx b/registry/__index__.tsx
index c5553a6e..7d2d01f7 100644
--- a/registry/__index__.tsx
+++ b/registry/__index__.tsx
@@ -47,6 +47,7 @@ import { iconRefreshCwConfig } from "@/registry/remocn/icon-refresh-cw/config";
import { iconSearchConfig } from "@/registry/remocn/icon-search/config";
import { iconSendConfig } from "@/registry/remocn/icon-send/config";
import { iconSettingsConfig } from "@/registry/remocn/icon-settings/config";
+import { iconSkipForwardConfig } from "@/registry/remocn/icon-skip-forward/config";
import { iconSparklesConfig } from "@/registry/remocn/icon-sparkles/config";
import { iconStarConfig } from "@/registry/remocn/icon-star/config";
import { iconThumbsUpConfig } from "@/registry/remocn/icon-thumbs-up/config";
@@ -741,6 +742,13 @@ const registry: Record<string, RegistryEntry> = {
})),
config: iconSettingsConfig,
},
+ "icon-skip-forward": {
+ load: () =>
+ import("@/registry/remocn/icon-skip-forward").then((m) => ({
+ default: m.SkipForwardIcon,
+ })),
+ config: iconSkipForwardConfig,
+ },
"icon-sparkles": {
load: () =>
import("@/registry/remocn/icon-sparkles").then((m) => ({
diff --git a/registry/remocn/icon-skip-forward/config.ts b/registry/remocn/icon-skip-forward/config.ts
new file mode 100644
index 00000000..52bf4470
--- /dev/null
+++ b/registry/remocn/icon-skip-forward/config.ts
@@ -0,0 +1,44 @@
+import { type ComponentConfig, FPS } from "@/lib/customizer-config";
+
+export const iconSkipForwardConfig: ComponentConfig = {
+ componentName: "SkipForwardIcon",
+ importPath: "@/components/remocn/icon-skip-forward",
+ controls: {
+ animation: {
+ type: "select",
+ default: "both",
+ options: ["draw", "action", "both"],
+ label: "Animation",
+ },
+ loop: {
+ type: "boolean",
+ default: false,
+ label: "Loop",
+ },
+ size: {
+ type: "number",
+ default: 48,
+ min: 24,
+ max: 200,
+ step: 4,
+ label: "Size",
+ },
+ color: {
+ type: "color",
+ default: "#171717",
+ label: "Color",
+ },
+ strokeWidth: {
+ type: "number",
+ default: 2,
+ min: 1,
+ max: 3,
+ step: 0.25,
+ label: "Stroke width",
+ },
+ },
+ durationInFrames: 60,
+ fps: FPS,
+ compositionWidth: 48,
+ compositionHeight: 48,
+};
diff --git a/registry/remocn/icon-skip-forward/index.tsx b/registry/remocn/icon-skip-forward/index.tsx
new file mode 100644
index 00000000..5d10f93b
--- /dev/null
+++ b/registry/remocn/icon-skip-forward/index.tsx
@@ -0,0 +1,139 @@
+"use client";
+
+import { Easing, interpolate } from "remotion";
+import {
+ drawnPathProps,
+ type IconAnimationProps,
+ useIconAnimation,
+} from "@/lib/remocn-icons";
+
+const TRIANGLE_PATH =
+ "M6.029 4.285A2 2 0 0 0 3 6v12a2 2 0 0 0 3.029 1.715l9.997-5.998a2 2 0 0 0 .003-3.432z";
+const BAR_PATH = "M21 4v16";
+
+const TIMINGS = {
+ drawDurationInFrames: 14,
+ actionDelayInFrames: 2,
+ actionDurationInFrames: 20,
+ loop: false,
+} as const;
+
+export function SkipForwardIcon({
+ animation = "both",
+ loop,
+ speed,
+ size = 48,
+ color = "currentColor",
+ strokeWidth = 2,
+ className,
+}: IconAnimationProps) {
+ const { drawProgress, scaleIn, actionProgress } = useIconAnimation(
+ { animation, loop, speed },
+ TIMINGS,
+ );
+
+ const linearDraw = 1 - (1 - drawProgress) ** (1 / 3);
+
+ const triangleProgress = interpolate(linearDraw, [0, 0.71], [0, 1], {
+ extrapolateLeft: "clamp",
+ extrapolateRight: "clamp",
+ easing: Easing.out(Easing.quad),
+ });
+ const barProgress = interpolate(linearDraw, [0.43, 1], [0, 1], {
+ extrapolateLeft: "clamp",
+ extrapolateRight: "clamp",
+ easing: Easing.out(Easing.quad),
+ });
+
+ const triangle = drawnPathProps(TRIANGLE_PATH, triangleProgress);
+ const bar = drawnPathProps(BAR_PATH, barProgress);
+
+ const dash = interpolate(
+ actionProgress,
+ [0, 0.2, 0.6, 0.82, 1],
+ [0, -1.2, 2, -0.3, 0],
+ {
+ extrapolateLeft: "clamp",
+ extrapolateRight: "clamp",
+ easing: Easing.inOut(Easing.quad),
+ },
+ );
+ const squeeze = interpolate(actionProgress, [0.45, 0.6, 0.78], [1, 0.96, 1], {
+ extrapolateLeft: "clamp",
+ extrapolateRight: "clamp",
+ easing: Easing.inOut(Easing.quad),
+ });
+ const shove = interpolate(actionProgress, [0.55, 0.62, 1], [0, 0.5, 0], {
+ extrapolateLeft: "clamp",
+ extrapolateRight: "clamp",
+ easing: Easing.out(Easing.quad),
+ });
+
+ const scale = 0.85 + 0.15 * scaleIn;
+
+ return (
+ <svg
+ className={className}
+ width={size}
+ height={size}
+ viewBox="0 0 24 24"
+ fill="none"
+ stroke={color}
+ strokeWidth={strokeWidth}
+ strokeLinecap="round"
+ strokeLinejoin="round"
+ style={{
+ overflow: "visible",
+ transformOrigin: "center",
+ transform: `scale(${scale})`,
+ }}
+ >
+ <g
+ transform={`translate(${dash} 0) scale(${squeeze} 1)`}
+ style={{ transformOrigin: "16px 12px" }}
+ >
+ <path
+ d={TRIANGLE_PATH}
+ strokeDasharray={triangle.strokeDasharray}
+ strokeDashoffset={triangle.strokeDashoffset}
+ />
+ </g>
+ <g transform={`translate(${shove} 0)`}>
+ <path
+ d={BAR_PATH}
+ strokeDasharray={bar.strokeDasharray}
+ strokeDashoffset={bar.strokeDashoffset}
+ />
+ </g>
+ </svg>
+ );
+}
+
+export function SkipForwardIconStatic({
+ size = 48,
+ color = "currentColor",
+ strokeWidth = 2,
+ className,
+}: {
+ size?: number;
+ color?: string;
+ strokeWidth?: number;
+ className?: string;
+}) {
+ return (
+ <svg
+ className={className}
+ width={size}
+ height={size}
+ viewBox="0 0 24 24"
+ fill="none"
+ stroke={color}
+ strokeWidth={strokeWidth}
+ strokeLinecap="round"
+ strokeLinejoin="round"
+ >
+ <path d={BAR_PATH} />
+ <path d={TRIANGLE_PATH} />
+ </svg>
+ );
+}
diff --git a/registry/remocn/registry.json b/registry/remocn/registry.json
index 34bbde58..5f0da7ae 100644
--- a/registry/remocn/registry.json
+++ b/registry/remocn/registry.json
@@ -1744,6 +1744,21 @@
}
]
},
+ {
+ "name": "icon-skip-forward",
+ "type": "registry:component",
+ "title": "Skip Forward",
+ "description": "Animated Lucide skip-forward icon — draws on, then dashes forward past center and snaps against its end bar.",
+ "dependencies": ["remotion"],
+ "registryDependencies": ["@remocn/icons-core"],
+ "files": [
+ {
+ "path": "icon-skip-forward/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/icon-skip-forward.tsx"
+ }
+ ]
+ },
{
"name": "icon-sparkles",
"type": "registry:component",