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

Advanced Prompt for Responsive Scroll-Driven Navbar Shrink

Customize the variables below to instantly engineer your prompt.

Required Variables

responsive-scroll-driven-navbar-shrink-framer-motion.txt
Act as a Senior UI/UX Engineer. Develop a production-grade, highly responsive global navigation component in React. Utilize Framer Motion's `useScroll` to continuously monitor the vertical scroll position. As the user translates away from `scrollY: 0`, the navbar container must fluidly transition its height from [INITIAL_HEIGHT] down to [COLLAPSED_HEIGHT]. Simultaneously, interpolate the background transparency/color to [BG_TRANSITION_COLOR] (adding a backdrop-blur) and scale the SVG logo down to [LOGO_SCALE]. Wrap all motion values in `useSpring` to ensure the transition is buttery smooth and resists rapid scroll jitter. Furthermore, implement a 'head-up display' pattern: add a 'hidden' state that translates the navbar out of the viewport when scrolling down, and a 'visible' state that instantly drops it back in when scrolling up. Ensure the component remains strictly accessible, maintaining ARIA labels and logical focus management during all states.

Example Text Output

"The AI will output a fully functional, production-ready navbar that reacts to scroll direction and depth with fluid height and color changes."

More Web Components Prompts

View all →

Frequently Asked Questions

What is the "Advanced Prompt for Responsive Scroll-Driven Navbar Shrink" prompt used for?

The AI will output a fully functional, production-ready navbar that reacts to scroll direction and depth with fluid height and color changes.

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.