Home › Forums › CSS › Scrolling text doesn't scroll properly! Aghh! Please help! :( › Reply To: Scrolling text doesn't scroll properly! Aghh! Please help! :(
February 15, 2019 at 11:50 am
#282936
Participant
You’re welcome, it was a nice little puzzle actually. Note that this works best when the parent element has the full width of the screen – which in this case is in fact slightly less because of a few pixels of margin on body itself but that isn’t noticeable.
I also later realised you should better use this for the bit of style at the bottom, I forgot the prefix:
@-webkit-keyframes scroll {
0% {
-webkit-transform: translateX(100vw);
}
100% {
-webkit-transform: translateX(-100%);
}
}