Blenra
Optimized for: Gemini / ChatGPT / Claude

Technical AI Prompt for Scroll-Triggered Text Masking Effects

Use this engineered prompt to drastically optimize your workflow and output.

Required Variables

  • [TEXT_CONTENT]
  • [MASK_SHAPE]
  • [REVEAL_DIRECTION]
  • [FONT_STYLING]
scroll-triggered-text-masking-react.txt
Develop a high-end typography component in React using Framer Motion. The component should feature [TEXT_CONTENT] styled with [FONT_STYLING]. Implement a scroll-linked mask reveal where a [MASK_SHAPE] (e.g., a circle or rectangle) expands or moves across the text based on scroll progress. Use the CSS 'mask-image' or 'clip-path' property driven by motion values. The reveal should follow the [REVEAL_DIRECTION]. Include a 'parallax' offset for the text itself to create a sophisticated editorial feel. Optimize the component for performance by using 'will-change' and ensuring the motion values are updated outside of the React render cycle where possible.

Example Output

"The AI will generate code for a text reveal component where words change color or become visible through a geometric mask that follows the user's scroll position."