Modals are an incredibly common design pattern. We’ll show you how to create your own in Webflow.
For this example, we’ll create a pop-up that appears when someone clicks a button on the page.
I’ll use our free blog template, Escape, and just add the subscribe button and pop-up to the template. Watch the video to see how and keep reading for details!
Step 1: Add the pop-up modal wrapper
First, we’ll drag in a Div Block that will serve as the wrapper for the modal.
As you’re dragging that in, make sure it goes to the top of your site’s body — it’s easiest to do this using the Navigator pane.
Step 2: Style the pop-up modal wrapper
Once we’ve added the Div Block to the top of our page, we’ll give it a class so we can style it:
Class Name: Modal Wrapper
Top Padding: 80px
Position: Fixed, cover full
Background Color: rgba(0,0,0,0.5)
Now your screen should look like this:
Step 3: Add your sign-up wrapper
Now we’ll add another Div Block to our Modal Wrapper to actually hold our content, including our sign-up form.
Simply drag in a Div Block and drop it inside your Modal Wrapper.
Step 4: Style the sign-up wrapper
Now that we have the new sign-up wrapper inside our modal wrapper, let’s give it a class and style it:
Class Name: Signup Wrapper
Padding - All sides: 20px
Background Color: White
Step 5: Add our modal's content
With our structure in place, let’s add the rest of the content.
First, we’ll drag in a Heading (H3), some paragraph text, and a Form element.
I’m going to cut the form element down to an Email field, and create classes around the form elements.
Class Name: Form Field
Border: 2px #4aaec2
Class Name:Subscribe Submit Button
Background Color: #5cc489
(I also updated the default copy for the heading and paragraph text. Because you always want to design with real content.)
Step 6: Add a close link
Next, we’ll add a text link so people can close the modal once they’ve signed up.
Just drag a Text Link to the top of our Signup Wrapper, and give it a class with the following styles.
Class Name: Close Link
Font Size: 12px
Font Color: #999999
Step 7: Add an interaction to the modal wrapper
The final steps are all about interactions. We need to add an interaction to the Modal Wrapper, the Subscribe Button, and the Close Link.
Starting with the Modal Wrapper, we’ll add an interaction called Modal Wrapper.
We’ll set the Initial Appearance to:
That’s it! This just ensures that when the page loads, the modal doesn’t display.
Step 8: Add an interaction to the subscribe button
Now we’ll add an interaction to the Subscribe Button that will open the Modal Wrapper on click.
First, select the Subscribe button, then add a new interaction. We’ll skip the Initial Appearance and go straight to setting up the Click Trigger.
Then, we’ll add the Modal Wrapper as the element we want this interaction to affect. To do this, simply type “Modal Wrapper” in the first text field.
Now any interaction we add will affect the Modal Wrapper, not the button.
Let’s add the following for our First Click:
Since we don’t need it, we’ll leave the Second Click empty.
Step 9: Add an interaction to the close link
We’re almost done! The final piece is to add an interaction to the Close Link in the modal.
We’ll click on the link, then add an interaction to it.
Just as we did with the Subscribe Button, we want to add an interaction that affects the Modal Wrapper element.
Add the following interactions to the First Click:
Step 10: That’s it!
What we’ve done here is reproduce the interaction we created in the Modal Wrapper’s Initial Appearance, since we want this link to return the Modal Wrapper to its initial state of being invisible.
We’ve done it! If you take a look in Preview mode, you should see something that works like this:
Check out the pop-up modal in Webflow.
Zestful helps companies book fun, unique, and local group activities available through their platform. You might expect a site like theirs to scream FUN! Well they don’t disappoint. Their upbeat vibe supports their mission to help teams socialize outside the office without the usual headache that comes with event planning.
Petal is a younger company, but they stand out because design pervades the focus and direction of their marketing. Even their product (a new, no-fees credit card) features a stunning and unique design. Their website follows suit — it’s a breath of fresh air — with beautiful colors, generous whitespace, and clear, concise copy.
BankMobile’s website makes banking look hip and modern, as hard as that might sound. With bold colors, clearly presented information and a consistent feel throughout the site, we especially appreciate the unique horizontal scrolling section they use to walk through the UI on their mobile app.
Freelancers are constantly on the lookout for new tools and products to make managing their business easier — Bonsai focuses on checking as many of those boxes as possible with tools that range from invoicing and payments to proposals and contracts. With so many features in their platform, their marketing site needs to effectively explain and differentiate how their products can help freelancers. A dedicated page for each one does just that.
Bonsai gets bonus points for creating an impressive resource hub for freelancers. They share survey data about rates, best tools for freelancers, and the top places to find new work.
As an education partner, AltSchool has an important story and mission that underpins their work. Their website does a great job sharing their story with photography, copy, and a consistently communicated mission: to enable all children to reach their potential.
Ready to build a business site of your own but not sure where to start? We’ve got you covered. Check out our full business site rebuild course on Webflow University.
Did we miss any standouts? Let us know in the comments!