From the course: Principle for UX Design (2019)

Unlock the full course today

Join today to access over 22,500 courses taught by industry experts or purchase this course individually.

Constrain drivers

Constrain drivers - Principle Tutorial

From the course: Principle for UX Design (2019)

Start my 1-month free trial

Constrain drivers

- [Man] In the previous exercise, we created a driver that controlled the scrolling of some content across a screen. There was one small problem though, the controller for the scroll bar could be dragged right off the screen and this is obviously not a good thing. In this exercise I'm going to show you how to correct that problem and constrain the motion of the thumb to the scroller area. Now in this exercise what I want you to do is to open the constrain file found in your chapter download and we'll get going. So what we have here is a scroller. Now this is the scroll area this item here. So if I twirl down art board and select base, that's the scroll area, and the thumb is that little purple thing in the middle, there, and it has to be kept between the top and the bottom of the base element. Now we know that if we were to assign a driver to this we'd be able to just drag it all over the place so that's not good, we've got to stop it. So I'm going to show you a little teacher trick…

Contents