- Overview
- Transcript
2.1 Interactions and Transitions
Scrolling, manipulating and linking to different views are fundamental interactions for user interfaces. This section begins hands-on, explaining the process behind creating interactions for objects, and transitions between different states of an animation.
1.Introduction2 lessons, 03:47
1.1Course Overview01:00
1.2Introduction to Principle02:47
2.Principle Basics3 lessons, 10:01
2.1Interactions and Transitions03:04
2.2Custom Animations04:08
2.3Drivers and Keyframes02:49
3.Prototyping Interfaces2 lessons, 14:54
3.1Images and Layout07:54
3.2From Static to Dynamic07:00
4.Conclusion1 lesson, 01:21
4.1Conclusion01:21
2.1 Interactions and Transitions
So far, we've been working with one art board in Principle. You can actually use multiple art boards to create multiple screens for your designs. For example, I have two art boards here with two different screens. And selecting each of these art boards allows me to choose which screen to preview in the preview window, okay. So, let's make our content more interactive. Say for example, I have a list of bars here and I wanted to be able to scroll in the preview window. First of all, I'm going to select all the layers by hitting shift, so select them all, group them. And then, we're going to change the properties of this group. In the inspector panel, there's a setting here called static horizontal and static vertical. This is why we couldn't allow to change interactivity of the group. We're going to set the scroll vertically. Now watch as we touch it into our preview window. It's allowing us to scroll but it's not letting us scroll through the full thing. To do this, we're going to have to change the way our group works. Unlike sketch and Photoshop, the size of a group is independent of what's actually in the group. As you can see, there's still some layers flowing out, but the group size is different. This is because this allows the group to be of that size and everything that isn't within that size. That's overflowing out of the group, will scroll. Now, it isn't limited to scrolling. You can change it to other settings like dragging. Which is neat, if you want to create custom interfaces. You can even set it to something called pages. It's like a combination of dragon scroll but it's like scroll snapping. So if you scroll, it snaps to a certain point in the scrolling. Really useful, if you want to create page designs. Watch as I resize the contents of the group and then scroll across. Now as I've selected Clip Sublayers in the Inspector panel, you'll notice that the group is cropped in the preview window. And allows us to scroll anything that overflows. This is neat if you want to create a scroller, slider or anything of that kind. Next, let's try and create an interface that allows us to hop from one screen to another. Say we're creating a button, that allows us to switch from these two dots to the scrolling bars that we had earlier. To do this, click the lightning bolt and select one of these options, here but when you select it, make sure you click and hold. Like dragging something out of that little circle. Notice, how Principle has added an arrow on top of the interface, to notify that that button allows us to go to that screen. Let's do the same for the other layer here. Let's say we want to click these bars to go back to the other screen, just drag and hold drop then. We can click our group to go back and forward between the screens. Just like that.