Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6062099
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T09:00:45+00:00 2026-05-23T09:00:45+00:00

Im trying to get my images to animate on mouse over (hover) but for

  • 0

Im trying to get my images to animate on mouse over (hover) but for some reason its not working at all.

 $(document).ready(function(){
            $(function() {
            $('img.caption').hover(function(){
                $(this).find('img').animate({top:'182px'},{queue:false,duration:500});
            }, function(){
                $(this).find('img').animate({top:'0px'},{queue:false,duration:500});
            });
        });
 });

and the adjoining html

<div class="imagediv"><img class="caption" src="images/gallery/placeholder.jpg" alt="This is test" title="" /></div>

I have another hover even linked back to the caption class, could it be a conflict. When i Mouseover the image nothing happens :/

Would this interfere with the other code?

 $(document).ready(function(){
        $(".caption").hover(
                function () {
                  $("#gallerydescription").html( $(this).attr("alt"));

  }, 
  function () {
    $("#gallerydescription").html("");
  }
);
 });
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T09:00:46+00:00Added an answer on May 23, 2026 at 9:00 am

    Example Here

    As I stated in comments:

    1. The following are equivalent, pick and choose:

      $(document).ready(function(){

      $(function() {

    2. you can remove the find function, as you’ve already started with the img
    3. you can remove the px from the assignment
    4. you need to give your img a position (absolute/relative)

    Example:

    $(document).ready(function(){
       $('img.caption').hover(
          function(){ $(this).animate({top:'182'},{queue:false,duration:500}); },
          function(){ $(this).animate({top:'0'},{queue:false,duration:500});   }
       );
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to get the number of all images stored in the SD, but
I have css hover over images for my tabs and I'm trying to get
I am trying to get all the images with class front and display their
I'm trying to get the source attribute of all images withing a specific div
I've seen some sites that use jQuery Animate to get their images to grow
I'm trying to get this to crossfade, but I'm not entirely sure how. How
I am trying to perform an ajax.get using jquery within document.ready . But the
OK, trying to get images from my SD card to show in an activity
Am trying to get 3 images to be show side by side in matlab.
Im trying to write something to get my images to show correctly. I have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.