I've recently coded a paragraph with spans inside to animate each letter. So the animation works but when you hover over the letter it starts glitching on top. I thought that a parent element would solve it but I don't know how to set it into the p parent. Here's the code:
span {
top: 0;
transition: top 0.1s ease-in;
position: relative;
}
span:hover {
color: orange;
top: -10px;
}
<p>
<span>H</span><span>e</span><span>l</span><span>l</span><span>o</span>
</p>