Optimized for: Gemini / ChatGPT / Claude
Advanced AI Prompt for Skew-on-Scroll Velocity Effects
Use this engineered prompt to drastically optimize your workflow and output.
Required Variables
- ✦
[MAX_SKEW_ANGLE] - ✦
[VELOCITY_STRENGTH] - ✦
[TARGET_ELEMENTS] - ✦
[ORIENTATION]
skew-on-scroll-velocity-framer-motion.txt
Implement a 'skew-on-scroll' effect in React using Framer Motion's useVelocity and useSpring hooks. The [TARGET_ELEMENTS] (e.g., list items or images) should skew along the [ORIENTATION] axis based on the speed of the user's scroll. Use useScroll to get the scroll position, useVelocity to calculate the speed, and useTransform to map that velocity to a skew angle up to [MAX_SKEW_ANGLE]. Use [VELOCITY_STRENGTH] to amplify the effect. Ensure the skew returns to 0 when the scrolling stops by applying a spring with specific damping. This should create a 'liquid' or 'jelly' movement feel common in high-end design portfolios.
Example Output
"The AI will provide a hook and component implementation where elements physically tilt or distort slightly in the direction of the scroll, with the intensity based on scroll speed."