Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var loginContainerDist = $('#login_container').css('height');
- $('#login').each(function() {
- $(this).click(function() {
- if ($('#login_container').css('margin-top') == '0px')
- $('#login_container').stop().animate({ 'margin-top': -loginContainerDist },700);
- else
- $('#login_container').stop().animate({ 'margin-top': '0px'},700);
- });
- });
Add Comment
Please, Sign In to add comment