Disable and reenable Hover effect with JS

Hi all,

Is there any way to disable and then re-enable the Hover state effects? I think jQuery can use removeClass() and addClass(), but I’m not sure how that integrates with webflow’s classes. I defined the Hover effect in Webflow. The only effect is a change in fill color (from gray to blue).

I have a button that I’m disabling until I get a response from my server. During that time, I was hoping to disable the hover effect (the text says processing, and the button won’t work, but it looks cleaner if it doesn’t light up on hover).

I tried embedding $('#my-button').removeClass("Hover"); but that didn’t work :frowning:. Do I just have the wrong class name? Any ideas?

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.