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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T23:27:58+00:00 2026-05-26T23:27:58+00:00

I have a html table and I am trying to use the puff effect

  • 0

I have a html table and I am trying to use the puff effect in jQuery UI to hide a specific tr

Problem is since the effect changes the position and size of the element it is applied on and in a table the position and size of other rows is affected by the position of any row in the table, when the effect plays it also moves the other rows in the table.

Is this a jQuery UI bug? Is there any workaround?

Here’s my HTML:

<table>
    <tr class='cart-item'>
         <td><img class='picture' src='1.jpg'></td>
         <td>Product</td>
         <td class='price'>$25</td>
         <td><a class='remove' href='cart/remove/1' name='1'>X</a></td>
    </tr>

    <tr class='cart-item'>
         <td><img class='picture' src='2.jpg'></td>
         <td>Product</td>
         <td class='price'>$25</td>
         <td><a class='remove' href='cart/remove/2' name='2'>X</a></td>
    </tr>

    <tr class='cart-item'>
         <td><img class='picture' src='3.jpg'></td>
         <td>Product</td>
         <td class='price'>$25</td>
         <td><a class='remove' href='cart/remove/3' name='3'>X</a></td>
    </tr>
</table>

(The JavaScript to remove the item is called when the remove button is pressed on each cart item)

My JavaScript:

cartItem.hide("puff");

(cartItem is the tr of the cart item to remove)

And the CSS:

table {
    width: 90%; 
    margin: 40px;

td {
    vertical-align: middle; 
}
  • 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-05-26T23:27:58+00:00Added an answer on May 26, 2026 at 11:27 pm

    This seems to achieve what you’re wanting:

    $('a.remove').click(function(e) {
        e.preventDefault();
        cartItem = $(this).closest('tr.cart-item');
        newCartItem = $('<table />').append($(cartItem).clone().wrap('<table></table>'))
        console.log(newCartItem);
    
        newCartItem.appendTo('body').css({
            'position': 'absolute',
            'top': cartItem.offset().top,
            'left': cartItem.offset().left,
            'background-color': 'red'
        });
    
        cartItem.fadeOut(
    
        function() {
            newCartItem.hide('puff');
        });
    });
    

    JS Fiddle demo

    This effectively clones the ‘cart-item’ table-row, appends the clone to a table and then absolutely positions that table over the element you’re wanting to remove, runs the ‘puff’ effect on the temporary/cloned elements and, after completion, hides the element.

    It’s not quite as smooth as I’d like, but I’m not sure how to improve on that.

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

Sidebar

Related Questions

I am trying to use javascript and jquery to build an HTML table based
I have been trying to use Jeditable to make my html table editable. However
I'm trying to have a simple html table, that highlights a row as a
I have a table row which has class='highlightedrows' within my html I am trying
I am trying use the jQuery table sorter plugin for a table that is
I have an html table <table border=0 width=100%> <tr class=headerbg> <th width=5%> No </th>
I have an html table which i bind data dynamically on the server side
I have an HTML table that looks like this: ------------------------------------------------- |Column 1 |Column 2
I have an HTML table with several columns and I need to implement a
I have a HTML table like this: <table border=1> <tbody> <tr> <td><a href=# class=delete>DELETE

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.