Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to actually use it on multiple elements? #13

Open
arso1er opened this issue Jan 25, 2018 · 1 comment
Open

How to actually use it on multiple elements? #13

arso1er opened this issue Jan 25, 2018 · 1 comment

Comments

@arso1er
Copy link

arso1er commented Jan 25, 2018

Hi,
I have a ul with a bunch of lis, and I'd like the lis to scroll. But when I apply the marquee3k class to my ul, only the first li scrolls. When I apply marquee3k to each li, they scroll independently.

How can I scroll all my lis on the same line?

@Komsomol
Copy link

I ran into the same issue. The library only takes the first HTML element to apply the effect on. From the code - this.content = element.children[0];

Thus it's best to push everything into that first element (div / ul) and then use CSS to have them all appear to be on the same line.

For example, I have a div called 'content', into that I pushed my dynamic content as

then set those elements to be display: inline-block;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants