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

Type: Pre-Sale
Status: In Progress
igrieves
View Replies:
madesimplemedia replied on at Permalink Reply
madesimplemedia
Hi Ian

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
igrieves replied on at Permalink Reply
igrieves
Hi Dave,


Many thanks. Will try soon.

Yours

Ian

Ian Grieves
Web Producer

t: +44 1242 25 77 60
m: +44 7545 52 17 52
w: radiuswebdesign.com



> On 9 Dec 2015, at 16:03, concrete5 Community <discussions@concretecms.com> wrote:

concrete5 Environment Information

Mac OSX

Browser User-Agent String

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_1) AppleWebKit/601.2.7 (KHTML, like Gecko) Version/9.0.1 Safari/601.2.7

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You may not request a refund that is not currently owned by you.