Building a Navigation Component with Variables

Oct 18, 2023

Building a Navigation Component with Variables

Oct 18, 2023

notebook and phone on table
notebook and phone on table
notebook and phone on table
notebook and phone on table

The field of UI/UX design has grown rapidly in recent years as the demand for user-friendly digital products has increased. A UI/UX designer’s role is to create interfaces that are both aesthetically pleasing and intuitive to use. However, as technology advances, many people question whether a UI/UX designer needs to know how to code. In this article, we will explore the benefits and drawbacks of having coding skills for UI/UX designers, and what impact this knowledge has on the design process.

What is UX/UI Design

Framer allows you to create fully interactive and animated components, and even allows you to nest components within other components. We’re building a navigation bar component for a website that will contain two different kinds of nested components, with their own unique interactions. Our project will contain a Navigation bar that contains various nested components, namely five Nav items and one Shopping cart component. The design of our nested components, the nav list item and the shopping cart, will impact how we design our navigation bar. For this reason, an optimal workflow includes starting with the 'deepest' nested component and building up from there.

Nesting components

Once we have our two components ready, we can start creating the component in which we will nest these. Draw your navigation bar, select it on the canvas and click the Component tool in the Toolbar. To nest a different component in our new component, just drag any other component to the Component Canvas and place it within your designed navigation bar.

Triggering interactions from the navigation bar

Back on the main canvas, we’d like to be able to tap 'Clothing' and navigate to an entire new Screen. If you’d connect the component using the Prototyping Connector to a new screen, we could set up an Interaction. However, this would be triggered if we tap anywhere within our component. This isn’t what we want to do, as we want to trigger this transition only from a specific element. This is where Event Variables come in, which are special types of Variables not attached to properties (like opacity or fill) but instead to events.

The field of UI/UX design has grown rapidly in recent years as the demand for user-friendly digital products has increased. A UI/UX designer’s role is to create interfaces that are both aesthetically pleasing and intuitive to use. However, as technology advances, many people question whether a UI/UX designer needs to know how to code. In this article, we will explore the benefits and drawbacks of having coding skills for UI/UX designers, and what impact this knowledge has on the design process.

What is UX/UI Design

Framer allows you to create fully interactive and animated components, and even allows you to nest components within other components. We’re building a navigation bar component for a website that will contain two different kinds of nested components, with their own unique interactions. Our project will contain a Navigation bar that contains various nested components, namely five Nav items and one Shopping cart component. The design of our nested components, the nav list item and the shopping cart, will impact how we design our navigation bar. For this reason, an optimal workflow includes starting with the 'deepest' nested component and building up from there.

Nesting components

Once we have our two components ready, we can start creating the component in which we will nest these. Draw your navigation bar, select it on the canvas and click the Component tool in the Toolbar. To nest a different component in our new component, just drag any other component to the Component Canvas and place it within your designed navigation bar.

Triggering interactions from the navigation bar

Back on the main canvas, we’d like to be able to tap 'Clothing' and navigate to an entire new Screen. If you’d connect the component using the Prototyping Connector to a new screen, we could set up an Interaction. However, this would be triggered if we tap anywhere within our component. This isn’t what we want to do, as we want to trigger this transition only from a specific element. This is where Event Variables come in, which are special types of Variables not attached to properties (like opacity or fill) but instead to events.

More blogs

More blogs

More blogs

More blogs

HorizonX By @MrSid

HorizonX By @MrSid

Made in @Framer

© 2024

© 2024

HorizonX By @MrSid

Made in @Framer

© 2024