alvarotrigo / alvarotrigo/pagePiling.js

Dynamically Add Section or Return to Section

Aperta
#129 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
JavaScript
Stelle
4.1k
Fork
633
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

Hey @alvarotrigo ! I'd like to recreate a similar situation as this [add/remove slides after init](https://stackoverflow.com/questions/36626527/adding-or-removing-sections-slides-to-fullpage-js-after-initialization/36643702#36643702).

To give you some background:

I'm using pagePiling.js to navigate up and down on my 'homepage' slides. If the user clicks certain buttons, they navigate to the right on a different URL. Because of this I'm destroying PP and I would like to reinitialize with the last section that was 'active'. I currently can use the afterRender callback to slide the user down to the certain slide, but I'd like the last active slide to be the slide set with the highest z-index so it 'starts' from this.

Any ideas on how to leverage active index and reinitialize PP in this way?

Thanks!

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.