<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Ben Callis on Medium]]></title>
        <description><![CDATA[Stories by Ben Callis on Medium]]></description>
        <link>https://medium.com/@bencallis1?source=rss-8e23237eb61c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*vyHpwDu43F-h_TwUUOjmxg.jpeg</url>
            <title>Stories by Ben Callis on Medium</title>
            <link>https://medium.com/@bencallis1?source=rss-8e23237eb61c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 22 Nov 2026 05:12:25 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@bencallis1/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Framer.js and the FlowComponent (a love story)]]></title>
            <link>https://medium.com/@bencallis1/framer-js-and-the-flowcomponent-a-love-story-513bb3af7a05?source=rss-8e23237eb61c------2</link>
            <guid isPermaLink="false">https://medium.com/p/513bb3af7a05</guid>
            <category><![CDATA[framerjs]]></category>
            <category><![CDATA[user-testing]]></category>
            <category><![CDATA[prototyping]]></category>
            <category><![CDATA[ux]]></category>
            <dc:creator><![CDATA[Ben Callis]]></dc:creator>
            <pubDate>Fri, 20 Jan 2017 00:56:44 GMT</pubDate>
            <atom:updated>2017-01-20T17:28:26.170Z</atom:updated>
            <content:encoded><![CDATA[<p>The following is a basic intro to framer and the framer flow component. Enjoy!</p><h3><strong>Step 1) Download files and open framer project</strong></h3><p>Download the files <a href="https://drive.google.com/open?id=0B-H7HHhlmzfPUVc3c0FhdlFpYW8">here</a> and open the locallabs_music_app.framer folder in framer studio. I have also included the original sketch file.</p><h3><strong>Step 2) Setup views</strong></h3><p>Now that we have the framer project open we need to get our views in place so we can hook up our navigation. Framer makes this super easy with their flowComponent. Create a variable called flow and set that equal to new FlowComponent.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/1205a5d181f265367329a50ac6f28f6f/href">https://medium.com/media/1205a5d181f265367329a50ac6f28f6f/href</a></iframe><p>You’ll notice the home screen is now hidden. Thats because we need to tell the FlowComponent what we want our default view to be.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0A6tbzkwu2E4ZTQikb0dkQ.png" /></figure><p>We want the Homescreen art-board to be the default view. To achieve this we need to invoke the showNext method and pass in the Homescreen art-board.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e116c6d80bc05a3ecd225c2b3db5af3a/href">https://medium.com/media/e116c6d80bc05a3ecd225c2b3db5af3a/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WkgeXAFOpzyERhz_14XN5w.png" /></figure><h3><strong>Step 3) Navigate to Albums page</strong></h3><p>The FLowComponent makes quick work of creating an managing views. Watch this…</p><p>Add click event listener to the Music layer that will invoke the showNext method. Make sure you pass in the Albums art-board to the showNext method.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/2e9bf626ad3ceb00266bd437a8aa300f/href">https://medium.com/media/2e9bf626ad3ceb00266bd437a8aa300f/href</a></iframe><p><a href="https://vimeo.com/200250911">https://vimeo.com/200250911</a></p><p>That was pretty awesome and super easy.</p><h3>Step 4) Sticky nav’s are tasty!</h3><p>The FlowComponent makes adding a sticky header and footer easy. If you have built prototypes before you know how tricky this can be. Without sticky headers and footers it’s hard to make a realistic prototype.</p><p>Once the Music layer has been clicked we need to set the</p><p>flow.header = header and the flow.footer = footer</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/3bc638b09bf8b567f4a8ba80d0e2be62/href">https://medium.com/media/3bc638b09bf8b567f4a8ba80d0e2be62/href</a></iframe><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fplayer.vimeo.com%2Fvideo%2F200251905&amp;url=https%3A%2F%2Fvimeo.com%2F200251905&amp;image=https%3A%2F%2Fi.vimeocdn.com%2Fvideo%2Fdefault_960&amp;key=d04bfffea46d4aeda930ec88cc64b87c&amp;type=text%2Fhtml&amp;schema=vimeo" width="1212" height="720" frameborder="0" scrolling="no"><a href="https://medium.com/media/cdacf207b9865a6da561a0eb6b2b6abc/href">https://medium.com/media/cdacf207b9865a6da561a0eb6b2b6abc/href</a></iframe><h3><strong>Step 5) Open Slide_out_menu</strong></h3><p>If I told you I could make an overlay and menu animation in two lines of code, would you believe me? Add an click event listener to the menu_button. Once clicked it should invoke the showOverlayLeft method. Be sure to pass in the Slide_out_menu art-board to the showOverlayLeft method.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/9f440b9fc245b631df6c2ef3d8247f0c/href">https://medium.com/media/9f440b9fc245b631df6c2ef3d8247f0c/href</a></iframe><p>Yeah that happened! If your not excited yet you should be. In eight lines of code we can navigate views, animate the menu and have a header and footer that don’t move.</p><p><strong>Sweeet!…. WAIT, </strong>what if I need a popup in the center or my menu needs to slide in from the right? don’t stress framer has you taken care of.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/07c53f2cb42f49a1777fb43dfb439450/href">https://medium.com/media/07c53f2cb42f49a1777fb43dfb439450/href</a></iframe><h3><strong>Step 6) Close Slide_out_menu</strong></h3><p>Add an click event listener to the close_menu layer and invoke the showPrevious method. We don’t need to pass in anything t0 the method. The FlowComponent already knows what the previous view was.<strong> </strong>Just another thing we don’t need to worry about</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/bec52225ff8498f7fe16eed9c1403b88/href">https://medium.com/media/bec52225ff8498f7fe16eed9c1403b88/href</a></iframe><h3><strong>Step 7) Artist Details</strong></h3><p>Add an event listener to<strong> </strong>each<strong> </strong>of the album covers that will change the view to the Artist_details art-board.</p><p>We already know how to switch pages using the FlowComponent but how would we add an event listener to each<strong> </strong>of<strong> </strong>the albums?</p><p>We would use a loop to go over the album group sublayers, it looks like this</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/fa976a85204da30521c9d27fbbfe6114/href">https://medium.com/media/fa976a85204da30521c9d27fbbfe6114/href</a></iframe><p>Loops can take some getting used to, but they are worth the effort of learning. Loops make it easy to work with lots of layers at the same time. For more information visit <a href="https://framer.com/getstarted/programming/#loops-and-arrays">https://framer.com/getstarted/programming/#loops-and-arrays</a></p><p>Before we move on we need to hide the CLOSE APP button inside the header and show the go_back_button. We do this inside the same event that we are changing the view with. Inside the album.onClick add close_app_button.visible = false and go_back_button.visible = true</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f8fdcdf65d2c94890f68cb17138a0ae9/href">https://medium.com/media/f8fdcdf65d2c94890f68cb17138a0ae9/href</a></iframe><h3>Step 8) Go back to album view</h3><p>Add event listener to the go_back_button layer and invoke the showPrevious() method. You’ll also need to hide the go_back_button and show the close_app_button</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/26d7bdc3bb26da04be0cf936999bb842/href">https://medium.com/media/26d7bdc3bb26da04be0cf936999bb842/href</a></iframe><h3>Step 7) Close app</h3><p>Add event listener to the close_app_button layer and invoke the showNext method and pass in the Homescreen art-board.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/4a36fbef04327aec9f8c0f6fafb8b5fc/href">https://medium.com/media/4a36fbef04327aec9f8c0f6fafb8b5fc/href</a></iframe><p>Shaz! We don’t want the music app header and footer to show when we are on the homepage. Lets fix that. Under the the flow.showNext(Homescreen) line of code at the top of the screen add flow.header = status_bar and flow.footer = home_footer</p><p>It should now look like this</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/0089c3b68666ee0a2a3ad6f48524b1c2/href">https://medium.com/media/0089c3b68666ee0a2a3ad6f48524b1c2/href</a></iframe><p>ok, now inside of the close_app_button.onClick add flow.header = status_bar and flow.footer = home_footer</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/50eecfd7691aa4e93c905a19278b966a/href">https://medium.com/media/50eecfd7691aa4e93c905a19278b966a/href</a></iframe><h3><strong>Step 8) Bask in your glory, you have just coded a prototype like a boss!</strong></h3><p><a href="https://vimeo.com/200260552">https://vimeo.com/200260552</a></p><p>I hope you enjoyed this article. If you have any questions feel free to reach out.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=513bb3af7a05" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>