I need that when I pass the mouse over it, the div becomes wider and the icon appears + the text I was trying to do with :hover but it didn't work, so I would like to know if someone can help me or if I need to do it with JavaScript although I would like to do it with pure CSS
.contenedor{
width:50px;
position: fixed;
right:8px;
z-index: 999;
}
.botonF1{
width:45px;
height:45px;
border-radius:5%;
background:rgb(17, 163, 49);
/*background:#F44336;*/
bottom:0;
position: fixed;
border:none;
color:#FFF;
font-size:23px;
box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
transition:.3s;
margin-bottom: 250px;
}
.botonF1:hover{
width: 150px;
}
<div class="contenedor">
<button class="botonF1" title="Guardar">
<i class="far fa-save"></i>
<p>Guardar</p>
</button>
</div>
You can place the text inside the icon like this: