Hey @Gan read about left property from the w3schools it have the following definition and usages
The left property affects the horizontal position of a positioned element. This property has no effect on non-positioned elements.
• If position: absolute; or position: fixed; - the left property sets the left edge of an element to a unit to the left of the left edge of its nearest positioned ancestor.
• If position: relative; - the left property sets the left edge of an element to a unit to the left/right of its normal position.
• If position: sticky; - the left property behaves like its position is relative when the element is inside the viewport, and like its position is fixed when it is outside.
• If position: static; - the left property has no effect.
So you just have to add position
attribute to your #title
element for left
attribute to work...
#title{
font-size: 8.5em;
font-weight: bold;
color: goldenrod;
animation: move 3s ease;
animation-direction: normal;
position:relative; /* this one */
}
@keyframes move{
from {left:0;}
to {left:200px;}
}
<div id="title">Soy Boos</div>