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

Advanced AI Prompt for Layered Card Stacking Effect

Customize the variables below to instantly engineer your prompt.

Required Variables

gsap-layered-card-stacking-scroll.txt
Act as a UI/UX Motion Systems Designer. Engineer a highly tactile 'layered card stacking' editorial scroll interaction utilizing GSAP. As the user navigates vertically, every single DOM node possessing the [CARD_CLASS] must independently pin to the `sticky top-0` position of the viewport, physically remaining trapped there while the subsequent card slides aggressively over it. Inject a parallel tween that simultaneously applies a subtle scale-down transformation (`scale: 0.95`) and a heavy [OPACITY_FADE] (e.g., `opacity: 0.4`) specifically to the *previous* card the exact millisecond the new one eclipses it, simulating immense Z-axis depth. Calculate the final resting Y-axis position utilizing the [STACK_OFFSET] multiplier so the cards fan out visibly like a deck. Ensure the master ScrollTrigger calculates an accurate pin duration using a dynamic string: `end: () => '+=' + (cards.length * window.innerHeight)`.

Example Text Output

"The AI provides a timeline-based ScrollTrigger that pins cards sequentially and applies a transformation to the 'previous' card in the array."

More Web Components Prompts

View all →

Frequently Asked Questions

What is the "Advanced AI Prompt for Layered Card Stacking Effect" prompt used for?

The AI provides a timeline-based ScrollTrigger that pins cards sequentially and applies a transformation to the 'previous' card in the array.

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.