How to simplify code and how animate an element inside a another element

How to simplify code and how animate an element inside a another element

Hi guys, I'm new here and I'm learning jQuery.

I have this piece of code:

  1. $('#portfolio ul li').mouseenter(function(){

  2.         $('.overlay', this).stop().animate({
  3.             opacity: '0.5'
  4.         }, 250, 'easeInOutQuint');

  5.         $('.overview', this).stop().animate({
  6.             top: '50%',
  7.             left: '50%',
  8.             margin: '-50 0 0 -125'
  9.         }, 250, 'easeInOutQuint');

  10.         $('.link', this).stop().animate({
  11.             bottom: '50%',
  12.             right: '50%',
  13.             margin: '-50 -125 0 0'
  14.         }, 250, 'easeInOutQuint');

  15.         $('.overview', this).add('.link', this).mouseenter(function(){
  16.             $(this).stop().animate({
  17.                 color: '#e74b3c'
  18.             }, 300, 'easeInOutQuint');
  19.         });

  20.         }).mouseleave(function(){

  21.             $('.overlay', this).stop().animate({
  22.                 opacity: '0'
  23.             }, 250, 'easeInOutQuint');

  24.             $('.overview', this).stop().animate({
  25.                 top: '50%',
  26.                 left: '-100',
  27.                 margin: '-50 0 0 0'
  28.             }, 250, 'easeInOutQuint');

  29.             $('.link', this).stop().animate({
  30.                 top: '50%',
  31.                 right: '-100',
  32.                 margin: '-50 0 0 0'
  33.             }, 250, 'easeInOutQuint');

  34.             $('.overview', this).add('.link', this).mouseleave(function(){
  35.                 $(this).stop().animate({
  36.                     color: '#FFFFFF'
  37.                 }, 300, 'easeInOutQuint');
  38.             });

  39.         });
The first question is how can I simplify the code, to stay DRY.

The second question is how can I animate an icon that is just animated. When the mouse enter in the parent element ( <li> ), these icons (  $('.overview') and  $('.link') ) slide respectively from right and left to the center. What I want is that when the mouseenter on an icon, this become red with an animation.

Actually, if I enter on the <li> element and on the icon (while it is moving), the icon become red and remains red. I think that this code need an optimization...

Thank for your availability.