Skip to content

Commit

Permalink
Making FF nav links work by animating as well as via
Browse files Browse the repository at this point in the history
git-svn-id: https://aarf.svn.cvsdude.com/rfbdthankyou/branches/parallax@90 1160f83d-d3b9-402c-ae07-89e89a204893
  • Loading branch information
markkahn committed Feb 9, 2012
1 parent 9ff986f commit 74cb3ac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions parallax.js
Expand Up @@ -86,7 +86,7 @@ $(function(){

// split numeric properties
case 'background-position':
vPropVal = ( $node.css( sProp ) || '' ).split( ' ' );
vPropVal = ( $node.css( sProp ) || '0 0' ).split( ' ' );
vPropVal[0] = parseUnit( vPropVal[0], $node, 'outerWidth' );
vPropVal[1] = parseUnit( vPropVal[1], $node, 'outerHeight' );
break;
Expand Down Expand Up @@ -351,9 +351,9 @@ $(function(){
, top = oData.iTop + ( $sections[0] === $sect[0] ? 0 : iWindowHeight + 1 );

if( immediate ){
$body.scrollTop( top );
$body.add( 'html' ).scrollTop( top );
}else{
$body.animate({ scrollTop: top }, 1000);
$body.add( 'html' ).animate({ scrollTop: top }, 1000);
}
}

Expand Down

0 comments on commit 74cb3ac

Please sign in to comment.