I have a simple block with a text within and everything looks normal, but when I hover over a block, in the process the text acts weird: first letters of each word are moving down. I don't face the same problem when I remove transition from the code. I've searched through other questions connected with CSS transition problems, but couldn't find a solution to this problem. Could somebody explain me, please, why is this happening and how to avoid such behavior?
Here is the codepen
Here is the link, where you can see how it behaves
HTML
<div class="container">
<div class="box grow">
<p>Box grow</p>
</div>
</div>
CSS
body {
background-color: #ddd;
}
.container {
margin-top: 30px;
text-align: center;
}
.box {
display: inline-block;
width: 100px;
line-height: normal;
background-color: #fff;
border-radius: 5px;
transition: 0.5s cubic-bezier(0.29, 0.01, 0.72, 1);
}
.grow:hover {
transform: scale(1.15, 1.15);
}