PDA

View Full Version : Animation problems in Step Carousel's 'onslide' method



djiva
12-24-2008, 11:11 PM
1) Script Title: Step Carousel Viewer v1.6.1

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex4/stepcarousel.htm

3) Describe problem:

When I try to animate elements in 'onslide' method, not all elements are animated. Moreover every time count of animated elements are decreased.

I attached example for details.

Please help what can be the reason of that behavior.


Thanks in advance.

ddadmin
12-25-2008, 05:02 AM
Wow that was an elusive one- took me quite some tinkering to get to the heart of it. Inside the .js file, find and remove the code in red:


config.onslideaction=(typeof config.onslide=="undefined")? function(){} : function(beltobj){$(beltobj).stop(); config.onslide()} //attach custom "onslide" event handler

I can't remember why now I opted to stop the animation of the carousel each time onslide() was called, but there probably was a good reason, so in case you uncover any issues after removing the above, let me know. In the meantime, that should take care of the issue you were having.

djiva
12-25-2008, 04:28 PM
I seems like you advice resolve the problem. I will post here if I encounter any issues because of the change.

Many Thanks to you!