I have event on the right hand side.

How to move to the top and moving LEFT to right? Is this possible to achieve?
PHP Code:
      google.maps.event.addListener(marker'click', function() {
        $(
'h1'info).text(place.title);
        $(
'p',  info).text(place.description);
        if (
currentPlace == marker) {
          
info.animate({right'-320px'});
          
currentPlace null;
        } else {
          
info.animate({right'0'});
          
currentPlace marker;
        }
      });