Parallax

You might say

On our landing page hero, I want the mountain background to scroll slower than the headline in front so it feels layered.

Moving background and foreground layers at different speeds during scrolling to create a sense of depth.In a brand hero or story-driven showcase, scrolling distant artwork at 0.4x while foreground copy moves at 1.0x adds spatial depth. Restrict parallax to decorative visuals—never behind dense text or forms—avoid background-attachment: fixed jank on mobile, and turn it off completely under reduced motion.
Parallax Scrolling

You can say this to an AI Agent

Ready to paste into Cursor, Claude Code, or Codex
Structured AI Agent prompt

Add subtle parallax only to the hero background illustration: keep foreground headline and CTA at normal 1.0x scroll speed and move the background at roughly 0.45x using `transform: translateY()` instead of `background-attachment: fixed`. Keep text contrast clear throughout the scroll, and disable parallax automatically on mobile or when prefers-reduced-motion is enabled. Verify desktop scroll, mobile layout, and reduced-motion mode afterward.

Want your Agent to translate plain-language UI ideas automatically?Install free VibeHub Skill →
Oil UI Pro. Push AI’s design skills to the limit. Usability, existing projects and stricter review.
Further reading