Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

191
Views
Preventing a WordPress plugin from triggering a JavaScript animation

I'm using a WooCommerce plugin called Product Bundles, within this plugin is a JavaScript file which triggers a slideDown animation for an .on("change") event.

The code looks something like this:

.on( 'change', '.bundled_product_optional_checkbox input', function( event ) { 
  bundled_item.$bundled_item_content.slideDown( 200 );
})

What I'd like to do is entirely remove the animation from any of/all of these elements, since I want to always display the HTML elements. However displaying the elements regardless of the checkbox status still fires the animation and it looks very odd.

Since it's a plugin I cannot simply remove the slideDown animation from the plugin file but have to create my own file with an override.

I have tried using .stop() on the .bundled_item_cart_content element but it doesn't work. Are there any other ways to unhook animations, override or stop them before they start? (I also tried moving the order of my override file to ensure it fires both before and after Product Bundles JS file - at a loss I tried both!)

If it helps I have a test website that demonstrates this: Here. If you click 'Add' on the products you'll see the animation happen on the number input field. (My intention is to always have the number input shown but that's doable with CSS)

Any help would be much appreciated.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!