Steps
- Go to Pinterest and select an image reference you like.
- Send the image to Gemini and ask it to create another version for you.
- Ask Gemini to create a portrait image of a person rotated at
80deg. - Ask Gemini to create another portrait image of the same person rotated at
250deg. - Take all three images and send them to Gemini.
- Ask Gemini to create a slow-motion video rotating the image from
80degto270deg. - Select the video output.
- Open your IDE or agent setup. I used OpenCode with Kimi K2.6.
- Attach the video and paste this prompt:
Prompt
Build a landing page for company "xyz".
Use a 60/40 split layout.
Left section: add the company tagline and CTA.
Right section: use the attached video.
Video requirements:
- muted
- preload="auto"
- no autoplay
The video should scrub forward and backward based on horizontal cursor movement.
Sensitivity should feel around 0.30 to 0.40.
Add an onMouseMove event on window.
Track prevX.
Compute:
delta = currentX - prevX
timeOffset = (delta / window.innerWidth) * SENSITIVITY * video.duration
Use:
SENSITIVITY = 0.8
Clamp targetTime between 0 and video.duration.
Set video.currentTime to seek.
Use an onSeeked handler to queue the next seek if targetTime changed.
Do not flood seeks.
- Open the page on desktop and mobile.
- Check that the video scrubs smoothly with cursor movement.
- Fix spacing, text overflow, CTA placement, and mobile layout.