Skip to content

Commit 592d947

Browse files
committed
- Added support for new extension: faddingEffect that changes the scrolling effect for a fading one alvarotrigo#2113 alvarotrigo#1625 alvarotrigo#1093 alvarotrigo#783 alvarotrigo#760 alvarotrigo#517 alvarotrigo#121
1 parent baa3daa commit 592d947

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

jquery.fullPage.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@
139139
scrollHorizontally: true,
140140
interlockedSlides: false,
141141
resetSliders: false,
142+
fadingEffect: false,
142143
normalScrollElements: null,
143144
scrollOverflow: false,
144145
scrollOverflowHandler: iscrollHandler,
@@ -281,6 +282,9 @@
281282
* Defines the scrolling speed
282283
*/
283284
FP.setScrollingSpeed = function(value, type){
285+
if(type !== 'internal' && options.fadingEffect && FP.fadingEffect ){
286+
FP.fadingEffect.update(value);
287+
}
284288
setVariableState('scrollingSpeed', value, type);
285289
};
286290

@@ -532,6 +536,7 @@
532536
loadExtension('fp_resetSlidersExtension');
533537
loadExtension('fp_interlockedSlidesExtension');
534538
loadExtension('fp_responsiveSlidesExtension');
539+
loadExtension('fp_fadingEffectExtension');
535540

536541
init();
537542

@@ -702,6 +707,10 @@
702707
enableYoutubeAPI();
703708
enableVidemoAPI();
704709

710+
if(options.fadingEffect && FP.fadingEffect){
711+
FP.fadingEffect.apply();
712+
}
713+
705714
if(options.scrollOverflow){
706715
if(document.readyState === 'complete'){
707716
createScrollBarHandler();

0 commit comments

Comments
 (0)