Background rotate speed
Permalink Browser Info Environment
Guys
Where is the Javascript setting for the background rotation speed please? I need to slow it down
Ian
Where is the Javascript setting for the background rotation speed please? I need to slow it down
Ian
Type: | Pre-Sale |
---|---|
Status: | In Progress |
Sorry for the slow reply, apparently the Concrete5 website isn't emailing me anymore to tell me when I have support tickets!
So in header.php:
var intID = setInterval(changeImg, 7000);
/* image rotator */
function changeImg(){
$('.slideshow').animate({opacity: 0}, 1500, function(){
$(this).css('background','url(' + preloadArr[currImg++%preloadArr.length].src +') top center no-repeat');
}).animate({opacity: 1}, 1500);
}
The 7000 means 7 seconds between changes and the 1500 means 1.5 seconds fade time.
You can changed these 2 numbers as you wish
Thanks
Dave