Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter sergeyzhuk

    (@sergeyzhuk)

    Closed this code in frontend.js and everything worked out

    $(document).on(‘click’, ‘.add_to_cart_button’, function () {
    var cart = $(‘body’).find(‘.majc-toggle-open-btn’);

    var imgtodrag = $(this).closest(‘.product’).find(“img”).eq(0);

    if (imgtodrag.length) {
    var imgclone = imgtodrag.clone()
    .offset({
    top: imgtodrag.offset().top,
    left: imgtodrag.offset().left
    })
    .css({
    ‘opacity’: ‘0.8’,
    ‘position’: ‘absolute’,
    ‘height’: ‘150px’,
    ‘width’: ‘150px’,
    ‘z-index’: ‘100’
    })
    .appendTo($(‘body’))
    .animate({
    ‘top’: cart.offset().top + 10,
    ‘left’: cart.offset().left + 10,
    ‘width’: 75,
    ‘height’: 75
    }, 1000);

    setTimeout(function () {
    cart.effect(“shake”, {
    times: 2,
    distance: 150
    }, 200);
    }, 1500);

    imgclone.animate({
    ‘width’: 0,
    ‘height’: 0
    }, function () {
    $(this).detach()
    });
    }
    });

    Plugin Author HashThemes

    (@hashthemes)

    Hi,

    Sorry for the late response. Here is the solution. Editing the code is not a good idea. There is another easy way. You will need to add the custom CSS code.

    Go to Appearance > Customize > Additional CSS and paste the below CSS code

    body > .attachment-woocommerce_thumbnail{display:none;}

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Disable animation’ is closed to new replies.