Modals

Adding "swipe to close"

17:44 · By Caleb Porzio

Level up. Big time.

Instant access to over 8 hours of content. Explore tons of course code and use it in your own apps.

Yearly

$69 /yearly

Access all screencasts and source code by subscribing on a yearly basis.

Lifetime

$149

Pay once, and get access to all future screencasting content. Forever.

Already a GitHub sponsor? Email us for a discount.

When users are on mobile devices, they expect to be able to close the modal by swiping their thumb down on the page. Let's use some bespoke Alpine code to support this behavior. We'll even go a step further and test it out an actual iPhone to make sure it feels right.

Share