alvarotrigo / alvarotrigo/fullPage.js

Option to change responsive mode section change position to top of window

Abierto
#3,562 1 comentario 0 reacciones 0 asignados Ver en GitHub
enhancement
Lenguaje dominante
JavaScript
Estrellas
35.4k
Forks
7.1k
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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?

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.