animate and hover function
Hi,
I'm new to jQuery and I was wondering if it's possible to put .animate and .hover on one element.
Here's the script I have now:
- $(document).ready(function(){
- $(".element-header").hover(function(){
- $(".element").animate({
- height: "100px"
- });
- },function(){
- $(".element").animate({
- height: "0",
- });
What I wanted to do is add a .hover function to it as well.
So what I'm hoping to see is that it animates + the image changes.
How do I do that? Sorry, I'm doing trial-and-error right now and it isn't going very well.