KapishDima

Perspective Marquee

Component 1.1K

About

A 3D-tilted infinite marquee with depth-of-field blur on items rolling toward the horizon.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Perspective Marquee to your project and fits it to your theme.

Code

How Perspective Marquee is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

"use client";

import { Player } from "@remotion/player";
import { PerspectiveMarquee } from "@/components/ui/remocn-perspective-marquee";

const settings = {
  rotateY: -28,
  rotateX: 8,
  perspective: 1200,
  pixelsPerFrame: 2,
  speed: 1,
  fontSize: 84,
};

export default function Demo(props: Partial<typeof settings>) {
  const s = { ...settings, ...props };

  return (
    <div className="h-screen w-screen">
      <Player
        component={PerspectiveMarquee as any}
        inputProps={s}
        durationInFrames={100000}
        compositionWidth={1200}
        compositionHeight={900}
        fps={30}
        autoPlay
        loop
        controls={false}
        style={{ width: "100%", height: "100%" }}
      />
    </div>
  );
}

Dependencies

More by KapishDima

View all
  • Marker Highlight

    Marker Highlight

    470
  • Infinite Bento Pan

    Infinite Bento Pan

    349
  • Inline Highlight

    Inline Highlight

    123
  • Tracking In

    Tracking In

    118