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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T04:21:34+00:00 2026-06-09T04:21:34+00:00

I have a problem with animating an image with JS. When I only animate

  • 0

I have a problem with animating an image with JS. When I only animate width and height it works fine. Problem occurs when I add top/marginTop, or left/marginLeft to it. The reason I want to use it, is the zoom effect. However I think it is firstly adding width and height, than it adds top/left values. It produces “twitching” effect which looks bad and I can’t get rid of it.

here is working example of my simple slider http://łuckoś.pl/slider/

I tried everything, even the jQuery.fx.interval = 50;

thank you for your time

  • 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-09T04:21:35+00:00Added an answer on June 9, 2026 at 4:21 am

    For better result, you must use CSS properties like that:

    #container{
        overflow:hidden;
        width:489px;
        height:178px;
        position:relative;
    
    }
    #container img{
        position:relative;
        margin:auto;
        -webkit-transition: all 4s ease-out;
        -moz-transition: all 4s ease-out;
        -o-transition: all 4s ease-out;
        transition: all 4s ease-out;
    }
    
    #container img.zoom { 
       -moz-transform: scale(2);
       -webkit-transform: scale(2);
       -o-transform: scale(2);
       transform: scale(2);
       -ms-transform: scale(2);
    filter: progid:DXImageTransform.Microsoft.Matrix(sizingMethod='auto expand',
       M11=2, M12=-0, M21=0, M22=2);
    }
    

    and javascript :

    $().ready(function(){
        $('img').addClass('zoom');
    }); 
    

    When you add zoom class, the image is scaled to 2 in 4 secondes.

    See the complete demonstrate : http://jsfiddle.net/rNY6T/18/

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

Sidebar

Related Questions

I have a Image XML menu that works well, but with a litle problem
I have a little Problem using jQuery.animate with firefox: when i animate the height
So, this is my problem: I have this very big image, and I want
I have a problem with switching images in android. I want to create animation
I have a problem with an animation in jQuery using ajax. On the click
I have a problem with moving animation. I want to create animation which start
Hello I have problem to put together animations of two separate objects to second
I have a small problem with UINavigationController animation between two view. My application build
I have a simple animation the problem is I want the animation to end
I have recently created a HTML5 canvas animation (also using Processing.js). The problem is

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.