Blog Post

Articles
5 MIN READ

The Most Straightforward Way to Build a Tabs Interaction for Storyline (with Download!)

NicoleLegault1's avatar
NicoleLegault1
Community Member
10 years ago

Tabs interactions, also known as click-and-reveals, are a popular type of interaction for e-learning courses. Why? They’re a great way to chunk out content that belongs in the same neighborhood topically, but if you shared all that content at once it would overwhelm your learner. Tabs are also intuitive, as learners are conditioned to click on them to see what’s there. And function aside, a big plus about tabs is that you can style them in a ton of different ways, so they can work with nearly any design.

I recently shared a simple tabs interaction with the community as a free download: Storyline 2 - Simple Tabs Template.

View demo.

There are many different ways to build a tabs interaction. To build this classic example, I leaned on some key features of Articulate Storyline, like states, button sets, and slide layers.

Style Your Slide

My first step was to decide how I wanted the interaction to look. For the top of the slide, I settled on a dark, chunky header with the title text (font: Century Gothic), and for the bottom portion of the slide, I went with a light gray background with a soft gradient effect. The background was created using two rectangle shapes. At this point, my slide looked a bit like this:

I also popped into the player properties window and adjusted the player skin to make it “invisible.” How? I removed the menu, as well as all the buttons and links from the player. (Psst … don’t forget to use the slide properties to remove the “Next” and “Prev” buttons from your slide as well!)

I also adjusted the color scheme and made the entire player solid white, allowing the player to blend with the browser background color (also white). This created the “invisible” player look I wanted. The player properties window shows a preview of how the player will look, which you can see below:

If you want a quick way to get the “invisible” player look for your own projects, grab these free downloads: 3-Pack of Seamless Player Skins and 10-Pack of Seamless Player Skins. Import the player skins into your project by following these instructions: Sharing Player and Color Schemes.

Create the Tabs

Once I had styled the background of my slide, I created the tabs using rounded same-side corner rectangle shapes. I added the tab title text directly onto the shape, then styled the tab to be black with light gray text (font: Century Gothic).

Once the tab looked right, I copied it, then pasted it four times to create my other tabs. I then used the align tool from the format tab of the ribbon to align the tabs, with an equal amount of space between each one. By now my slide looked like this:

Progress, but the tabs weren’t done yet. They each needed a few states to get their interactivity to work as it should. So I selected my first tab and, in the states panel, created two new states for the tab: “Hover” and “Selected.”

Repeat individually for each tab? No way! A nifty trick is that the format painter also copies states. So with just a few clicks, I used the format painter to add the hover and selected states to all of the other tabs in my interaction. Find out more about using the format painter, and other great shortcuts, here: Do You Know These 10 Storyline Time-Saving Shortcuts?

Create the Button Set

By including the tabs in a button set, I could ensure that only one of the tabs could be selected at a time. It’s a serious time-saver!

Here’s how I created my button set: I selected all of the tabs, then right-clicked on one of the corner anchors. From the right-click menu, I selected “Button Set,” then clicked “New Set,” and gave it a name. Now, as a button set, only one of the tabs can display the selected state at a time. Here’s an article to learn more about working with button sets: A Great Storyline Time-Saver: Button Sets.

Add the Layers

With my tabs in place and button set created, my next job was to build the slide layers. I added my first layer, which I named “Tab One,” and gave it placeholder text and an image. I used grids from the design tab of the ribbon to get everything aligned perfectly. For more about using grids in your designs, read: Use Grids to Improve Your E-Learning Designs.

Once I had my Tab One layer looking just right, I used the copy layer feature to duplicate the first layer four more times. I then updated the name of each layer, and replaced the text and image.

Initially, I wasn’t going to create a slide layer for Tab One. I wanted to strip unnecessary layers to make my project file leaner, so I figured I’d put the Tab One content directly on the base layer. However, as I was building this, I discovered it wouldn’t work that way. Why? Because there’s no way to add a trigger to Tab One to show the base layer when the tab is clicked. (A trigger can show a slide layer or hide the current layer, but it can’t show the base layer.)

Set Up the Triggers

Almost done! Remember, nothing happens without a trigger, so to make the tabs interaction live, I needed to add some triggers.

For this example, I wanted to preselect the first tab so its content was visible when the interaction started. To get this to happen, I added two slide triggers:

  • The first trigger changes the state of the tab to “selected” when the timeline of the base layer starts.
  • The second trigger shows the Tab One layer when the timeline of the base layer starts.

My final step was to add a trigger to each tab to show the corresponding slide layer when learners click each tab. To save time, I used the trigger copy-and-paste feature rather than recreating each trigger one at a time. Since I have five tabs in my interaction, I ended up with five more triggers.

With that, my tabs interaction was complete and fully functional. Here’s the final product:

View demo.

Remember: Button sets are the key to creating this quick and clean interaction. Before I remembered to use a button set, I was seriously overcomplicating the process for myself. The button set saved me a lot of trouble!

Do you know an even simpler or more straightforward way to build a tabs interaction? I’d love to hear from you, so leave me a comment below.

Want to try something you learned here, but don’t have Articulate software? Download a free trial, and come back to E-Learning Heroes regularly for more helpful advice on everything related to e-learning.

Published 10 years ago
Version 1.0
  • You have literally saved my sanity! Only yesterday I created a tab interaction and couldn't for the life of me work out why the tabs weren't working like I've seen them doing (ie with only one have the selected state at one time). Button sets! Who knew?! Thank you so so much :)
    • NicoleLegault1's avatar
      NicoleLegault1
      Community Member
      Love to hear that type of feedback, Danielle, so thank you. Yes, button sets are a HUGE timesaver and once you know about them... we wonder how we ever got along without them :)
  • This is a great template ... I am using your downloaded version but I can't get Tab 1, Tab 2, etc. text to go away so that I can relabel the tabs? What am I not doing?
    • NicoleLegault1's avatar
      NicoleLegault1
      Community Member
      Hi Terri... I'm not sure I understand exactly what you mean that you can't get the tab text to go away?

      You need to go into the base layer (it's the one called Tabs Interactions in the Layers panel in the bottom right side panel) and on the Timeline there (and on the slide itself) you'll see there are 5 tab shapes, which have the text directly in the shapes. Double click the shape to change the text label inside of it. Hope this helps! Let me know if you need more help.
  • Like Terri I can't get the text Tab 1etc to go away. I found this tabs template preloaded in Storyline 2.
    went to the base layer and to the tab buttons there is the option to edit text but it does not allow you to delete what's there you can write over it but Tab 1 etc is still visibilein the background
    • EricaInge1's avatar
      EricaInge1
      Community Member
      You probably need to change the state to change the tab name (what appears on the screen).
  • Hi Nicole,

    This is an amazing article.

    My concern is the self created next and back buttons.. which layer do they be on to navigate through the course?

    Thanks,
    Gini
    • NicoleLegault1's avatar
      NicoleLegault1
      Community Member
      Hi Gini,

      The problem with using the NEXT button from the default navigation is that there is only one next button per slide, so it can only have 1 trigger associated with it, so you can't use that button to navigate from one layer to the next. You could disable or hide the NEXT button in the default navigation player so that it doesn't appear at all or it is at least inactive until all the tabs have been visited...