When an element is hovered / pressed, a different element become visible for just 5 seconds

How do I do this: when an element is hovered or pressed, a different element becomes visible for 5 seconds (and then disappears after the 5 seconds ends)

Here is a starting point

Take the concept and apply it to your use case