1

How can I restrict pagepilling.js (a jQuery plugin) to only a few sections of the website and not the entire website

Mosh Feu
  • 28,354
  • 16
  • 88
  • 135
Rohit Girdhar
  • 353
  • 3
  • 8
  • 26
  • Do you mean that you want that the user will scroll let's say 4 sections, then he will scroll regular? – Mosh Feu Jan 01 '17 at 13:43
  • Yeah Exactly. I have a website having 4 sections and want the pagepilling effect only when going from first section to the second and then I want regular scrolling. – Rohit Girdhar Jan 01 '17 at 15:32
  • I can offer you a solution but it will works only if you can pass the ability to use mouse wheel to navigate between the slides. Why? Because when the user will scroll up in the second section, the plugin will scroll him to the first section. Savvy? – Mosh Feu Jan 01 '17 at 16:26
  • Just put it here: http://jsbin.com/polujid/edit?html,css,js – Mosh Feu Jan 02 '17 at 13:51
  • Oh I now get your point. Thanks for the help. Really appreciated. – Rohit Girdhar Jan 02 '17 at 19:36

1 Answers1

2

Check this article of mine where I explain how to do it in the last section by using the option pp-scrollable.

Also check the docs regarding pp-scrollable.

Alvaro
  • 40,778
  • 30
  • 164
  • 336