Forum Discussion

SuzanneNeafus's avatar
SuzanneNeafus
Community Member
4 months ago

Can you disable hover state once an object is visited?

Here is the scenario. 

My project uses Joshua Brucks's Dynamic Buttons.   

We are finding them to have a bit too much animation, especially on slides with multiple buttons. 

The thought is that this would be less if the animation weren't shown on the hover state, the object had already been visited.

As I type this out, I think I may have a solution.  Instead of using the built-in hover states, create two custom states with a variable that tracks the visited state. 

State One is triggered when they hover but haven't visited the object, while State Two is triggered if they have seen the content. 

Additional thought: Is the variable really needed or can I just reference the object state and say if visited then/else.)



Hmm.... 

I won't be able to test this out until tomorrow, so I'm choosing to post this just in case I need help later. 
 

Thanks


Suzanne

5 Replies

  • SuzanneNeafus​:  As shown in RonPrice​'s solution, objects pasted into built-in states are layered on each other. This image shows the layering:

    Something pasted into the Visited state will cover something in the Hover state. 

    However, it sounds like your Hover state has animations around the perimeter of the button, and the Visited state doesn't cover that. 

     

    ⚠️ UPDATE 2025-08-14: The text below was in this reply when it was first posted. However, I just tested the instructions and couldn't get them to work. So I think it's best to just design any Hover state so it won't interfere with the Visited state. ⚠️ 

    If that's the case, here's a great solution that I saw posted by Nedim​:

    Add a trigger that changes the state of the button to Visited when the user mouses over the button with the condition that the state of the button = Visited. 

    I'm not on a machine right now that allows me to test it, but I believe that trigger should override the built-in functionality that would otherwise automatically show the Hover state on mouse over. 

  • Hi JudyNollet​ - How would you add a trigger to the object is only on the hover state?  Having it on the main slide may also make it work like RonPrice​ showed in the video.  I am going to start there today and see where I end up.  

    Thank you both.  I will post a small sample when I have it working the way I am hoping. 

    Take care

    Suzanne

    • JudyNollet's avatar
      JudyNollet
      Super Hero

      "When the user hovers over" is a standard trigger action. 

      However, as noted in the update I added to my earlier reply, I finally tested the suggested trigger. Alas, it didn't work. I don't know where the instructions for the trigger were originally entered; it's possible that I didn't remember them correctly. Or perhaps the trigger might work, but it depends on how the states are set up. 

      I don't have any other suggestions (except the previous one that the Hover state should be designed with the other states in mind). 

  • Thank you both. I was able to find a solution.  You can see the results here: Sample_Slide_Hover_Visited | Review 360

    RonPrice​ - Your video took me about 75% of the way there. One thing to note: any text on the shape will be removed during the cut and paste process of the visited state. 

    I then had to deal with the extra object that was only in the hover state. Maybe not the most elegant solution, but I simply duplicated the animated border onto the visited state, removed the animation, and changed the color to white. 

    Thank you again -

    Suzanne

    PS - Yes, the animation in each hover state of my example is different. Another theory I am exploring involves reducing/eliminating some of the animation that occurs.