Animation

principle-logo
Learn how to animate interactive user interfaces from Figma to Principle. Get to design the app flow for multiple screens, interactions, and animations. At the end of the course, you will have a beautiful prototype that you can share with stakeholders.

Getting Started with Principle


Working with Drivers & Events


Principle is a fantastic prototyping tool and really handy especially for those moments when you want to create a high fidelity animation in a short time. In this course, we will talk about Drivers, Components, Events, Scrolls and Animate. For the final project we will use our brand new design of our iOS app. On this first video, we’ll work on the projects section of the iOS app, and we will teach you how we can create a Tinder card type animation.

Downloads

To follow this course, you can download the source file, which will help you compare your progress.

Figma import

Let's go to the Figma project and select the Artboard with all the layers on it. Then go back to Principle and on the toolbar click on import. A new window will pop up. Select the Figma tab, Principle will be smart enough to realize which were the latest documents you opened on Figma. Make sure that on Document you are selecting Principle cards and as resolution choose 2x. Finally, click Import Selected Frames.
14.01.01.Getting_started_with_Principle-Figma_import

Reordering your layers on Principle

Make sure to have your cards layers on this order from top to bottom: Card 1, Card 2, and Card 3. 
14.01.02.Getting_started_with_Principle-Reordering_your_layers_on_Principle

Downsize the cards

Select Card 2 and change its Scale to 0.9 and in Card 3 change its Scale to 0.8.
14.01.03.Getting_started_with_Principle-Downsize_the_cards

Aligning to the Bottom Edge

Select the Card 3and then selectCard Level 3 from the inspector and click on Align Bottom Edges which is the button on top of the inspector. Do the same process for Card 2 and Card-Level 2. Once the card will be aligned you can delete Card Level 2 and Card-Level 3.
14.01.04.Getting_started_with_Principle-Aligning_to_the_Bottom_Edge

Events

Select Card 1 and on the middle of the card, you will spot a white button with a Thunderbolt icon on it. Click on the button and a pop up will appear with plenty of options. Select Drag Begins and an arrow will appear, point the arrow to the same Artboard. This will create a new Artboard. Lets select Card 1 from the second Artboard create a new event and choose Drag Ends and point it to the second Artboard itself. We will create a third Artboard.
14.01.05.Getting_started_with_Principle-Events

Card sequence

On Artboard 3 let's reorganize the card on this sequence from top to bottom Card 2, Card 3 and Card 1. Choose Card 2 and scale it to 1, choose Card 3 and scale it to 0.9 finally let’s choose Card 1 and scale it down to 0.8. Finally give the right Y axis to the cards, for Card 2 Change its Y axis to 154, lets select Card 3 and change its Y axis to 192.7, for Card 1 let's give a Y-axis of 231.4.
14.01.06.Getting_started_with_Principle-Card_sequence

Bullet points animation

Let's add a little bit of motion to our animation. Choose Card 3 from the second Artboard and change its Opacity to 0%. Now on the same Artboard open the pagination folder from the inspector. Select Ellipse 1 and Ellipse 2 and reduce their opacity to 40%. Then go to the third Artboard and over there select the second bullet point Ellipse 2 and increase its opacity to 100%, next select Ellipse 1 and change its opacity to 10%
14.01.07.Getting_started_with_Principle-Bullet_points_animation

Repeat the animation

Now that we have the animation for the first card done, we need to recreate the same animation for the rest of the cards and close the loop of the animation. Like that when we will finish the swipe of the third card our animation will go automatically to the beginning. Go to the third Artboard and from there select Card 2 and create an event Drag Begins then point the event to the Artboard, this action will create a fourth Artboard. Go to the fourth Artboard and from there select Card 2 create an event and select Drag Ends and point it to itself and this will create a fifth Artboard.
14.01.08.Getting_started_with_Principle-Repeat_the_animation

Artboard 4 setup

Let's choose Card 1 from Artboard 4 and change its opacity to 0%, then choose the bullets points from the Artboard, Ellipse 2 and 3 and reduce their opacity to 40%
14.01.09.Getting_started_with_Principle-Artboard_4_setup

Artboard 5 setup

Select the Ellipse 3 from Artboard 5 and change to 100% Opacity and reduce Ellipse 2 to 10%. Choose Card 2 and scale it down to 0.8. Select Card 3 and scale it up to 1 and choose Card 1 and scale it to 0.8. Now let's reorder the cards from top to bottom Card 3>Card1>Card2. Finally, change the Y-axis of the cards, choose Card 3 and change its Y axis to 154 , then chooseCard 1 and change its Y axis to 192.7 and for Card 2 change it to 231.4.
14.01.10.Getting_started_with_Principle-Artboard_5_setup

Artboard 6

Let's create our last Artboard. To do so on Artboard 5 let’s select Card 3 and add an event to it, click on the thunderbolt icon and select Drag Begins and point it to itself this will create a new Artboard. On the new Artboard select Card 3, then create an event Drag Ends and point it to the first Artboard. Like that, we will be closing the whole cycle
14.01.11.Getting_started_with_Principle-Artboard_6

Artboard 6 setup

Select Card 2 from the inspector and change its opacity to 0 %. Then select Ellipse 1 and 3 and change its opacity to 40%
14.01.12.Getting_started_with_Principle-Artboard_6_setup

Angle animation

If you want to make the animation of the cards even better, we can animate the angle of the card every time that we are swiping it. We will add Drivers to create these animations to every even screen, Artboard 2,4 and 6. Select every first card on the inspector and change Drag Vertical for Static Vertical on the Inspector. Select Card 1 from Artboard 2 and then open the drivers.
14.01.13.Getting_started_with_Principle-Angle_animation

Drivers

Select Card 1 from the Drivers timeline and create two keyframes for the Center Y and Angle properties. Let's add keyframes for both properties in these frames; 100, 187 and 274. On frame 274 change the Angle of the card to 12 and the Center Y to 120, then move the scrubber to 100 and change the angle to -12 and the Center Y to 120. Finally, repeat the same steps for the first cards in Artboard 4 and 6.
14.01.14.Getting_started_with_Principle-Drivers

Conclusion

In this section, we learned how to import from Figma, Principle’s UI, drivers, events and some basic tools that Principle has.