230

Floating Shapes

Circles, squares, triangles and rings float and rotate randomly in the background

BackgroundIdle loopEnterBackground decorHeadline & heroGSAPrepeatRefresh

Hannah's Motion Library
Web motion effects × AI prompts

AI prompt

A dozen or so simple geometric shapes are scattered across the background: solid circles, rounded squares, triangles, outlined rings and crosses of various sizes. On entrance they pop in one by one with a spring; afterward each keeps drifting slowly in a random direction while rotating, picking a new random target on every back-and-forth so it looks natural and never repeats; the headline sits in the middle. (GSAP: each shape gsap.to x / y / rotation with "random(-40,40)" strings, duration random(3,6), ease sine.inOut, repeat:-1, yoyo:true, repeatRefresh:true; entrance gsap.from scale:0 with back.out)

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

  1. Tap “Copy AI prompt”.
  2. 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).
  3. The AI writes code that matches your site’s colors. Paste it into your project, then fine-tune the timing and distances.

More background effects

346 more motion effectsText, buttons, cards, backgrounds, cursors… preview them all and copy AI prompts

Browse all effects →