Jquery mouseover event issues

Posted by Shaun on Stack Overflow See other posts from Stack Overflow or by Shaun
Published on 2010-04-26T13:16:59Z Indexed on 2010/04/26 13:23 UTC
Read the original article Hit count: 325

Hi

I am currently working on a project where I am using jQuery to animate a block of text on mouse over. The event listener is on the containing div (as shown by the code below) and works really well until the mouse is over the title (.views-field-title) which is absolutely above the containing div. The animation begins to jump almost as though it is starting over? What am I doing wrong?

$('#interior_design .views-row').mouseover(function(){
    $('.views-field-title', this).stop(true, true).animate(
        { height: '+=10px' },
        { duration: 'fast'});
    });

$('#interior_design .views-row').mouseout(function(){
    $('.views-field-title', this).stop(true, true).animate(
        { height: '-=10px' },
        { duration: 'fast'});
    });

Link to dev server: http://viva.bangtest.co.uk/interior-design

Note: this site is still in development as such the jQuery is only on the above linked page currently.

I'm open to all suggestions.

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about jquery-ui