Animations & Interactions in Design: How to Build a Carousel

Building a carousel navigation element.

I know, I know, I saw the “should I use a carousel” site. While I agree with the sentiment, there are forms of carousels that can work very well. Especially the one with a clear navigation pattern.


How about learning how to build it? It’s super easy. Let me walk you through the process.



screenshot of a carousel sample


Log in to your UXPin account (or start a free trial) and let’s get started. 


1. First, we have to create the very top of the carousel together with the menu. Start with a simple box for the background. You can use search (cmd+f on Macs, ctrl+f on PCs), or just drag & drop it from the library). Next add the text, as well as all the necessary details.


Screenshot of a carousel


2. Time for the content. Add a box, text and drop in some images. Yes, it’s that easy.


UXPin sample screenshot


3. Now, select all the elements of the content part and turn it into a multistate element.



4. Multistate elements allow you to switch content within one element. That’s the foundation of your carousel. The only thing that you need now is a bunch of states. Click on your multistate element and pick “states” from the property menu. You need three states, one for each story.



5. Time to add some content to your new states. Click “edit state” in the property menu and choose “Story 2” to edit it. You can change image, text and anything that you need to make it great. Repeat this step for “Story 3” as well.


uhSDlAy5XGIbjMs5Q_q02srY3nF-Z8U0LWmaq_6q-5atOF5aZ28KGd4pP4V1gywx5ZW3hPRlstlQhcbjgGQyjFSwqXLIof1Ybopho9YBw9HiN291KhnzEUr52F4EXIJHKYGFD0o


6. Now we’re going to make your carousel interactive. Start with the “Story 2” in the navigation. On click you’ll want to change the state of your multistate element, as well as move the thick line to indicate active state of the navigation. Start with the first task.


Select “set state” of your multistate elements to “Story 2” and do it with a “slide right” animation (ease in, sine).



7. Now it’s time to move the line that indicates the active state of our menu. Create another on-click animation. This time use “move to” action and set the horizontal distance to the new location. For a better effect, you might want to set the delay to 100ms.


qmGnH32_qUCdpE0Tk467KOxxx7QuN04x1FTwlODvtKQPrkCkpdRKFGmmciW-LiVLDIYY5b5phfwgIJR-Qt1-PQuP_JZ8VfEwFQRvs4mwYufa8zyCzFKJVY3XBQH2srQnPGtJ5cw


And we’re done. Open the preview and be proud of yourself. You just built an interactive prototype of a carousel.


Hope you enjoyed this little tutorial. Now play with UXPin on your own. The possibilities are endless.

 •  0 comments  •  flag
Share on Twitter
Published on July 23, 2015 11:11
No comments have been added yet.


UXpin's Blog

UXpin
UXpin isn't a Goodreads Author (yet), but they do have a blog, so here are some recent posts imported from their feed.
Follow UXpin's blog with rss.