alvarotrigo / alvarotrigo/fullPage.js
Option to change responsive mode section change position to top of window
- Langage dominant
- JavaScript
- Étoiles
- 35.4k
- Forks
- 7.1k
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
Currently, when in responsive mode the current section changes when the incoming section reaches the halfway point of the window. See https://alvarotrigo.com/fullPage/examples/responsive.html when at a smaller screen, when scrolling down the hash changes to `#secondPage` when the second section reaches the halfway point.
I'm using the change in section number to trigger a theme change, so my site header contents turn from dark to light to work with the dark background colour of the second section. This is being triggered too early with the default halfway mechanic, causing my site header to become invisible against the contents of the background of the first section, until the second section is fully in view.
Would it be possible to add an option to trigger it when the top of the next section reaches the top of browser window?
Guide de contribution
Ouvrir le guide de contribution
Évaluation
Cette issue n'a pas encore été évaluée.