Object with hover state shows on layer when I don't want it to.

Jul 09, 2020

I have a presentation with a base layer that has clickable images and text that show each layer. I set these to have a hover state that faded them. 

When the user clicks on either an image or text to visit the layer, whichever object they clicked shows up on the layer (see circle graphic below- that should not be there.).

This is happening even though I've set each slide layer to hide the base layer.

How can I stop this from happening? 

2 Replies
Judy Nollet

Hi, Cris,

I was able to recreate this issue. From what I can tell, the problem is the trigger using the custom "faded" state.

  • After clicking the object, the program reveals the layer (as it should). And, initially, I can't see the object on the base.
  • However, when I stop hovering over the object that I clicked, that's when the program executes the command to return the object to its Normal state. And that's when the object appears underneath the layer.

You're right. The base object should NOT appear when the layer properties say to hide the base. I'm guessing HTML5 just gets confused, and shows the object because the program is telling it to change the state after it told it to go to the layer that hides the base. 

There are 2 ways to address this:

  • Use the default Hover state. I did that, and the problem went away.
    • You can create your Hover states by copying your "faded" states, so they'll look like what you've already set up.
    • When you use the default Hover state, you don't have to do any programming. It will automatically show that state on hover and switch back to the previous state when the hovering stops. And, for whatever reason, the layer keeps the object hidden.
    • Be sure to delete the trigger for changing to the "faded" state.

OR

  • On the layer, include an object with a fill, i.e., so the object's color covers the base layer. 
    • Again, this normally wouldn't be necessary with the "hide base" setting. It would override the issue you're encountering, though. 
    • Mostly, I mention this because it's a handy trick for when you want some of the base to show, but not all of it.

This discussion is closed. You can start a new discussion or contact Articulate Support.