REFERENCE
- Gallery page: https://magpui.com/en/i/bottom-sheet-with-elastic-edges-0b678e
- First frame (image): https://dnioievkvxejjbxgwvko.supabase.co/storage/v1/object/public/media/bottom-sheet-with-elastic-edges-0b678e/shot.jpg
- Clip (mp4): https://dnioievkvxejjbxgwvko.supabase.co/storage/v1/object/public/media/bottom-sheet-with-elastic-edges-0b678e/clip.mp4
- Original post: https://60fps.design/shots/plasma-duo-style-bottom-sheet-open-interaction by Plasma
Before building, download the first frame and look at it. If ffmpeg is available, download the clip and extract frames (ffmpeg -i clip.mp4 -vf fps=2 frame-%02d.png), then study the motion frame by frame. Match what you see; the text below describes it, the frames are the truth.
BUILD: Build only a mobile bottom sheet that opens over dimmed content. The sheet has a thin light outline, generous rounded corners and a compact offer layout. Its entrance briefly stretches the container upward before it settles into its shorter resting height; a second state can expand it to show an image and a close action. Do not recreate a banking app, branding or a phone frame.
DESIGN SYSTEM: Use a near-black #141414 panel with a 1px #777777 border, approximately 32px top corner radii and 22px bottom corners where the sheet is inset. Keep 8px side insets inside a 390px reference viewport. The compact sheet occupies around the bottom 40 percent of the viewport; the expanded state occupies around 90 percent. Center a 20px medium sans heading, two lines of 13px muted #aaaaaa supporting copy, a compact action, and 10px legal/support text near the foot. Expanded media uses a dark neutral placeholder and roughly the upper half of the sheet, never a copied photograph. The backdrop is black at about 55 percent opacity.
MOTION: On open, raise the sheet from below the viewport and fade in the backdrop. Briefly overshoot the settled sheet height by approximately 120px before relaxing; target an estimated 550ms spring-like entrance using cubic-bezier(0.22,1,0.36,1). The border and rounded silhouette remain continuous while the height changes. Expand to the taller content state over an estimated 380ms, cubic-bezier(0.22,1,0.36,1), fading media in over 180ms after a 100ms delay. On dismissal reverse the vertical movement over 250ms. Timing values are implementation targets inferred from the reference, not measured source constants.
SECTIONS: Closed, opening, compact, expanded and closing states. Compact contains title, supporting copy, action and footnote. Expanded adds media and a close control at the upper-right. The content beneath stays in place and dimmed throughout.
IMPLEMENTATION: Use an accessible React dialog with Motion for translateY, height and backdrop opacity. Clip media and inner content to the rounded sheet. Trap focus, label the dialog, support Escape and a visible close button, and return focus to the trigger. Do not implement a real payment or purchase action; use a demo callback. Respect safe-area insets and prevent page scrolling while open. With prefers-reduced-motion show the final geometry immediately with a short optional opacity change. Keep the animation to a single sheet, avoiding WebGL or particle effects.
ADAPT TO THE PROJECT: Reuse existing tokens, components and fonts. Map colors to the closest existing tokens. Do not copy logos, brand names, photos or illustrations; use neutral placeholders.
SUCCESS CHECK:
- Opening briefly extends the sheet then settles it without shifting the page behind it.
- Compact and expanded states preserve a continuous rounded border and legible content.
- Focus trapping, Escape, close and reduced-motion operation all work.