Team:Cornell/sandbox
From 2013.igem.org
(Difference between revisions)
Line 363: | Line 363: | ||
// dir = 0 scroll right, dir = 1 scroll left | // dir = 0 scroll right, dir = 1 scroll left | ||
if(dir == 0) $(this).animate( { left: '-=' + dist + '%'}, 1000); | if(dir == 0) $(this).animate( { left: '-=' + dist + '%'}, 1000); | ||
- | else $(this).animate( { left: '+=' + dist + '%'}, 1000, ' | + | else $(this).animate( { left: '+=' + dist + '%'}, 1000, 'easeOutBounce'); |
}); | }); | ||
} | } |
Revision as of 20:52, 1 January 2014