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

Slide changes to the same screen and then loads new screen #161

Open
flagohuvelle opened this issue Mar 2, 2017 · 2 comments
Open

Slide changes to the same screen and then loads new screen #161

flagohuvelle opened this issue Mar 2, 2017 · 2 comments

Comments

@flagohuvelle
Copy link

flagohuvelle commented Mar 2, 2017

Hi! First of all, thank you for the great plugin! I have a problem in my app, where i have screen A, and when i try to slide to screen B, it'll slide perfectly to screen A and after its done sliding it loads B. If i increase the time from 300ms to 1000ms, screen B shows up in the middle of the animation sliding in (maybe after 500ms). I'm using the animations on an "onclick" event with almost the default configuration, always using the href. Heres the config:

and the js:

function slide(direction, color, slowdownfactor, hrf) {
var theOptions = {
'direction': direction,
'duration': 300,
'slowdownfactor' : slowdownfactor,
'href': hrf,
'fixedPixelsTop' : 0,
'fixedPixelsBottom': 0
};
window.plugins.nativepagetransitions.slide(
theOptions,
function () {
console.log('------------------- slide transition finished');
},
function (msg) {
alert('error: ' + msg);
});
}

Thanks for your help!

@dilukangelosl
Copy link

Did you find a solution?

@BRadHoc
Copy link

BRadHoc commented Feb 28, 2021

Also looking for a solution to this

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