alvarotrigo / alvarotrigo/fullPage.js

Start afterLoad animation earlier when responsive

Abierto
#3,451 2 comentarios 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

Hi,
I've added animations to all sections using afterLoad. However in the responsive version, the animations does not start before you scroll about 50% of the site. Is there a way to change that? I have tried using on onLeave but had the same problem.

$('#fullpage').fullpage({
anchors: ['firstPage', 'secondPage'],
autoScrolling: true,
responsive: 992,
scrollBar: true,
lazyLoading: true,
hybrid:true,
easing: 'easeInOutCubic',
easingcss3: 'ease',
showActiveTooltip: 'true',
css3: true,

afterLoad: function(anchorLink, index){
if(index == 2){
$('#one').addClass('animated');
$('#two').addClass('animated');
}
}
});

### Versions
This happens on all responsive versions I tested. Mobile up to 992px

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.