forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 plugins => Topic started by: Bar6 on August 05, 2011, 11:46:06 am

Title: Slider plugin speed?
Post by: Bar6 on August 05, 2011, 11:46:06 am
About the Slider animation plugin (http://forum.coppermine-gallery.net/index.php/topic,57388.0.html) (BTW many thanks to Timo-Welt for the 1.5.x compatibility) — is it possible to code an even slower sliding speed? Can anyone point me to the corresponding code snippet?
Title: Re: Slider plugin speed?
Post by: Bar6 on August 06, 2011, 03:08:44 pm
What I discovered is that the following code snippet in slider.js controls the number of milliseconds between the tiny incremental movements of the slider...

Code: [Select]
lefttime=setInterval("cpgslideplug_slideleft()",75)
The Slider plugin is configured for 75ms intervals. Higher numbers result in slower speeds. What I discovered, though, is that...

Quote from: jscheuer1 link=http://www.dynamicdrive.com/forums/showthread.php?t=6019&highlight=conveyor+slide+speed
Increasing it will slow things down but, too much of an increase will make the movement appear choppy. I'd try 90 tops.

So I decided to use a 90 millisecond interval.