Can you please tell me how to show text slowly on hover of button ? I tried using transition:all 5s; but I am facing one issue my text coming from bottom to right .I know the issue that text didn't get proper width due to that it is coming from bottom and when width is available then it comes on right.
is it possible to show only when width is available ? so that user will not see text is coming from bottom to right .
here is my code https://jsbin.com/nividexoti/edit?html,css,output
button {
width: 30px;
height: 30px;
}
button span {
display: none;
}
button:hover {
width: 80px;
transition: all 5s;
}
button:hover span {
display: inline;
}
<div>
<button>
<i>||</i>
<span>pause<span>
</button>
</div>