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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T10:43:39+00:00 2026-06-08T10:43:39+00:00

I’m currently working on this delete button, but for some reason the jquery animation

  • 0

I’m currently working on this delete button, but for some reason the jquery animation acts a little ‘jumpy’ when clicking and hovering off the button. I wonder what’s causing this..

http://jsfiddle.net/myyn5/3/

[EDIT] thanx a lot guys, check out the final result!: http://jsfiddle.net/myyn5/232/ [/EDIT]

  • 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-08T10:43:41+00:00Added an answer on June 8, 2026 at 10:43 am

    The issue is with jQuery resizing buttons.

    Upon playing with your code in jsfiddle I removed $fx.off. Also, as to MrOBrians’ point, I added called .stop() prior to performing any animation.

    `$(function() {

    $(".custom").on({
        click: function() {
            $("span").stop(true, true).show();
            $(this).animate({
                width: 90
            }, 700, function() {
                $("span").stop(true, true).animate({
                    left: '18px',
                    opacity: 1
                }, 500, 'swing');
                $(this).addClass("confirm");
                $(this).removeClass("custom");
            })
        },
        mouseleave: function() {
           $(this).removeClass("confirm");
            $("span").stop(true, true).animate({
                left: '-12px',
                opacity: 0
            }, 500, 'swing', function() {
                $(".custom").stop(true, true).animate({
                    width: 18
                }, 500);
            });
            $(this).addClass("custom");
        }
    });
    

    });`

    Also made some changes to the css as my first thought was that it was the lack of a defined width on the button.

    However, I wasn’t able to get the button’s width from shrinking prior to resizing, even if the button was already at its intended size. It still wanted to jump in before sizing sizing to 90. This was triggering a mouseleave event if the cursor was to positioned at a point on the button causing a hiccup and an unintended jumpy animation.

    Anyway I’m not sure if it’s a bug in jquery with buttons or if there’s somework around. But what I had to do was change the button to a DIV and then everything started playing nice.

    <p>
    <div class="btn btn-danger custom">
    <i class="icon-trash icon-white"></i>
    <span>Delete</span>
    </div>
    </p>

    You could still make this work by using $('#formID').submit(); or $.ajax() in your click function.

    http://jsfiddle.net/hAAwk/1/

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

Sidebar

Related Questions

For some reason, after submitting a string like this Jack’s Spindle from a text
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I have some data like this: 1 2 3 4 5 9 2 6
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and
I want to count how many characters a certain string has in PHP, but
I have a jquery bug and I've been looking for hours now, I can't
this is what i have right now Drawing an RSS feed into the php,
I am reading a book about Javascript and jQuery and using one of the

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.