Restore old state when mouse hovers outside

Hello,

I am trying to create a button with a shape with a question mark icon on it, which would change it's state (showing text) upon hovering (and the icon would hide). Also, I want to restore the shape's state to normal (showing question mark) if the user takes the cursor outside that shape.

I am able to achieve the hovering part and the text is shown, but unable to achieve the second part. Hope my attachment would help.

 

Thanks

2 Replies