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

  • Home
  • SEARCH
  • 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 8895271
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T23:44:04+00:00 2026-06-14T23:44:04+00:00

I am trying to scale to 2.5 when hovering to the div. When hovering

  • 0

I am trying to scale to 2.5 when hovering to the div. When hovering it starts the animation and on mouse out it gets to its original one. But the problem is when you hover to the element and quickly remove the cursor from the div the whole two animation completes. Like it fully scale to 2.5 and then get back to 1. I want if I mouseout in between it’s animating it should stop where it is in the position and return to scale 1. But unable to do so.

I am using jquery.transit

jsfiddle : http://jsfiddle.net/2swqN/3/

the jquery is:

$(".zoomable").live({
mouseover: function() {
    console.log("hoverd");
    $(this).transition({
        //rotateY: '360deg',
        scale: 2.5,
    },2000);
},
mouseout: function() {
    console.log("hovered out");

    $(this).transition({
        //rotateY: '0deg',
        scale: 1,
    },2000);

}
});​

using the stop() also doesn’t seem to work good because it flashes sometime.

  • 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-14T23:44:07+00:00Added an answer on June 14, 2026 at 11:44 pm

    Considering that you’re not using the fallback, all that plugin does is create CSS3 transforms. You can do that yourself without the need for a plugin, or any javascript at all for that matter.

    .zoomable {
        ...
        -webkit-transition: all 2s;
        -moz-transition: all 2s;
        -ms-transition: all 2s;
        -o-transition: all 2s;
        transition: all 2s;
    }
    
    .zoomable:hover {
        -webkit-transform: scale(2.5);
        -moz-transform: scale(2.5);
        -ms-transform: scale(2.5);
        -o-transform: scale(2.5);
        transform: scale(2.5);
    }
    

    jsFiddle: http://jsfiddle.net/2swqN/14/

    EDIT to address your issues with CSS transitions:

    To execute code after the animation completes, you can use the transitionEnd event.

    $('.zoomable').on('transitionend webkitTransitionEnd oTransitionEnd otransitionend', function() {
        alert('Transition Complete');
    });
    

    Demo: http://jsfiddle.net/2swqN/16/

    To start animation on click, use jQuery’s toggleClass(), and put the transforms in a separate class.

    $('.zoomable').on('click', function() {
        $(this).toggleClass('active');
    });
    
    .zoomable.active {
        /* css transforms here */
    }
    

    Demo: http://jsfiddle.net/2swqN/17/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to scale an ImageView down in an animation, but whenever I
I'm trying to use CSS3 animations to scale up a div. However, I want
I'm trying the moving limit after zoom with canvas scale, but new coordinates does
I'm trying to create a small slider where jquery UI Scale brings out and
I'm trying to scale a view Horizontally but i'm not getting the results i
I'm trying to scale this but I'm a little green when it comes to
I am trying to scale the photos taken with a camera, but i am
i am trying to scale in and out a UIButton in the main view,
I'm trying to scale an UIView without scaling its subviews, or in my case
I'm trying to scale a raphael paper with multiple paths but it doesn't scale

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.