Building a Navigation Component with Variables
부산 수영구 즐거운수학학원, 백현정 선생님
학원소개? 천안 LAB수학
천안 LAB수학은 양철환 선생님이 20년간 운영하고 있는 학원입니다. 서울대합격생을 엄청 많이 배출해냈어요. 줄글로 이어지는 인트로가 들어간다 세네 줄 정도 들어가면 적절하지 않을까 여기 할 말이 얼마나 많을까 글쎄 저도 잘 모르겠네요? 그래도 네줄 이상은 되어야 뭔가 섹션을 따로 빼 준 이유가 있을 것 같다는 생각이 듭니다 ㅎ_ㅎ_ㅎ
Navigation is key within any digital interface. Smart Components enable us to create custom interactive navigation components that work perfectly with the rest of your prototype.In this guide, we will cover the concepts of nesting components, adding events to elements in a component using Event Variables, and passing these through your components. One of the main benefits of using nested components is that it provides full control over its states, such as unique hover states of elements within another component.
Starting at the atomic level
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.
(주) 매스프레소 | 콴다수학코치
© 2023 Mathpresso Inc. All rights reserved.