Getting Togglelicious with Storyline Buttons

I always enjoy a good ELH Challenge and this week’s challenge #97 offers some great creative concepts for interactive buttons.  My submission concept can be described as an animated switch.  The interaction happens when the user clicks a round button; then, the button switches from one side of the screen to another on a “U” shaped path.  At first, I just designed the interaction so the button moved from side to side hiding\revealing a text box indicating whether the button was on the left or right side.  However, my creative sparks flew off and I thought of a change of color which would follow the button’s path.  See the sample by clicking HERE

The Recipe

The following items is roughly what you would need to create this interaction:

  1. Two Rounded Rectangle Shapes
  2. One Arch Shape
  3. One Circle Shape
  4. Two Text Boxes
  5. Two Layers
  6. One variable

Step One- Insert Shapes, Textboxes and Align Them

The hardest part (believe it or not) was aligning all the shapes so they would look as one.

Three shapes aligned as one.

Step Two- Create Layer for Path Animation

Create the layer and copy the circle shape on it.

The purpose of this layer is to display the animation path of the circle once is clicked.  This is beneficial because it allows you set the animation path from the start of the timeline on the layer.  Of course we would have to set a trigger on the base layer to hide the shape once clicked.  This layer would also change the STATES of the path shapes on the base layer .

Animation Path for Button

The circle shape is our button and once is clicked it will be sent from left to right following a Freeform Animation path as the one seen below.  You may also want a second animation path doing the exact opposite.

Layer for Animation

Step Three- Animated States

This is the main “trick” of the illusion and\or interaction.  In the sample, you see an orange path follow the button from left-to-right.  How can we do that? Easily, duplicate the normal state on each of the shapes and then duplicate the actual shape in the new state so one masks the other.  This allows you to add an animation to the masking shape making it look like it’s wiping the color off the original state.

Animated States

Step Four- Set Your Triggers

As you already know, nothing happens in Storyline without triggers. So, here’s a recount by layer.

Base Layer

Here we just want to hide the circle shape and show the animation layer once the circle shape is clicked.

Animation Layer

Below are the animation layer triggers and their timings:

Animation Triggers

By the way, at this point you want to create the “Clicked” variable which is a  True\False one.  The variable changes to “True” at the end of Animation Path 1 and back to “False” at the end of Animation Path 2.

After you have created all the triggers (except for the Show Layer one), you can go ahead and duplicate the base layer to prepare the “Orange-to-Blue” phase of the interaction.  That is when the user clicks on the circle shape and the “Clicked” variable equals “True” the shape would go onto Animation Path 2 and you would change the animated states of the shapes correspondingly.

Alright, that’s it for now ; ) You can download the story file below so you can dissect all the blabber I wrote above!

download files

Posted in Authoring Tools, Design, E-learning, Elearning Heroes Challenges and tagged , , , , .

Alexander Salas

eLearning, technology, gamification, workplace learning, instructional design and creativity are my enduring passions in life. I breathe when I create. Leave a comment, let's connect on LinkedIn and share experiences. The rest of the time I manage an LMS, eLearning communities and speak at learning conferences #humblebrag


  1. Hi Alexander,
    your site is very useful and it has a lot of nice tips about building Elearning courses.
    I’m glad to have found you 🙂

Comments are closed.