remotion-spline

Remotion Spline Skill

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "remotion-spline" with this command: npx skills add oren-hollander/remotion-spline/oren-hollander-remotion-spline-remotion-spline

Remotion Spline Skill

Use the remotion-spline package's standalone spline functions to create smooth path animations in Remotion compositions.

Available Functions

import { evaluateLinearSpline, linearSplineToSVGPath, evaluateCatmullRom, catmullRomToSVGPath, type Point2D, } from "remotion-spline";

Point2D

interface Point2D { readonly x: number; readonly y: number; }

Linear Spline

  • evaluateLinearSpline(points: Point2D[], t: number): [number, number] — Evaluate position at parameter t (clamped to [0,1]) along a piecewise-linear path through points .

  • linearSplineToSVGPath(points: Point2D[]): string — Convert points to an SVG M ... L ... path string.

Catmull-Rom Spline

  • evaluateCatmullRom(points: Point2D[], t: number): [number, number] — Evaluate position at parameter t (clamped to [0,1]) along a centripetal Catmull-Rom spline through points . Produces a smooth curve that passes through all control points.

  • catmullRomToSVGPath(points: Point2D[]): string — Convert points to an SVG cubic Bezier path (M ... C ... ) that matches the Catmull-Rom curve.

All functions require at least 2 points.

Pattern: Animated Position Along a Spline

import { useCurrentFrame, useVideoConfig } from "remotion"; import { evaluateCatmullRom, catmullRomToSVGPath, type Point2D } from "remotion-spline";

const points: Point2D[] = [ { x: 100, y: 500 }, { x: 300, y: 200 }, { x: 600, y: 400 }, ];

export const MyAnimation: React.FC = () => { const frame = useCurrentFrame(); const { durationInFrames } = useVideoConfig();

const t = frame / (durationInFrames - 1); const [x, y] = evaluateCatmullRom(points, t); const pathD = catmullRomToSVGPath(points);

return ( <svg viewBox="0 0 800 800"> {/* Static path /} <path d={pathD} stroke="blue" strokeWidth="2" fill="none" /> {/ Animated dot */} <circle cx={x} cy={y} r="10" fill="red" /> </svg> ); };

Tips

  • t=0 returns the first point, t=1 returns the last point.

  • Values outside [0,1] are clamped automatically.

  • Catmull-Rom splines produce smooth curves through all control points — no need to manually compute Bezier handles.

  • Use linearSplineToSVGPath / catmullRomToSVGPath for static path rendering (racing lines, trails, guides).

  • Use evaluateLinearSpline / evaluateCatmullRom with a time-varying t for animated position.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

PanchangaAPI — Vedic Astrology

Vedic astrology (Jyotish) REST API powered by Swiss Ephemeris. 24 endpoints: Panchanga, Kundali (300+ Yogas, Ashtakavarga, Doshas), KP system (249 sub-lords)...

Registry SourceRecently Updated
General

OPC Invoice Manager

Accounts Receivable light system for solo entrepreneurs. Manages the full billing lifecycle: invoice generation, collections follow-up, payment reconciliatio...

Registry SourceRecently Updated
General

NBA Tracker

提供NBA球队和球员赛程、实时比分及关键时刻提醒,支持追踪球员伤病和自动添加比赛到日历,适合观赛辅助。

Registry SourceRecently Updated
General

Okr Planner

OKR目标管理。OKR制定、季度复盘、上下对齐、评分、模板库、级联分解。OKR planner with goal setting, quarterly reviews, alignment, scoring, templates, cascading. OKR、目标管理、绩效。

Registry SourceRecently Updated