Blog · Tips & tricks

Make a pop-up with layers and one trigger

Build a click-to-reveal pop-up in SCORMCraft: put the content on a layer, show it with one Quick add trigger, add a close button, and test it.

A pop-up is the simplest interaction in eLearning and one of the most useful. A definition, a tip, a “why does this matter?” panel: extra detail for the learners who want it, without cluttering the slide for those who don’t.

In SCORMCraft, a pop-up is a layer and a trigger. The layer holds the content. One trigger shows it. Here’s the whole build, plus a close button and the details that make it work well.

How layers work

A slide has a base layer: everything you normally see. A layer is extra content that sits over it, hidden until a trigger shows it. One slide can have several layers, one for each pop-up or piece of feedback.

Layers keep the learner on the same slide. That’s the difference from jumping to a new slide: the content they were reading stays right there behind the pop-up.

Step 1: add the button

On the base layer, add whatever the learner will click:

  • a Button (it starts out labelled Continue, so change the text to something like What counts as a refund?),
  • or a Hotspot, an invisible clickable area, if you want a part of a picture to be clickable.

Name it. Open Layers in the status bar and, in the Objects list, double-click its name or press F2. Refund button is easier to find in a trigger than Shape 3.

Step 2: build the pop-up on a layer

  1. In the Layers panel, click + (New layer). The bar above the canvas says Editing layer Layer 1, and the base layer fades. Anything you add now goes on the layer.
  2. Rename the layer: double-click its name or press F2. Call it something like Refund pop-up.
  3. Build the panel: a Rectangle from the shapes menu for the background, Text for a heading and a short explanation.
  4. Click Back to base layer.

The faded base layer helps you place the panel so it doesn’t hide anything the learner needs while it’s open. If you want to see the base layer clearly while you work, the eye icon next to a layer shows or hides it in the editor.

Step 3: the one trigger

Back on the base layer:

  1. Select the button.
  2. Click Triggers in the toolbar (⌘⇧T).
  3. Choose Quick add → Show layer when clicked.

That’s it. The trigger reads as a sentence, so you can check it at a glance: show the layer when the user clicks the button. Press ⇧F5 to preview from this slide and click the button.

Show layer when clicked only appears once the slide has a layer, which is why the layer comes first.

Add a close button

The pop-up opens. Learners also need a clear way to close it. That’s one more trigger, on the layer:

  1. Select the pop-up layer in the Layers panel to edit it.
  2. Add a Button labelled Close, and name it Close button.
  3. Click Triggers, then + New trigger.
  4. Under Do this, choose Hide layer as the Action.
  5. Under When this happens, choose The user clicks an object, then the close button as the Object.
  6. Click OK.

The sentence at the bottom of the dialog sums up the trigger before you save it, which is a quick check that you picked the right object.

Details that make a pop-up work

Leave “Run only once” unticked. The New trigger dialog has a Run only once each time the slide is visited option. A pop-up should open every time the learner clicks, so leave it off.

Keep the content short. If a pop-up needs scrolling, it’s probably a slide.

Make the button say what’s behind it. More and Info make learners guess. What counts as a refund? tells them whether to click.

Don’t hide essential content. Learners skip optional clicks. Anything they must know belongs on the base layer.

Don’t rely on hover. SCORMCraft has a hover event (The user hovers over an object), but phones have no hover. For a pop-up, use a click.

Test it by keyboard. Every button that opens or closes a pop-up must be reachable without a mouse. Preview the slide and try opening and closing the pop-up with the keyboard alone. Our accessibility checklist has more.

Several pop-ups on one slide

For a “click each item to learn more” slide, repeat the pattern: one layer and one Show layer trigger per item. Name every layer and button in pairs (Step 1 button, Step 1 pop-up), and the trigger list stays easy to read.

The Layers panel can Duplicate layer, so build the first pop-up carefully, duplicate it, and change the words. Slides with layers show a layer count on their thumbnail in the slide panel, so you can see where your pop-ups are.

Once pop-ups feel easy, the same layer-and-trigger pattern carries over to feedback and branching. See how to build a branching scenario, and the help pages on Layers and Triggers & variables.

Leave Articulate. Keep every course.

Import a Storyline file or a SCORM package, or start from a template. Free and open source, with nothing to renew.