Just launchedPattern Paste: copy-paste WordPress block patterns and theme styles
Back to UI Elements

Draggable Bottom Sheet

£5 Standard License Unlimited projects

Mobile-style bottom sheet that slides up, drags with the finger or pointer, and dismisses when pulled past a threshold.

Draggable intermediate
4 more details
micro-interactiondraggabletouch-dragdialog-animation

About This Component

Mobile-style bottom sheet that slides up, drags with the finger or pointer, and dismisses when pulled past a threshold. Ships in three looks, vault, soft and corporate, switched by one data-variant attribute and defined entirely in CSS custom properties, so the same script serves all three. A single self-contained component: one HTML file, one stylesheet, one script, vanilla JavaScript and GSAP, no framework.

What's Included

6 items
  • Slides up with power3 easing and a dimmed, blurred backdrop
  • Drag the handle or the sheet; edge resistance on the way up
  • Dismisses past a distance threshold, springs back otherwise
  • Backdrop tap closes it
  • Start state set by GSAP, not CSS, so it opens correctly every time
  • Three shipped variants: vault, soft, corporate

Perfect For

3 use cases
  • Filter and sort panels on mobile listings
  • Action sheets and settings
  • Cart and checkout summaries

How It Works

1 section

Drag to dismiss

Draggable.create with type y and bounds keeps the sheet on its rail; onDragEnd reads this.y and either closes with a yPercent tween or springs back with back.out. The pixel y is reset on close so the next open starts clean.

Plugins Draggable
Difficulty Intermediate
Includes HTML + JS + CSS source, documentation, AI setup prompt, lifetime updates
£5

Premium UI Element

Draggable Bottom Sheet

Purchase this ui element to unlock the full source code and implementation.

£5 Standard License Unlimited projects
Browse UI Elements

Your Cart

Your cart is empty

Browse Effects