Animated Slide-Up Modal for Next.js Apps
A mobile-friendly slide-up modal with swipe-to-dismiss. Ideal for mobile-first web apps.
Why use this Mobile-First component for Indie Hackers?
Standard centered modals feel completely broken on iOS and Android. This component slides up from the bottom sheet style, allowing natural thumb-reach and satisfying swipe gestures.
Unlike static modals, this component integrates Framer Motion to provide fluid micro-interactions that increase conversion rates and reduce bounce rates. Best of all, you can save hours of UI engineering by copying the code block above directly into your React or Next.js app.
How it works
The modal-2 ships as a single React component you install via the ogBlocks CLI. Under the hood it leverages Framer Motion's motion primitives for GPU-accelerated transforms and Tailwind CSS utility classes for zero-runtime styling. The result is a component that animates at 60 fps while adding minimal bundle weight.
SEO & Performance Benefits
Because animations are powered by CSS transforms (not layout shifts), this modals component maintains excellent Core Web Vitals scores. It won't hurt your LCP, CLS, or INP — making it safe to deploy on high-traffic landing pages and SEO-critical routes.
Frequently Asked Questions
How do I install the Animated Slide-Up Modal for Next.js Apps in my project?
Run the CLI command shown above to add Animated Slide-Up Modal for Next.js Apps to your project. Ensure Framer Motion and Tailwind CSS are already configured in your React or Next.js application.
Is the Animated Slide-Up Modal for Next.js Apps mobile responsive?
Yes. Every component is built with mobile-first Tailwind CSS utility classes, so it adapts smoothly across all screen sizes from phones to ultra-wide monitors.
Can I customize the mobile-first theme and animations?
Absolutely. You own the full React source code (JSX/TSX), so you can modify Tailwind classes, swap colors, and fine-tune Framer Motion transition parameters to match your brand's mobile-first aesthetic.
Who is the Animated Slide-Up Modal for Next.js Apps designed for?
This component is primarily built for Indie Hackers. It addresses common UI challenges like visual hierarchy, user engagement, and conversion optimization — all while maintaining clean, maintainable code.
Does this modals component affect Core Web Vitals?
No. The modal-2 is built with motion for animations and Tailwind CSS for styling — both tree-shakeable and lightweight. It won't add meaningful bundle weight or hurt your LCP, CLS, or INP scores.
More Modals components
You might also like
Animated Table of Contents for React
Auto-generated, scroll-linked table of contents with smooth active state animations.
Minimal Animated Button for React
A clean, minimalistic button with subtle micro-interactions for modern UIs.
Animated FAQ Accordion for React
A beautifully animated accordion component for FAQ sections. Built with Framer Motion and Tailwind CSS. Copy-paste ready for React & Next.js.