Modal Dialog
The background blurs and dims as a dialog springs up from slightly smaller and lower
This effect uses fixed demo content, so custom text isn’t applied.
Hannah's Motion Library
Web motion effects × AI prompts
AI prompt
After a button is clicked, a semi-transparent overlay with a slight blur covers the background (fading in over about 0.35 s), and a dialog springs up from 90% size and slightly below center to the middle with a slight overshoot, containing a title, a description and Cancel / Confirm buttons; clicking the overlay or either button fades and shrinks the dialog away and fades the overlay out. (CSS: toggle an open class; overlay opacity + backdrop-filter:blur; the dialog transform:translate(-50%,-40%) scale(.9) → translate(-50%,-50%) scale(1), transition cubic-bezier(.3,1.4,.5,1); remember focus handling and closing with Esc)
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 →