Donut Chart Segments
A donut chart draws segment by segment as the legend slides in
This effect uses fixed demo content, so custom text isn’t applied.
Hannah's Motion Library
Web motion effects × AI prompts
AI prompt
A donut chart entrance: starting from the top, the first category's arc draws clockwise, then the next segment continues from where the previous one ended, completing the circle in turn with small gaps between segments, each in its own category color; the total and title sit in the center, and the legend slides in from the right item by item. (GSAP: each segment is a full circle, drawn over its range with DrawSVGPlugin's drawSVG "start% start%" → "start% end%"; the SVG is rotated -90deg so it starts 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
- 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 →