Morphing Pill Nav
Press the hamburger on a floating pill navbar and it morphs into a menu panel like a Dynamic Island, links rising in turn as the page dims
This effect uses fixed demo content, so custom text isn’t applied.
Hannah's Motion Library
Web motion effects × AI prompts
AI prompt
A dark pill-shaped navbar floats at the top center of the page: an accent-colored dot and the brand name on the left, a round two-line hamburger button on the right. Pressing the hamburger: the pill first shrinks slightly to wind up, then its width and height expand together into a rounded menu panel (the corner radius stays the same, morphing like a Dynamic Island) while a translucent dark layer covers the page behind; inside the panel, four large text links (each with ↗ on the right and thin dividers between rows) followed by an accent call-to-action button and small social dots fade in from below one after another. The two lines turn into an × at the same time. Hovering a link nudges the text right and pops the arrow up-right. Pressing again (or clicking the dark background): the content fades out in reverse order, the panel shrinks back into the pill and the dark layer fades away. When idle it opens and closes on its own. (GSAP: the timeline first scales to 0.95 for about 0.12 s, then tweens width and height together with expo.out over about 0.75 s; the panel content is laid out at the expanded width so text doesn't reflow during the morph)
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 layout & page effects
346 more motion effectsText, buttons, cards, backgrounds, cursors… preview them all and copy AI prompts
Browse all effects →