alvarotrigo / alvarotrigo/fullPage.js

afterSlideLoad code is not executing on first slide

Offen
#3,077 6 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
enhancement question
Vorherrschende Sprache
JavaScript
Sterne
35.4k
Forks
7.1k
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

Hi and thank you for creating fullpage. I've created a [CodePen](https://codepen.io/Carrly/pen/LQPLez) with my issue.

I'm using fullpage with the horizontal slides. I have some animations happening on each slide load. I'm triggering those animations using `afterSlideLoad`.

The first slide doesn't load my animations and `console.log(slideIndex)` doesn't return anything for that first slide. This just happens when you initially load or reload the page.

It's happening in all browsers so it's not a browser issue. I hope you can help me, thanks!

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.