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

Advanced AI Prompt for Magnetic Button Triggers

Customize the variables below to instantly engineer your prompt.

Required Variables

gsap-magnetic-button-hover-scroll.txt
Act as a Micro-Interactions UI Expert. Engineer a highly tactile, physics-based 'magnetic' button effect for a premium portfolio's primary Call-To-Actions. Utilize GSAP to calculate the relative distance between the pointer and the [BUTTON_SELECTOR] bounding box. When the mouse enters a predefined proximity radius (e.g., 100px), animate the button's X/Y coordinates aggressively toward the cursor, modified by a mathematical [MAGNETIC_PULL] dampening factor (e.g., `0.3`). Seamlessly integrate a ScrollTrigger instance that forcefully 'pulses' or scales the button by 1.1x the exact moment it enters the viewport to demand attention. Program the pointer leave event to execute an elastic snap-back animation, returning the button to its exact 0,0 origin coordinates over a highly tuned [RESET_DURATION] (e.g., `0.8s` with `elastic.out` easing).

Example Text Output

"The AI provides a combined event-listener and GSAP tween script that handles both mouse-proximity and scroll-entry animations."

More Web Components Prompts

View all →

Frequently Asked Questions

What is the "Advanced AI Prompt for Magnetic Button Triggers" prompt used for?

The AI provides a combined event-listener and GSAP tween script that handles both mouse-proximity and scroll-entry animations.

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.