A Shopify user is troubleshooting custom CSS code for a sliding announcement bar that should scroll from right to left across the page.
Initial Problem:
The text appears and disappears mid-screen rather than starting at the right edge and ending at the left edge
Screenshots show the text beginning/ending at incorrect positions
Attempted Solutions:
First suggestion changed transform values from translateX(100%) to translateX(0%) at start and translateX(-100%) at end, but this made text start in the middle
Second attempt reverted to translateX(100%) start position and added text-align: left, which improved behavior but still didn’t achieve the desired effect
Current Status:
The helper acknowledged they cannot solve the issue completely
The original poster accepted the “almost perfect” solution as good enough
Discussion concluded without achieving the exact right-to-left edge behavior originally requested
Note: Some code snippets in the thread appear corrupted or reversed, making full technical analysis difficult.
Summarized with AI on November 12.
AI used: claude-sonnet-4-5-20250929.
hello, i have this code for a sliding announcement bar without any app, however the text is just starting to appear and disappearing where i have the marks. I wanted it to start on the right at the beginning of the page and end on the left at the end of the page.
Hi, To make it start from the right edge of the page and end at the left edge, you should adjust the initial position to translateX(0%) and the final position to translateX(-100%)
Try this code
Thank you for the answer again. It is almost perfect. However, the text still doesn’t start on the right-hand side as I’d like. Do you think it’s possible to do that?