Skip to content

Commit

Permalink
Merge pull request #2 from justMoritz/satabsexclude
Browse files Browse the repository at this point in the history
added provision to be able to exclude links from saTabs
  • Loading branch information
justMoritz committed Aug 16, 2017
2 parents b707ee4 + b95bd42 commit e94515e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scrollimate.js
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ var scrollimate = (function( window, $ ){

function setUpPage() {
// finds all anchor tabs within the data-tabscrollnavcontainer
$tabscroll_anchors = $("[data-tabscrollnavcontainer]").find("a");
$tabscroll_anchors = $("[data-tabscrollnavcontainer]").find("a").not("[data-saexclude]");

// if we pass a type in here, we can control the method of change. Right now we can do fade, slide and none.
$transition_type = $("[data-tabscrollnavcontainer]").attr("data-tabscrollnavcontainer");
Expand Down Expand Up @@ -362,13 +362,15 @@ var scrollimate = (function( window, $ ){
_executeFunctionByName("scrollimate."+input[i]+"");
}


/* Theoretical Example of debouncing, does not work that well */
// $('[data-sabglayer]').css('transition', 'all 0.075s');
var __debouncedParallax = _debounce(function() {
__windowScrollHelper();
}, 5);
/* End Debounce */


// Code that initiates the window scroll listener, and all code (parallax or otherwise) that goes with it.
// when the window is scrolled
$(window).scroll( function(){
Expand Down Expand Up @@ -398,6 +400,8 @@ var scrollimate = (function( window, $ ){
};




/*
* Public Methods
*/
Expand Down

0 comments on commit e94515e

Please sign in to comment.