Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When initialized, start the animation with selected effect #12

Open
krizajb opened this issue Feb 22, 2014 · 3 comments
Open

When initialized, start the animation with selected effect #12

krizajb opened this issue Feb 22, 2014 · 3 comments

Comments

@krizajb
Copy link

krizajb commented Feb 22, 2014

Would it be possible to start the animation with the selected effect. I am initializing the bgswitcher after 10 seconds and wish to have fade in effect from the start.

Will also take my time and check out the code.

@perthsystem
Copy link

Hi Krizajb, this is how I start it on my site:

script
var srcBgArray = ;
$(document).ready(function() {
$('#bg-body').bgswitcher({
images: srcBgArray,
start: true,
easing: 'linear',
shuffle: true,
loop: true,
effect: 'fade',
interval: 3000,
duration: 1200,
});
});
/script

Notes: The array "$srcBgArray" is created in my PHP code, it reads a directory for image files and passes it on to bgswitcher. If you're interested this is the code I use - keep in mind I'm just a beginer :)

I have it at the start of my index.html so the files are read in every time the page loads, that way I can add or remove images as I like.

Cheers,
John

@rewish
Copy link
Owner

rewish commented Mar 27, 2014

fade in effect from the start

Is not supported at present...
I'll consider it.

@krizajb
Copy link
Author

krizajb commented Mar 27, 2014

Great, I'll be here to test it out ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants