Forum Discussion
Layers and triggers
Hello,
I've had trouble with layers in the past and looking for some tutorials or advice on how to get my head around how these two features work together.
I created a page with 4 layers and when I created in the past the items on layers 2-4 were not displaying, amazingly they are displaying. So basically I have a background image, created a trigger when the user clicks on button 1, layer one displays.
I then added an image on layer 1 and a trigger that would display when the user clicks or mouses over on the picture to show another element on the page.
What am I doing wrong? I'm stumped.
3 Replies
- DaveCoxCommunity Member
Hi Mimi,
Instead of using a trigger to change the state of the layer to hidden, set the initial state of the layer to hidden.
Then when you hover over the photo, the hidden layer will appear.
I've made this update in your file for you to review.
Dave
- mimiHall-410461Community Member
Hi Dave!
Thanks for the help. I am going to look at this and see what happens. You are very kind to reply.Mimi
- WaltHamiltonSuper Hero
I think your biggest problem is trying to lump layers and triggers together and figure out how they work together.
Think of yourself as the operator of an overhead projector, alongside someone giving a sales presentation. When she says, "Show the other color.", you slide a transparent sheet over what is on the projector. It covers all or part of what is there, but in a different color. you can slide it back and forth (at her command), and show various options.
What she tells you to do represents the triggers (actions), which are completely independent of the layers (transparent sheets you slide back and forth). Other action she gives you might be "Hold up the cow", or "Turn off the projector."
The real problem I see is that of making things visible. In addition to Dave's suggestion (probably the best option), I have added some other variations. In the attached sample, Layers 1 and 3 feature hovering, while layer 2 uses a click on the picture.
Related Content
- 9 months ago
- 9 months ago
- 9 months ago