alvarotrigo / alvarotrigo/fullPage.js

Start afterLoad animation earlier when responsive

オープン
#3,451 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る
enhancement
主要言語
JavaScript
スター
35.4k
フォーク
7.1k
PR マージ指標
30日以内にマージされた PR はありません

説明

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

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。