Production-ready animations, transitions, backgrounds, and scenes for Remotion
TypeScript ai-agentsclaude-codedemo-videomcpmcp-servermodel-context-protocolmotion-designproduct-demoreactremotionshadcnvideo
feat: thumbs up
dev_wandry75cc9180d5a5
diff --git a/components/docs/icons-gallery.tsx b/components/docs/icons-gallery.tsxindex 1faefb75..80536c8a 100644--- a/components/docs/icons-gallery.tsx+++ b/components/docs/icons-gallery.tsx@@ -24,6 +24,7 @@ import { SendIconStatic } from "@/registry/remocn/icon-send";import { SettingsIconStatic } from "@/registry/remocn/icon-settings";import { SparklesIconStatic } from "@/registry/remocn/icon-sparkles";import { StarIconStatic } from "@/registry/remocn/icon-star";+import { ThumbsUpIconStatic } from "@/registry/remocn/icon-thumbs-up";import { ZapIconStatic } from "@/registry/remocn/icon-zap";import { TrashIconStatic } from "@/registry/remocn/icon-trash";import { UploadIconStatic } from "@/registry/remocn/icon-upload";@@ -173,6 +174,12 @@ export const ICONS: IconEntry[] = [category: "Emotion & accents",Static: FlameIconStatic,},+ {+ name: "icon-thumbs-up",+ label: "Thumbs Up",+ category: "Emotion & accents",+ Static: ThumbsUpIconStatic,+ },];const CATEGORY_ORDER: IconCategory[] = [diff --git a/registry/__index__.tsx b/registry/__index__.tsxindex 9f1a14b6..e42e51ff 100644--- a/registry/__index__.tsx+++ b/registry/__index__.tsx@@ -41,6 +41,7 @@ import { iconSendConfig } from "@/registry/remocn/icon-send/config";import { iconSettingsConfig } from "@/registry/remocn/icon-settings/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";import { iconTrashConfig } from "@/registry/remocn/icon-trash/config";import { iconUploadConfig } from "@/registry/remocn/icon-upload/config";import { iconXConfig } from "@/registry/remocn/icon-x/config";@@ -690,6 +691,13 @@ const registry: Record<string, RegistryEntry> = {})),config: iconStarConfig,},+ "icon-thumbs-up": {+ load: () =>+ import("@/registry/remocn/icon-thumbs-up").then((m) => ({+ default: m.ThumbsUpIcon,+ })),+ config: iconThumbsUpConfig,+ },"icon-trash": {load: () =>import("@/registry/remocn/icon-trash").then((m) => ({diff --git a/registry/remocn/icon-thumbs-up/config.ts b/registry/remocn/icon-thumbs-up/config.tsnew file mode 100644index 00000000..a5ea2edd--- /dev/null+++ b/registry/remocn/icon-thumbs-up/config.ts@@ -0,0 +1,44 @@+import { type ComponentConfig, FPS } from "@/lib/customizer-config";++export const iconThumbsUpConfig: ComponentConfig = {+ componentName: "ThumbsUpIcon",+ importPath: "@/components/remocn/icon-thumbs-up",+ 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: 70,+ fps: FPS,+ compositionWidth: 48,+ compositionHeight: 48,+};diff --git a/registry/remocn/icon-thumbs-up/index.tsx b/registry/remocn/icon-thumbs-up/index.tsxnew file mode 100644index 00000000..9003b6f0--- /dev/null+++ b/registry/remocn/icon-thumbs-up/index.tsx@@ -0,0 +1,124 @@+"use client";++import { Easing, interpolate, spring, useVideoConfig } from "remotion";+import {+ drawnPathProps,+ type IconAnimationProps,+ useIconAnimation,+} from "@/lib/remocn-icons";++const HAND_PATH =+ "M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z";+const CUFF_PATH = "M7 10v12";++const TIMINGS = {+ drawDurationInFrames: 16,+ actionDelayInFrames: 2,+ actionDurationInFrames: 18,+ loop: false,+} as const;++export function ThumbsUpIcon({+ animation = "both",+ loop,+ speed,+ size = 48,+ color = "currentColor",+ strokeWidth = 2,+ className,+}: IconAnimationProps) {+ const { drawProgress, scaleIn, actionFrame, actionProgress } =+ useIconAnimation({ animation, loop, speed }, TIMINGS);+ const { fps } = useVideoConfig();++ const linearDraw = 1 - (1 - drawProgress) ** (1 / 3);++ const handProgress = interpolate(linearDraw, [0.25, 1], [0, 1], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ easing: Easing.out(Easing.quad),+ });+ const cuffProgress = interpolate(linearDraw, [0, 0.5], [0, 1], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ easing: Easing.inOut(Easing.quad),+ });++ const hand = drawnPathProps(HAND_PATH, handProgress);+ const cuff = drawnPathProps(CUFF_PATH, cuffProgress);++ const settle = spring({+ frame: actionFrame,+ fps,+ config: { damping: 11, stiffness: 150, mass: 0.8 },+ durationInFrames: 18,+ });+ const rotate = -18 * (1 - settle);+ const pop = interpolate(actionProgress, [0, 0.5, 1], [1, 1.1, 1], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ easing: Easing.inOut(Easing.quad),+ });+ const scale = (0.85 + 0.15 * scaleIn) * pop;++ 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={`rotate(${rotate} 4 22)`}>+ <path+ d={HAND_PATH}+ strokeDasharray={hand.strokeDasharray}+ strokeDashoffset={hand.strokeDashoffset}+ />+ <path+ d={CUFF_PATH}+ strokeDasharray={cuff.strokeDasharray}+ strokeDashoffset={cuff.strokeDashoffset}+ />+ </g>+ </svg>+ );+}++export function ThumbsUpIconStatic({+ 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={HAND_PATH} />+ <path d={CUFF_PATH} />+ </svg>+ );+}diff --git a/registry/remocn/registry.json b/registry/remocn/registry.jsonindex 09d3dfb6..41dc735d 100644--- a/registry/remocn/registry.json+++ b/registry/remocn/registry.json@@ -1609,6 +1609,21 @@}]},+ {+ "name": "icon-thumbs-up",+ "type": "registry:component",+ "title": "Thumbs Up",+ "description": "Animated Lucide thumbs-up icon — the hand draws on, then springs up with an approving stamp for positive reviews, approvals, or social-proof beats.",+ "dependencies": ["remotion"],+ "registryDependencies": ["@remocn/icons-core"],+ "files": [+ {+ "path": "icon-thumbs-up/index.tsx",+ "type": "registry:component",+ "target": "components/remocn/icon-thumbs-up.tsx"+ }+ ]+ },{"name": "icon-sparkles","type": "registry:component",