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

Advanced AI Prompt for Video Scrubbing Control via Scroll

Customize the variables below to instantly engineer your prompt.

Required Variables

gsap-video-scrub-scroll-control.txt
Act as a Multimedia Performance and SEO Expert. Engineer an advanced GSAP script that aggressively overrides the native playback of a high-resolution background HTML5 video ([VIDEO_ID]), subjugating its `currentTime` property entirely to the user's vertical scroll position. The artificially inflated [SECTION_HEIGHT] (e.g., `500vh`) must mathematically dictate the physical duration of the video's 'playback' track. Calculate the exact video duration float and linearly map it to the ScrollTrigger progress ratio. You must provide a critical, asynchronous JavaScript workaround leveraging the `canplaythrough` event listener to absolutely guarantee the video's metadata and first frame are fully buffered into RAM *before* the GSAP ScrollTrigger instance is initialized. Inject a highly efficient, custom debounce function to forcefully recalculate the video parameters upon window resize events without crashing the browser.

Example Text Output

"The AI creates a script that updates the currentTime of an HTML5 video element relative to the scroll position for a frame-by-frame control effect."

More Web Components Prompts

View all →

Frequently Asked Questions

What is the "Advanced AI Prompt for Video Scrubbing Control via Scroll" prompt used for?

The AI creates a script that updates the currentTime of an HTML5 video element relative to the scroll position for a frame-by-frame control effect.

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.