I want to edit my marquee text animation.It doesnt reply after it goes off screen it works after the
It works after the text is completely off screen
16 Replies
codepen or bust
I can send the code?
If that works
codepen is best learn to use it
or some repl
Idk if it will work over there
🤷♂️
As it's a big project linked
Can I send the code here
minimize the issue to just the elements you need
it might help but 🤷♂️
working examples = help us help you
Yeah I get your point
code is just something we have to read and reason about
But this is new to me I wanna fix this issue and its open source project
without context or working example its more work than many are willing to put in
or even can honestly...
you could leave out something that is the issue if you don't even know what the issue is
It doesnt run on codepen
When you recreate an issue in a minimal demo lots of times you figure it out yourself but also gives others away to debug.
Okay the issue is
I want the formatted text to come back as it goes off
I don't think that this is possible to do with a marquee - it waits until the text is fully out of view before starting again. You may have to create something with CSS
I have thrown together a quick test of how it could be done with CSS.
https://codepen.io/cbolson/pen/dygaBRL?editors=1100. This basically duplicates the text by using a data attribute and then displaying it in a pseudo element.
The problem with my solution is that there are a few magic numbers in there. I have made them into custom properties so at least they are easy to adjust.