PDA

View Full Version : Fade Duration in Slideshow



xOli
03-29-2008, 05:38 PM
1) Script Title: Ultimate Fade-in slideshow (v1.51)

2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...nslideshow.htm

3) Describe problem: Is it possible to set a variable in the call for the fade duration??

thanks

lg
Oliver

ddadmin
03-30-2008, 07:33 AM
Hmm not sure if I understand the question- are you asking how to customize the duration of the fade in animation? If so, try changing the code in red below inside the script:


fadeclear[this.slideshowid]=setInterval("fadepic(fadearray["+this.slideshowid+"])",50)

Lower (but above 0) would make it faster (ie: 10), higher would be slower (ie: 200). Another area within the code you can change as well is:


obj.degree+=10

Lower than 10 (but above 0) would make things slower , higher faster. The difference between the two is subtle, but worth experimenting with to see which one produces a smoother result.

xOli
03-30-2008, 10:03 AM
Perfect ... thanks :)