174

Falling Petals

Petals drift down spinning, and the cursor blows them away

BackgroundIdle loopHover & clickBackground decorHeadline & heroCanvasCanvas particles

Hannah's Motion Library
Web motion effects × AI prompts

AI prompt

Dozens of petals drift slowly down from the top of the background, each swaying side to side, flipping (scale is used to fake turning over) and spinning, with slightly varied speeds and sizes; when the cursor passes, nearby petals are blown away according to its direction and speed, then gradually return to falling naturally. Can be swapped for snowflakes, raindrops or other weather particles. (Canvas 2D: each petal has a position, velocity, angle and sway phase; cursor velocity = the difference between this frame's and last frame's position, petals within range get a push based on distance that decays over time; petals that fall off the bottom respawn at the top)

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 →