Turn your Figma designs into responsive prototypes - Anima Blog
Product Updates

Turn your Figma designs into responsive prototypes3 min read

Reading Time: 3 minutes A step-by-step guide on how to create responsive prototypes with Figma and Anima

Turn your Figma designs into responsive prototypes3 min read

Reading Time: 3 minutes

Designing for different screen sizes is essential for creating the best user experience. In this article, we will show you how to create responsive prototypes with Figma and Anima.

Turn your Figma designs into responsive prototypes

Responsive prototypes in 3 steps:

  1. Apply Constraints
  2. Connect Breakpoints
  3. Share responsive prototypes

1. Apply Figma’s Constraints 📌

Constraints show how elements should respond as you resize their Frames. This helps you control how your design looks across different screen sizes and devices.

How to do it? It’s simple— Pinning elements!

  • Constraints relate to the containing frame.
  • You can’t apply constraints to Groups.
  • Left / Right / Top / Bottom / Center — Will keep the layer size fixed and pin it to the selected direction of the parent Frame.
  • Left and Right / Top and Bottom — Will keep padding from both edges, stretching the layer’s size.
  • Scale — Will keep the layer size and position as a percentage of the Frame’s dimensions.
GIF showing how to play with the layout to see the behavior of the constraints in Anima

Play with the layout to see the behavior of the constraints

💡 Tip for responsive images

When applying constraints to an image, we want to ensure that the image keeps its ratio and doesn’t stretch. Simply select ‘Fill’ for the fill image type.
That way, the image is always centered, with as much image showing as possible, but never loses its proportions.

GIF showing a tip how to constraints with Anima and prototyping

💡 Tip for images — with constraints, ‘Fill’ is the best option for responsive prototypes

GIF showing constraints in prototyping with Anima

Pinned the image to top+left+right

2. Add Breakpoints with Anima 📱🖥

Breakpoints are the point at which your design adapts to different screen sizes.

With Anima, it is super easy to connect several screen sizes on the same screen. So when sharing your design with your team, stakeholders or clients, you simply share a single link with all screens connected as one.

Breakpoints are where the design jumps between mobile, tablet and desktop. The constraints are how it’s going to behave in between the breakpoints.

How to add breakpoints:

  1. Start by installing Anima for Figma plugin.
  2. Open Anima’s plugin, click the plus icon (+) next to breakpoints, and select all the frames you want to connect.
  3. Select one of the frames, and click ‘Preview in Browser’ to see it running.
GIF showing how to create breakpoints in prototyping with Anima

Connecting frames with breakpoints

💡 How does it work?

Design for the smallest size for each breakpoint. Let’s say for example — 320px for mobile, and 1024px for desktop. That means, for a screen size between 320–1023px, you’ll see the mobile design, and for screens over 1024px, you’ll see the desktop design. You can create and connect as many breakpoints as you like.

3. Share a Responsive Prototype 📤

Figma allows you to design with responsive superpowers. But when it comes to responsive prototypes — you need Anima.

Figma’s prototype is an image-based prototype, so it can’t run the native responsive features in it.

Use Anima to share responsive prototypes with Figma’s constraints and Anima’s breakpoints. Anima’s prototypes are code-based, and they can behave the way the final product is supposed to.

You can even take it one step further and share the prototype’s React or HTML code with your developers (Read more here).

How to share a responsive prototype?

  1. After previewing your prototype in the browser, sync your design by clicking the button ‘Sync to Project’.
  2. You can always preview it on Play-mode in Anima.
  3. Click the ‘Share’ button, and choose your share preferences. You can share it with your team by inviting members to collaborate in Anima. Or to share it with a public link.

As always, we’re excited to hear your feedback!

Join the discussion or show off your designs on Facebook, Twitter, Slack, Instagram. Vote for new features at UserVoice.

Stay creative!
❤️ Anima team

|

Co-founder & CPO

UI/UX master with a keen eye for user journeys. Working on improving the handoff from design to code and creating better interfaces. A huge fan of music festivals and a chocolate lover.

Leave a comment

Your email address will not be published. Required fields are marked *