jquery animate

Hi

i want to animate a div on mouseover


i also want a unordered list to slide down.

Here is the page - hover on "the collective"

http://facilitiescollective.com/the-collective.php

how can i achieve this? it seems to bounce etc

my jquery was:

$("#parent").hover(
  function() {
    $(this).children("ul").slideDown();
    $('#banner').animate({
      top: '+=80'
    }, 500);
  },
  function() {
    $(this).children("ul").slideUp();
    $('#banner').animate({
      top: '-=80'
    }, 500);

});
 

Open in new window


Thanks
coolispaulAsked:
Who is Participating?
 
GaryConnect With a Mentor Commented:
If you can make a test page at http://jsfiddle.net
Or attach your html/css

You have to chain your animations if they are absolutely positioned.
0
 
GaryCommented:
That has to rate in the top most annoying broken jquery based menus.

For something like that you could just use slideToggle()
0
 
coolispaulAuthor Commented:
but i need to move a div at the same time as revealing the unordered list?
0
 
GaryCommented:
And is this div under the element you want to slide down? If so it will automatically move down as well (unless you have some rigged CSS)

This would be easier if you actually showed your code and not referred to someone else's website.
0
 
coolispaulAuthor Commented:
well its my site - thought easier to show you in context

yes the sub nav is positioned absolutely. Perhaps there is another way of positioning it buts its actually wider than its parent so this was easiest

you can see it functions but a lot of bouncing etc that im unsure how to fix...

Thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.