From 68e78881bf2b92d1d48bf2eb990c03f4ea218367 Mon Sep 17 00:00:00 2001 From: Pierre Paridans Date: Fri, 15 Sep 2023 08:35:33 +0200 Subject: [PATCH] [IMP] website_sale: remove dependency on jQuery UI Effects This commit replaces the usage of jQuery UI Effects "Expo" by the default jQuery effect (aka. "swing"), but shorter to keep a similar "punchy" feeling when adding a product to the shopping cart. Note: this will allow to remove jQuery UI Effects in a follow-up commit. task-3439226 Part-of: odoo/odoo#135491 --- addons/website_sale/static/src/js/website_sale_utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/website_sale/static/src/js/website_sale_utils.js b/addons/website_sale/static/src/js/website_sale_utils.js index 36727ad50f1..b031b4b5d80 100644 --- a/addons/website_sale/static/src/js/website_sale_utils.js +++ b/addons/website_sale/static/src/js/website_sale_utils.js @@ -76,7 +76,7 @@ function animateClone($cart, $elem, offsetTop, offsetLeft) { left: $cart.offset().left + offsetLeft, width: 75, height: 75, - }, 1000, 'easeInOutExpo'); + }, 500); $imgclone.animate({ width: 0,