Please, is it possible to run an animation on the click of a browser button? And how?
I know it is possible with some Ajax manipulation, I believe.
Here is what I have now.
I got two divs with the class .wrapper both a 10% and sitting side by side in a parent div called .flatbed, width 1000%.
(Only one .wrapper class is revealed at a time.)
Now, when I click #new_workspace (a button), this happens
$('#new_workspace').click(function()
{
$('.flatbed').animate({left:'-100%'})
});
This sends the first .wrapper class to left, out of the browser's viewport and reveals the second .wrapper class.
I reverse this animation with
$('#back_to_workspace').click(function()
{
$('.flatbed').animate({left:'0%'})
});
My problem now, is triggering this reverse animation with the browser back button. Help please :( Thanks.
Something like this http://www.marlene-portfolio.com/