Forum Discussion
Hover States Help
Wondering if anyone could assist me with this mini-project.
I have four icons that when you hover over them, they turn to B&W and a name appears. The problem I'm having is that I can't get the names to stay there once you click on the icons.
Any help would be much appreciated!
Gabby
I'd get rid of a bunch of those triggers for the text and hover states.
- Create a hover state for the avatar and paste the text inside (get rid of the triggers before pasting).
- Create a visited state and paste the text.
You won't need all of those triggers if you use visited and hover states since they already know what to do.
- GabriellaGrimalCommunity Member
Thank you! That helped a ton!
The only issue I have now is that the first icon that is clicked reverts back to normal :(
You don't need the triggers for states because the states already have triggered actions by virtue of being a built-in state.
Delete the triggers for visited and hover states.
- GabriellaGrimalCommunity Member
Ahh okay. I'm so sorry, completely misunderstood.
Thank you Tom!
Here's a quick overview of states.
https://360.articulate.com/review/content/60e16824-982e-469c-bdad-1a5703649ea7/review
- GabriellaGrimalCommunity Member
Thank you!
- GabriellaGrimalCommunity Member
Works beautifully. Thank you for taking the time to explain!