15 effects
Effects for modals
Modals are windows and notices that appear over the page: a dialog that grows from its button, a side drawer and a corner toast. They handle carts, filters, item details and action confirmations without moving people anywhere. Keep them for short content; if what goes inside needs long scrolling or a big form, give it its own page.
The modals effects
- Cookie consent bannerA discreet card in the corner that doesn't cover the site. It has three exits: accept all, keep only the necessary, or customize, which unfolds the categories with switches. The choice is saved and the notice doesn't come back.
- Toast notificationShort toast notifications slide in at the corner of the screen, stack up, and disappear on their own. Trigger them from a button or from JS with Efeitos.avisar("Salvo").
- Stacked toast notificationsNotifications stack like a deck of cards in the corner, each one a little smaller and further back. Hover over the pile and it fans open to show them all while the timers pause. You can dismiss one by swiping it sideways.
- Hold to delete confirmation dialogA dialog for actions that can't be undone, like deleting a project. The red button only confirms when held: the bar fills, the window shakes harder and harder, and when it completes it turns into a "deleted" state and closes. Let go early and the bar rewinds.
- Depth modalA frosted-glass dialog rises to the middle of the screen while the whole page recedes: it shrinks, rounds its corners, blurs and darkens as if sinking away. On close it comes back to the front.
- Bottom sheetA bottom sheet that rises from the foot of the screen and rests at half height. Drag the handle up to open it fully, drag down or flick to close. Let go midway and it finishes the motion on its own, like on a phone.
- Image lightbox with zoom from thumbnailClick a thumbnail and the photo grows from its spot to screen size while the rest fades to dark. Inside you can move between photos with the arrow keys or a swipe, zoom, and pan around the photo with the mouse. On close it flies back to the thumbnail.
- Spring drawerA side drawer that enters with spring physics: it overshoots slightly, then settles. You can grab and drag it sideways; release it with a flick or past the middle and it closes carrying the speed of your finger.
- DrawerA drawer that slides in from the right, left, or bottom over the page. It suits a cart, menu, or filters. Close it with Esc, a click outside, or the close button.
- Zoom modalA zoom modal. A button opens a window that grows from the button's position to the center of the screen while the background dims. Close it with Esc, a click outside, or the close button, and it shrinks back into the button.
- Video lightboxThe video cover opens a cinema screen: the 16:9 frame grows from the cover with a soft glow behind it while the rest of the page dims. The video starts on its own and stops when the window closes.
- Onboarding stepper modalA welcome window split into steps. The progress bar fills in segments, each step slides sideways and its items rise in sequence. The window keeps the same height across steps, so nothing jumps.
- 3D flip modalThe dialog drops from above in perspective and swings until it settles. Then it follows the mouse with a slight tilt and a light reflection, and a button flips the card to the other side, like sign in and sign up.
- Command paletteA search box at the top of the screen, opened by a button or Ctrl/Cmd + K. It filters as you type, ignores accents, highlights the match and moves with the arrow keys while a highlight glides from item to item. Enter picks, Esc closes.
- Circular reveal modalA circle is born at the exact click point and grows until the new screen covers everything. The content rises in sequence, and on close the circle shrinks back to the same point.
Other categories
Backgrounds43Text27Buttons41Cards27Inputs14Icons6Loaders27Screen7Scroll5Mouse14Images11Navigation20Sidebar22Dashboard18