Question

I am using this jQuery plugin on a website: http://stolksdorf.github.com/Parallaxjs/

I am trying to achieve an effect where when a slide is navigated to, it automatically moves onto another slide once it has loaded - think of it as a transition slide.

For example:

parallax.transition.onload=function(){
    parallax.citymid.show();
};

This code shows the city mid slide once the transition slide has loaded.

However:

parallax.transition.onload=function(){
    parallax.citymid.bottom();
};

This does not make city mid slide in from the bottom as it would if it was called from a button.

Does anyone know whow I can make this work, or at least find a work around for it? I have contacted the developer of the plugin but to no avail.

Many thanks, Oli

Was it helpful?

Solution

Using transition callbacks, everything works as it should.

parallax.pageB.right(function(){
parallax.pageC.right();
});

Call this bit of code while on pageA and it will slide in pageB from the right, and as soon as it's done it will slide in pageC. I've tested this and it works flawlessly.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top