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

Expert Prompt for Floating Elements with Random Scroll Physics

Customize the variables below to instantly engineer your prompt.

Required Variables

floating-elements-random-scroll-physics.txt
Act as a Generative UI Developer. Create a dynamic 'floating debris' or 'ambient particle' background component in React powered by Framer Motion. Programmatically generate [ELEMENT_COUNT] distinct DOM items of [ASSET_TYPE] (e.g., SVG icons, geometric shapes, or blurred orbs). Each individual element must possess a randomized, scroll-linked physics profile. Utilize a single `useScroll` instance, but map its progress via `useTransform` to radically different [MOVEMENT_RANGE] arrays for each element, multiplied by a seeded [VARIANCE_FACTOR]. This mathematical offset creates a non-uniform, chaotic parallax effect where items float, sink, and rotate independently at varying speeds across the X, Y, and Z axes. Ensure all generated elements are positioned `absolute`, are wrapped in a `pointer-events: none` container so they do not block page interactions, and are memoized to prevent recalculation on unrelated renders.

Example Text Output

"The AI will produce a background decoration component where multiple objects float and rotate independently at varying speeds as the user scrolls, adding organic depth."

More Web Components Prompts

View all →

Frequently Asked Questions

What is the "Expert Prompt for Floating Elements with Random Scroll Physics" prompt used for?

The AI will produce a background decoration component where multiple objects float and rotate independently at varying speeds as the user scrolls, adding organic depth.

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.