I have this markup and CSS
<div class="share-btn">
20 Shares
<span>Share Now</span>
</div>
CSS
.share-btn span{
display: none;
}
.share-btn:hover {
display: none;
}
.share-btn:hover span {
display: block;
}
I'm trying to change the text on mouse hover. Hovering 20 Shares should change to Share Now. I tried with CSS but not working as I expected.
How can I do this using CSS?
Thanks!