Forum Discussion
How to add a transition when hiding a layer?
Hello Walt,
I did what you describe and almost everything works. The only problem I have, is that the timeline isn't paused when it's shown. Do you know how to stop the timeline of the layer? I searched for a solution, but couldn't find it.
- JudyNollet9 months agoSuper Hero
Hi, Jeroen,
The trigger says to pause the timeline of the layer "when the timeline starts." That means nothing on the layer will show until the timeline is resumes. But the timeline can't resume, because the button for that doesn't appear.
The attached file changes the trigger to do what Walt said: pause the timeline "before the animations begin." For easier updating, I added a Cue Point to the timeline immediately before the exit animations begin. The pause trigger is set to run when the timeline reaches that Cue Point.
Also, to ensure the fade out happens right away when the resume-timeline button is clicked, I moved its start point to shortly before the Cue Point.
BTW, Hover is a built-in state. Any object with a Hover state will automatically change to that state on mouse over. Triggers that duplicate that action often cause problems.
You're also doing more work than needed. You can add text directly to a shape. Or format a text-box so it looks like a rectangle; simply adjust the fill and margins, as needed. You can also insert icons directly into the state(s) of an object. These are handy tricks to use so you only have one object to work with, instead of adding the same triggers to multiple objects. Examples of this are also in the attached file.