Blenra LogoBlenra
Optimized for: Gemini / ChatGPT / Claude
#React

Advanced AI Prompt for Sticky Video Scrubbing on Scroll

Customize the variables below to instantly engineer your prompt.

Required Variables

sticky-video-scrubbing-scroll-framer-motion.txt
Act as a Multimedia Frontend Engineer. Engineer a highly complex React component that imperatively 'scrubs' (seeks) through an HTML5 video file based entirely on the user's scroll position, utilizing Framer Motion. The `<video>` element hosted at [VIDEO_URL] must be pinned via `position: sticky`. Mathematically map the container's `scrollYProgress` directly to the `currentTime` property of the video node via a `useRef`. Implement a critical 'smoothing' interpolation layer utilizing `useSpring` with a [SCRUB_SMOOTHNESS] mass/stiffness ratio to prevent visual frame jumping or tearing. Embed robust logic to explicitly preload the video metadata and display the [FALLBACK_IMAGE] poster during network latency. Aggressively optimize the DOM updates for a [FRAME_RATE_TARGET] (e.g., 60fps) by utilizing `requestAnimationFrame` or throttling the update frequency. Include extensive comments detailing the mandatory video encoding prerequisites (e.g., an extremely high frequency of I-frames/keyframes) required for this specific scrubbing effect to function without browser-level decode lag.

Example Text Output

"The AI will generate a component where the user 'plays' a video forward or backward by scrolling, creating a highly interactive cinematic experience."

More Web Components Prompts

View all →

Frequently Asked Questions

What is the "Advanced AI Prompt for Sticky Video Scrubbing on Scroll" prompt used for?

The AI will generate a component where the user 'plays' a video forward or backward by scrolling, creating a highly interactive cinematic experience.

Which AI tools work with this prompt?

This prompt is optimized for Gemini / ChatGPT / Claude, but works great with ChatGPT, Claude, Gemini, and other large language models. Simply copy it and paste it into your preferred AI tool.

How do I customize this prompt?

Use the variable fields above to fill in your specific details. The prompt will auto-update as you type, ready to copy instantly.

Is this prompt free?

Yes! All prompts on Blenra are free to copy and use immediately. No account required.