Push Side Drawer
Opening the menu shrinks the page and pushes it right to reveal the menu underneath
This effect uses fixed demo content, so custom text isn’t applied.
Hannah's Motion Library
Web motion effects × AI prompts
AI prompt
Clicking the hamburger icon pushes the current page to the right and shrinks it to about 86%, adding rounded corners and a shadow as if it were a card pushed aside, revealing the menu hidden underneath, whose items slide in from the left one by one and fade in; clicking again slides the page back over the menu. About 0.55 s, ease-in-out. (CSS: the content layer transform:translateX(38%) scale(.86) with transform-origin at the left middle, transitioning border-radius too; menu items staggered with transition-delay)
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 →