Pricing Toggle
Switching monthly / yearly rolls each plan's price, with the featured plan standing out
This effect uses fixed demo content, so custom text isn’t applied.
Hannah's Motion Library
Web motion effects × AI prompts
AI prompt
A pricing page with a “Monthly / Yearly” pill switch at the top whose slider moves across on click; the price on each of the three plan cards rolls from the old value to the new one (about 0.6 s), the unit changes to “/mo” or “/yr”, and each card lifts gently and settles in turn; the middle featured plan is enlarged by default with a border and a “Recommended” badge. (GSAP: numbers tween a value on an object + onUpdate; card y yoyo staggered by index with delay; the pill switch uses a CSS transform transition)
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 card & group effects
346 more motion effectsText, buttons, cards, backgrounds, cursors… preview them all and copy AI prompts
Browse all effects →