removed animation for fast slideshows
This commit is contained in:
@@ -977,7 +977,10 @@ function showimage(i) {
|
||||
if (i>imagelist.length-1 || i<0) { return; }
|
||||
thumblist(i,i);
|
||||
var dirStr=$('#imagecontainer').data('ID')<i ? '-' : '+';
|
||||
var revDirStr=$('#imagecontainer').data('ID')<i ? '+' : '-';
|
||||
var revDirStr=dirStr=='-' ? '+' : '-';
|
||||
var animateOut=(slideshowinterval!=0 && Math.abs(slideshowinterval)<2) ? 0 : 100;
|
||||
var animateIn=animateOut/2;
|
||||
|
||||
$('#imagecontainer').clearQueue();
|
||||
$('#imagecontainer').stop();
|
||||
$('#imagecontainer').css('margin-left', '0px');
|
||||
@@ -985,7 +988,7 @@ function showimage(i) {
|
||||
$('#imagecontainer').animate({
|
||||
'marginLeft' : dirStr+"=200px",
|
||||
'opacity' : "-=1"
|
||||
},100, function() {
|
||||
},animateOut, function() {
|
||||
$('#imagecontainer').css('margin-left', revDirStr+'200px');
|
||||
showbigimage(i);
|
||||
preload(i);
|
||||
@@ -995,7 +998,7 @@ function showimage(i) {
|
||||
$('#imagecontainer').animate({
|
||||
'marginLeft' : dirStr+"=200px",
|
||||
'opacity' : "+=1"
|
||||
},50);
|
||||
},animateIn);
|
||||
});
|
||||
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user