Using a function

Using a function

Hello I have the following code:

function animateTextTiles(){

  $('article').hover(function(){
    $('.description', this).stop().transition({marginTop:'60px'}, 150);
  }, function(){
    $('.description', this).stop().transition({marginTop:'190px'}, 100);
  });
}

and my plan was to put this
    $('.description', this).stop().transition({marginTop:'60px'}, 150);
into a separate function with different parameters.

But everything i wrote had the effects that it crashed or that every description was moving.

THX :-)