r2567 - photoviewer: resizing demo, improved crossfade
Author: joern.zaefferer
Date: Thu May 14 01:29:20 2009
New Revision: 2567
Modified:
branches/photoviewer/demos/photoviewer/resizing.html
Log:
photoviewer: resizing demo, improved crossfade
Modified: branches/photoviewer/demos/photoviewer/resizing.html
==============================================================================
--- branches/photoviewer/demos/photoviewer/resizing.html (original)
+++ branches/photoviewer/demos/photoviewer/resizing.html Thu May 14
01:29:20 2009
@@ -20,13 +20,14 @@
//You don't need this timeout in your pages - Safari has stupid issues
with our demo system
setTimeout(function() {
// resize images, and cross-fade them
+ var hide;
$("#photos").photoviewer({
resize: true,
rotateIn: function(direction) {
- $(this).fadeIn();
+ $(this).fadeIn(hide);
},
rotateOut: function(direction, finished) {
- setTimeout(finished, jQuery.fx.speeds._default);
+ hide = finished;
},
show: function() {
$(this).slideDown();