The way you currently do the syntax is wrong, also you cannot animate the text as such, instead you will need to animate the element containing the text. It is also unclear what purpose you want to revive. Here are a few examples:
Opacity Animation:
$("div#title").hover( function () { $(this).stop().css('opacity', '0').html(function (_, oldText) {
Animation Width:
$("div#title").hover( function () { $(this).stop().animate({ 'width': '0px' // Animate the width to 0px from current width }, 2000, function () { // On completion change the text $(this).html(function (_, oldText) { return oldText == 'Good Bye' ? 'Hello' : 'Good Bye' }).animate({ // and animate back to 300px width. 'width': '300px' }, 2000); }) });
source share