This animation successfully slides text out from the left, across the web page, after a delay.
But, first, the text appears as soon as the page is accessed, then dispappears right before the successfully slide out.
I only want the text to appear when it slides out from the left. Here’s the code:
You could have just put the element out of sight to start with.
e.g.
.item-1 {
left: -100%;
}
However @coothead has given you a better solution above anyway using transform which is much more performant that manipulating the left value.
Also note that your original version will give a massive horizontal scrollbar as you push the element out of the viewport but don’t hide the overflow unlike @coothead’s example