Zoom States - Clicking to zoom in & out
Mar 22, 2018
By
Gary Turner
Hi,
I have an image which I have created a zoom state for, so that when a user clicks the image it zooms in. However I want the user to be able to click the same image when zoomed in, to then have it return to a normal state.
Issue is, the triggers act against each other so the image then does not zoom in or out when selected. I have simple triggers:
change state of image to zoom when selected
change state of image to normal when selected & image state = zoom
I am not using the zoom image feature as this makes the image zoom in and it is displayed in a weird way (picture isn't central, but instead zooms out and over the player)
Anyone else have this issue?
4 Replies
I would simply add the zoomed-in view to the built-in Selected state. That way, you don't need triggers to toggle the two views.
That's a good way of having the image zoom in. Although I am struggling to then have it zoom out when selected again.
Hi Gary,
Is it not zooming out when it's in the Selected state for a second time, or it's not zooming out once it's selected? Could you share your .story file here so we can take a look at your states and triggers?
Using a true/false variables to show/hide layers works for me.
On the base layer, you can use rectangles as hotspots for the true/false trigger to show the layer. You can use a Hide layer trigger with the true/false variable to hide the layer.
On the layer, add a trigger to pause the time line and add a hide layer trigger on the image, in case the user clicks the image.
This discussion is closed. You can start a new discussion or contact Articulate Support.