Previous Steps

How to Create a button as the trigger for the action?

Next Steps

How DO I Delete a Function code in the Timeline?

How to Apply Show and Hide function to an item?

hiCreo / Resources / Help Center / How-to-Apply-Show-and-Hide-Function-to-an-Item

1. Open Your Presentation

Start by opening the presentation you want to edit in the hiCreo.ai editor.

2. Select a Target Item

Choose the item (e.g., image, video, audio player) you want to apply the show and hide function to. Click on the item, then click the “Code” bubble menu to open the Code box.

3. Add the Functions

    Option 1: Hide an Item When the Page Starts and Show It After a Certain Time
  1. In the Code box, drag and drop the “When Page start” block from the “Events” section into the assembly area.
  2. Drag and drop the “hide (self)” block from the “Looks” section below the “When Page start” block. The blocks should snap together.
  3. Drag and drop the “wait (1) seconds” block from the “Control” section below the “hide (self)” block. Adjust the wait time as needed. The blocks should snap together.
  4. Drag and drop the “Show (self)” block from the “Looks” section below the “wait (1) seconds” block. The blocks should snap together.
    Option 2: Hide and Show an Item Using a Trigger (Button or Item)
  1. In the Code box, drag and drop the “When Page start” block from the “Events” section into the assembly area.
  2. Drag and drop the “hide (self)” block from the “Looks” section below the “When Page start” block. The blocks should snap together.
  3. On the slide, select or create a trigger item, then click the “Code” bubble menu to open the Code box.
  4. Drag and drop the “When this item (clicked)” block from the “Events” section into the assembly area.
  5. Drag and drop the “show (self)” block from the “Looks” section below the “When this item (clicked)” block. The blocks should snap together.
  6. Click on “self” and select the target item from the dropdown list.

4. Preview the Changes

To ensure everything works as intended, click on “Preview” and select “Current page” to test the changes.

*To learn more about visual block-based programming and access advanced tutorials, please visit Scratch or search for “Scratch programming tutorials” on YouTube.