Forum Discussion
JeniJohnson-f06
6 years agoCommunity Member
Using a trigger to start an animation?
I thought I could use a trigger to play an animation, but I'm not seeing it as an option.
I'm trying to have an exit animation play before a layer is hidden when user clicks the "X".
DavidSchwartz-f
6 years agoCommunity Member
One way to do it would be to set a trigger for the layer to pause the timeline at a certain point, like 0.5 seconds (time depending on whether you have any entrance animations on the layer). You'd want to make it as short as possible, to prevent the user from clicking the "X" before the timeline is paused, or simply have the "X" not appear until just before the pause.
Then create two additional triggers: Resume the timeline when the user clicks the "X," and Hide the layer when the layer's timeline ends. Make the timeline short enough that it ends as soon as your exit animation is completed.