Why do Floatbox popups stop other animations when finished closing?
Posted
by
isherwood
on Super User
See other posts from Super User
or by isherwood
Published on 2012-09-11T21:22:12Z
Indexed on
2012/09/11
21:40 UTC
Read the original article
Hit count: 114
JavaScript
|jQuery
I'm trying to essentially run a callback function when a Floatbox popup is closed via a hyperlink inside the popup. I want the page to scroll to the top and my login box to fade in. I'm using the following code:
function showLogin() {
jQuery('#header_no_theme_login_popup', parent.document.body).show();
window.parent.window.scrollTo(0,0);
window.parent.fb.end();
}
This works fine, but if I try to use jQuery fadeIn, the fade effect is truncated when the Floatbox popup finishes closing, leaving it with partial opacity. jQuery scrollTo doesn't seem to want to work at all.
Thanks much.
© Super User or respective owner