I’ve seen a few sliding tickers used on small sites over the past year. The effect has grown on me, as an effective tool to presenting a very short amount of material. Looking for an opportunity to use it, I recently got to incorporate the effect into a super basic landing page that just repeats a project name.
Because I only needed to repeat through static text, I did not worry about a solution for dynamic content. While looking into how to do make the ticker however, I found this article. The article shows you how to build a ticker into wordpress using dynamic content from the loop.
Intended to be used full width and for messages to be relatively short. Here is the quick setup:
Noticing all of the viewport measurements in this, you can see my solution for responsive design. Because the type is more for design than content, setting sizes this way ensures it will look the same on all screens.
Asuming you don’t want my name scrolling by, your message is going to be a different length. Unfortunately to do this you need a keen eye and likely a very random number. To smoothen it out you will have to edit the -141.5vw in the keyframe 100% position. In my use I’ve found to the 0.5% to be accurate enough.
Letting the animation loop through, watch for the text to jump. If your text animation is ending and pulling the repeated word forwards, then you are going to short of a distance, try raising the number. This means that if when the animation ends it jumps backwards a bit your distance is too long, and needs shortening. Having your browser as wide as possible helps see the timing discrepancies easier.