I'd like to make a div's (just containing text) background slide in from left to right, how can i accomplish this? I can make it fade in using css transition but cannot figure out how to make it slide in.
.container{
display:inline;
padding:10px;
transition: background-color 2s;
}
.container:hover{
background-color:lightcoral;
}
<div class='container'>
some text here
</div>