Forum Discussion
TIP: Master Toggling On and Off
Another great demo that I can certainly use in my work.
With regards to slide 5, I've recreated what you've shown, where I've added a rectangle with text on it that wipes down when I click the button, and wipes back up when you click it again (toggling between hidden and normal states). But, after five secs, the rectangle automatically scrolls back up when it gets to the end of the timeline.
How would I set it to remain open until the user clicks the button to close it? Would it have to be a separate layer?
Doug1234: It sounds like there's an exit animation on the rectangle. That would always run when the timeline ends.
Remove the exit animation, and the rectangle will stay on the slide until the user clicks the button to close it. However, it will just disappear when it's hidden (instead of wiping up).
If you show the object on a layer, you could get around the issue by pausing the timeline of the layer after the entrance animation. Then another button click could resume the timeline of the layer. Another trigger would need to close the layer when its timeline ends. The Slide Layer Properties would need to be "Reset to initial state" so it would start over. Caveat: If the user re-clicks the button faster than the animations complete, that could mess things up.
It'd be simpler to put the object on a layer. Don't give it any animations. But add a Fade Transition to the layer. Or add any type of Transition. However, the transition effects don't change direction.
- Doug123416 days agoCommunity Member
Hi Judy,
Yes, there was an exit animation on the rectangle, but after I wrote my original comment, I did make a separate layer for each one, pausing the timeline on each layer when the timeline started. I've included my results in the attached file, but I see to have run into another problem. I'd like to reveal a third layer ("All correct") when both buttons are clicked and the variables are true. I thought I had it sorted out by simply having a trigger where when both buttons are "true", show the third layer. But, for the life of me, I can't figure it out. If you have a few moments, have a look at the attached file and try to figure out where I'm going wrong.
Thanks again for your lessons!
- JudyNollet16 days agoSuper Hero
No need to use the Initial state of Hidden for the objects on the layers. They won't show until the layer shows.
The attached file demos how to show the layer when a button is turned on and close it when the button is turned off.
- The "close" part is actually two triggers: one that resumes the layer's timeline to run the exit animation, and one that hides the layer when its timeline ends.
Based on your example, it looks like the slide is self-contained. In other words, it's not using buttons from a Slide Master or Layout. If what happens on other slides doesn't impact what happens in the example slide, it doesn't need variables at all.
Instead, it could just check the state of the buttons. That's shown in the second edited version of the slide in the attachment.
Other notes:
Every slide should have a Title placeholder.
Those are set up via the Slide Master and Layouts. The text in the Title placeholder is connected to the Slide Title field under the thumbnails, which makes it easier to name slides. Screen readers also look for the Title, so not having them will flag as an accessibility issue.
- For "blank" slides, place the Title placeholder above the slide area. Then someone looking at the slide won't see it, but someone using a screen reader will hear it.
If you have new questions about this post or any of my other tips and primers, it'd be better to start a new discussion. (Link back to another post as a reference, if appropriate.)
Starting a new discussion increases its visibility, which makes it more likely to get replies from multiple folks with different ways to approach the problem. Having each new question in its own discussion thread also makes it easier for others to find potential solutions when they have a similar problem.
- JudyNollet16 days agoSuper Hero
Here's another way to animate the note: insert it into a custom state of a blank shape. For details and a demo, see the attached .story file.
Here's more about animating between states.
The main disadvantage to this method is that you don't see the shape at all when you're editing the slide. That could be confusing if you pass the file to someone else (or if you forget about how you programmed it).
Related Content
- 4 months ago
- 3 months ago
- 6 months ago
- 3 months ago
- 5 months ago