-
Notifications
You must be signed in to change notification settings - Fork 67
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
Guidance for creating auto rotate #4
Comments
Hey @hungrysquirrel, happy to help. I've created this gist detailing how both features could be accomplished. Check that out and let me know if it helps. One way that code could be improved would be to check for when a user does click so that you can clear the timeout. Anyhoo, hope that helps! |
Hi @ericthelast , I can't get it to work on autoplay... Can you please help me out? What I want to do:
Can you or somebody else help me out? Thank you so much in advance. Bas |
I would like to comment that @ericthelast gist works for the autoplay part. What I am trying to add to it is the flipping to the back after it shuffles to the next image, then flips to the front, and then shuffles again. I, too, need it to pull in new images, but that's later down the road. The issue I have is in finding the function that actually does the flipping. I cannot tell if it is in the CSS or in the js file. There is nothing that explicitly tells it to flip. It also seems to somehow be tied to the navigation bar, which I need turned off and have been able to do so. Any thoughts on where the flipping functionality resides? And no, that's not a euphemism...;) Update: The code appears to be in _rotateItem and one should be able to call it by saying ps._rotateItem(), but it doesn't appear to be working. If I get it working, I'll let you know. The following allows you to hide the navigation, rotate the image after 3 seconds, rotate it back after 3 seconds and then proceed to the next item.. new Photostack( document.getElementById( element ), {
// any other options here,
showNavigation: false,
afterShowPhoto: function(ps) {
setTimeout(function() {
ps._rotateItem();
setTimeout(function() {
ps._rotateItem();
setTimeout(function() {
ps._navigate('next');
}, 3000);
}, 3000);
}, 3000);
}
}); |
@ericthelast
Thanks for contributing to this project. Can you provide me some guidance on a few things.
The text was updated successfully, but these errors were encountered: