Scroll Rotating Cube
A 3D cube rotates as you scroll, with a different keyword on each face
This effect uses fixed demo content, so custom text isn’t applied.
Hannah's Motion Library
Web motion effects × AI prompts
AI prompt
A 3D cube in the center of the screen with a keyword on each of its six faces, each face in a different theme color: as the user scrolls down, the cube is viewed slightly from above (rotateX −20°) and rotates around its vertical axis, turning 270° over the scroll so each face comes to the front in turn. (GSAP ScrollTrigger scrub: the cube transform-style:preserve-3d, six faces built with rotateY / rotateX ± 90° plus translateZ(half the edge length); tween rotationY on scroll)
When you copy it, a note to “match the site’s existing theme colors” is added automatically, so you don’t need to specify colors.
How to use it
- Tap “Copy AI prompt”.
- Paste it into an AI such as ChatGPT or Claude, and tell it which element on your site to apply it to (for example, the homepage headline or a buy button).
- The AI writes code that matches your site’s colors. Paste it into your project, then fine-tune the timing and distances.
More shape & svg effects
346 more motion effectsText, buttons, cards, backgrounds, cursors… preview them all and copy AI prompts
Browse all effects →