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
Develop a professional navigation component in React. Use Framer Motion's useScroll to track the vertical scroll position. As the user moves away from the top of the page, the navbar should transition from [INITIAL_HEIGHT] to [COLLAPSED_HEIGHT]. Simultaneously, the background should change to [BG_TRANSITION_COLOR] and the logo should scale to [LOGO_SCALE]. Use useSpring to ensure the transition is buttery smooth. Add a 'hidden' state that triggers when scrolling down and a 'visible' state when scrolling up (head-up display pattern). Ensure the component is accessible with appropriate ARIA labels and focus management.

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.