Jump to content
Willem-Siebe Spoelstra

Use ScrollSpy multiple times on one page

Recommended Posts

Willem-Siebe Spoelstra

I would like to use scrollspy multiple times on one page.

 

Is it possible to let the first scrollspy listen to class scroll-header, the second cloned scrollspy listen to class scroll-header2 etc. etc.?

 


I write about internet marketing, WordPress and Pagelines on my Dutch blog spoelstra.ws

Share this post


Link to post
Share on other sites
Rob

I don't think ScrollSpy is clonable.  It doesn't really make sense to clone it.


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
Willem-Siebe Spoelstra

What exactly do you mean with clonable. If I drag it on the page, you can clone it and it shows as many times as you would like.

This is exactly what I want, but I want the first scroll spy listen to a different class then the second one, because if I use the scroll-header class for everything, both scrollspy's will look identical, and I want them to be different.

 

Reason: big page with three different section (one scroll spy for each section), on each scroll spy I want to list the links of that sections...


I write about internet marketing, WordPress and Pagelines on my Dutch blog spoelstra.ws

Share this post


Link to post
Share on other sites
Danny
As far as I know, you can't use Scrollspy more than once per page, as it will conflict. You will need to find an alternative method unfortunately.

Please search our forums, before posting!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×