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 8322589
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T23:26:25+00:00 2026-06-08T23:26:25+00:00

I am trying to enlarge the images when mouseover and reduce the size back

  • 0

I am trying to enlarge the images when mouseover and reduce the size back to normal after mouseout. I have the following:

$('#image img').live("mouseover", function(){
          var $this=$(this);

          $this.attr('width','25%');
          $this.attr('height','25%');


       })

The enlarging part works fine but I am not sure how to reduce the size after mouseout. Also, I think my codes are bit ugly and not sure how to fix it. Thanks a lot.

  • 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-06-08T23:26:26+00:00Added an answer on June 8, 2026 at 11:26 pm

    Try this: http://jsfiddle.net/FPKAP/11/ or using hover: http://jsfiddle.net/FPKAP/12/

    When you will hover over the HULK it will zoomin and on mouse out zoom out.

    This should help the need, lemme know if I misunderstood anything please, :)

    code

    $('#zoomimg').mouseenter(function() {
        $(this).css("cursor","pointer");
        $(this).animate({width: "50%", height: "50%"}, 'slow');
    });
    
    $('#zoomimg').mouseleave(function() {   
        $(this).animate({width: "28%"}, 'slow');
    });
    

    code

    $('#zoomimg').hover(function() {
        $(this).css("cursor", "pointer");
        $(this).animate({
            width: "50%",
            height: "50%"
        }, 'slow');
    
    }, function() {
        $(this).animate({
            width: "28%"
        }, 'slow');
    
    });​
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to transform my image back to original size after user hover
I am trying to enlarge picture when user hovers to images and reduce the
Trying to resize (enlarge) an image with animate(). Didn't manage to resize it from
I am trying to create google image engine effect that shows images credits when
I am trying find a way not enlarge the table when image hover happened.
what i am trying is to locate links at center,namely suppose we have following
i'm trying to make images on my site a bigger size if you click
I'm trying to enlarge my regexp knowledge but I have no clue why the
trying to figure out why this is happening - I have an input text
I'm trying to work out how to enlarge all elements on a page, but

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.