I am trying to have two sections on one page, a login section and an application.
The idea is that onLoginSubmit () flips the login section to the left and moves to the right of the application.
Consider this HTML:
<section id="login-section"> </section> <section id="app-section" style="display: none;"> </section>
And JS I use:
$('#login-section').toggle("slide", { direction: "left" }, 500); $('#app-section').toggle("slide", { direction: "right" }, 500);
What happens is that the login section will exit to the left, but the application only becomes visible after the transition has ended, so I get the default background when the login section exits the screen.
I am using jQuery and jQuery UI. Any help is appreciated.
source share