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

Advanced Prompt for Magnetic Scroll Snapping Logic

Customize the variables below to instantly engineer your prompt.

Required Variables

magnetic-scroll-snapping-framer-motion.txt
Develop a custom scroll snapping engine in React using Framer Motion. Instead of native CSS snap, use useScroll and useAnimate to create a 'magnetic' effect where the scroll position is pulled toward [SNAP_POINTS_ARRAY] when the user stops scrolling near them. Calculate the proximity based on [SNAP_STRENGTH]. Support [DIRECTION] (vertical/horizontal). Execute a [CALLBACK_FUNCTION] whenever a snap event completes to update the application state (e.g., current slide index). Ensure the logic accounts for momentum and doesn't interfere with natural browser scrolling behavior for accessibility.

Example Text Output

"The AI will provide a complex React hook and wrapper that programmatically 'snaps' the scroll position to specific elements with custom easing and callbacks."

More Web Components Prompts

View all →

Frequently Asked Questions

What is the "Advanced Prompt for Magnetic Scroll Snapping Logic" prompt used for?

The AI will provide a complex React hook and wrapper that programmatically 'snaps' the scroll position to specific elements with custom easing and callbacks.

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.