A
A
agent11562016-09-21 16:17:36
Animation
agent1156, 2016-09-21 16:17:36

How to set up animation in JS?

$('.service-wrapper img').hover(
    function(){
       $(this).animate({'width':'100px'});
       
    },
    function(){
       $(this).animate({'width':'50px'});
       
    }
);

Here is my simple script. When you hover over the image, it increases and when you move it decreases. But if you swipe over the picture several times (quickly), the animation repeats with a delay. How to get rid of such a glitch? I need the animation to not work when retracting

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question