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; }
|
if (i>imagelist.length-1 || i<0) { return; }
|
||||||
thumblist(i,i);
|
thumblist(i,i);
|
||||||
var dirStr=$('#imagecontainer').data('ID')<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').clearQueue();
|
||||||
$('#imagecontainer').stop();
|
$('#imagecontainer').stop();
|
||||||
$('#imagecontainer').css('margin-left', '0px');
|
$('#imagecontainer').css('margin-left', '0px');
|
||||||
@@ -985,7 +988,7 @@ function showimage(i) {
|
|||||||
$('#imagecontainer').animate({
|
$('#imagecontainer').animate({
|
||||||
'marginLeft' : dirStr+"=200px",
|
'marginLeft' : dirStr+"=200px",
|
||||||
'opacity' : "-=1"
|
'opacity' : "-=1"
|
||||||
},100, function() {
|
},animateOut, function() {
|
||||||
$('#imagecontainer').css('margin-left', revDirStr+'200px');
|
$('#imagecontainer').css('margin-left', revDirStr+'200px');
|
||||||
showbigimage(i);
|
showbigimage(i);
|
||||||
preload(i);
|
preload(i);
|
||||||
@@ -995,7 +998,7 @@ function showimage(i) {
|
|||||||
$('#imagecontainer').animate({
|
$('#imagecontainer').animate({
|
||||||
'marginLeft' : dirStr+"=200px",
|
'marginLeft' : dirStr+"=200px",
|
||||||
'opacity' : "+=1"
|
'opacity' : "+=1"
|
||||||
},50);
|
},animateIn);
|
||||||
});
|
});
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
body {
|
body {
|
||||||
margin: 5px;
|
margin: 5px;
|
||||||
|
overflow-x: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
.imagebox {
|
.imagebox {
|
||||||
|
|||||||
Reference in New Issue
Block a user