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

Technical Prompt for Framer Motion Viewport-Triggered Counter Lab

Customize the variables below to instantly engineer your prompt.

Required Variables

framer-motion-viewport-triggered-counter.txt
Build a React component that animates a numerical counter from 0 to [TARGET_NUMBER] when it enters the viewport. Use Framer Motion's useInView hook to trigger the animation. Use the animate function from framer-motion to transition a motion value over [DURATION_SECONDS] with a [EASING_TYPE] curve. Use the useTransform hook to format the output to [DECIMAL_PLACES] and update the display. Ensure the animation only runs once or resets based on a 'triggerOnce' prop. Provide the component in TypeScript with proper typing for the props.

Example Text Output

"The AI will create a 'Stats' component that counts up to a specific number with smooth easing as soon as the user scrolls down to that section."

More Web Components Prompts

View all →

Frequently Asked Questions

What is the "Technical Prompt for Framer Motion Viewport-Triggered Counter Lab" prompt used for?

The AI will create a 'Stats' component that counts up to a specific number with smooth easing as soon as the user scrolls down to that section.

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.