I am building a social network site and I have high demands out of it so I need a little help in making the animation better and smoother. I have to admit I am a backend developer, not really doing much frontend stuff but this is what I got: I have a button and when the user presses the button I need to show the user a nice form. I have been working on a animation for this http://jsfiddle.net/bTZ5D/1/ . I find it ok, but not really WOW material, if anyone can make it better or suggest how to make it better I would appreciate it. This is my js code:
jQuery(function($){ $('body').on('click', '#ask-question', function() { var container = $('.ask-question-wrapper'); $(this).fadeOut('fast', function() { $(this).hide(); container.show(); container.animate({ height: "265px" }).animate({ height: "245px" });; }); }); })