<?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 Ondřej Šraděja on Medium]]></title>
        <description><![CDATA[Stories by Ondřej Šraděja on Medium]]></description>
        <link>https://medium.com/@sradejaondrej?source=rss-6ae995475da5------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*mg0ACsTvGZgyTUzLQ4JMbg.jpeg</url>
            <title>Stories by Ondřej Šraděja on Medium</title>
            <link>https://medium.com/@sradejaondrej?source=rss-6ae995475da5------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 06:04:15 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sradejaondrej/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[Principle App: how to anchor anything in your animation]]></title>
            <link>https://blog.prototypr.io/principle-app-how-to-anchor-anything-in-your-animation-5d22feca359c?source=rss-6ae995475da5------2</link>
            <guid isPermaLink="false">https://medium.com/p/5d22feca359c</guid>
            <category><![CDATA[sketch]]></category>
            <category><![CDATA[principleformac]]></category>
            <category><![CDATA[ui-design]]></category>
            <category><![CDATA[design]]></category>
            <category><![CDATA[anchor]]></category>
            <dc:creator><![CDATA[Ondřej Šraděja]]></dc:creator>
            <pubDate>Tue, 28 Mar 2017 20:59:04 GMT</pubDate>
            <atom:updated>2017-03-29T06:29:28.905Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xDOJEkZp-GJRlncNEdHrvA.png" /></figure><p>Well, to be honest with you - there are no anchors in the Principle App. But before you begin to searching the Adobe website for the After Effects pricing, I&#39;ve got fully working workaround ready for you. And what more - it really is simple.</p><h3>Story behind</h3><p><em>If you just want a step-by-step tutorial, you can skip this section.</em></p><p>Last three days I was solving a pretty simple problem - I had a perfect idea how a menu in my iOS app concept should work but I was not able to reproduce it in Principle. Why? Well, because Principle doesn&#39;t support anchors.</p><p>What I wanted to do was a “swing” animation, where this menu would swing into the frame from the left side turning itself around one fixed corner.</p><p>Don&#39;t take me bad - I really love Principle. It is giving me the same pleasant feeling as Sketch does while working with it. But as this app is for Mac only and is pretty young and fresh, there is not that same huge community that Adobe has, means it is not so simple to get an answer for a particular problem. That&#39;s why I&#39;m typing this post.</p><p>But in the end there is one place where you can ask any question - Facebook group “Principle”. It is full of capable and willing to help designers (such as Reza who helped me with my problem - thank you once again), so don&#39;t hesitate to visit it.</p><h3>Step-by-step tutorial for “anchoring”</h3><p>Let&#39;s say that we want to do a swing animation I&#39;ve described above (but this workaround will work for any type of anchoring, even when you want to anchor whole object).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/1*m6eC5NyfwLtR4Akd8eABjA.gif" /><figcaption>What we expect.</figcaption></figure><h4>Content setup</h4><p>Ok, so we will need two Artboards. Both will contain 1) green rectangle and 2) blue rectangle.</p><p>We will turn the blue one on the Artboard 1 90° counterclockwise and will align it&#39;s top to the left side of green rectangle.</p><p>This may seem as everything we need, right? But if you&#39;re gonna try to create animation of this setup you will end up with something like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/1*LshT3dX4vdSzVdOzW7O3mQ.gif" /><figcaption>Wrong movement caused by default center anchoring.</figcaption></figure><p>I made this animation slower so it is more noticeable. Look at the top left corner of the screen. Do you see how it is overlapping?</p><p>You can of course solve this by increasing the size of the blue rectangle but in case that green layer contains something that can&#39;t be covered, you are still in trouble (like the status bar in my case).</p><h4>Changing the anchor</h4><p>Now we know what&#39;s happening and we also know that we need to anchor that top left corner. But how to do that?</p><p><strong>1. Group layers that should take part in animation</strong></p><p>To perform our workaround we need to group moving layers. In our case it is just the blue one. That&#39;s because we can change the interactive area for groups.</p><p><strong>2. Change interactive area</strong></p><p>Now we will use interactive are to simulate an anchor. In our case, we will adjust it so it covers only one pixel in the top left corner of both blue layers on both artboards.. Well, top left corner of both groups to be exact as we are changing the interactive area of the group now.</p><p>It will look like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zk7pSOwwQa71DAdfRL3WaA.png" /><figcaption>Changing the interactive area.</figcaption></figure><p><strong>3. Press play!</strong></p><p>Congratulations! You just created desired anchor. As this seems as a pretty small issue, it can block also really complicated animations.</p><p>And if I haven&#39;t described anything clearly, you can of course download source file for this example here: <a href="https://goo.gl/YdA59D"><em>Google Drive</em></a></p><p>If this post was helpful for you, please hit the heart bellow so more people can profit from it. Thank you.</p><p><strong>Stay updated. Follow me. Become my friend.</strong></p><p>I&#39;m continuously adding posts regarding my work to my <a href="http://instagram.com/sradejaondrej">Instagram</a> account. You can find me on <a href="http://twitter.com/sradejaondrej">Twitter</a>. And you can always send me an <a href="/service/mailto:sradeja.ondrej@gmail.com">email</a>.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fupscri.be%2Ff51076%3Fas_embed%3Dtrue&amp;dntp=1&amp;url=https%3A%2F%2Fupscri.be%2Ff51076&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=upscri" width="800" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/ed6399974de6e1c6fa5f3851dd966fad/href">https://medium.com/media/ed6399974de6e1c6fa5f3851dd966fad/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5d22feca359c" width="1" height="1" alt=""><hr><p><a href="https://blog.prototypr.io/principle-app-how-to-anchor-anything-in-your-animation-5d22feca359c">Principle App: how to anchor anything in your animation</a> was originally published in <a href="https://blog.prototypr.io/">Prototypr</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>