To fire an event just once, you can use the one() function, which attaches an event listener then removes it after the first time it's fired:
$(document).ready(function(){
$("#sharePost").one('focus', function(){
$(this).animate({height:"+=50px"});
$(this).css("background-color","#ffccdd");
});
});