Переконайтеся, що в класах, які ви використовуєте, немає властивостей "! Важливого" .
Я вклав та встановив, що клас перемикача інтерфейсу jQuery не працює для властивостей з "! Важливими" тегами.
Reason :
Consider that your previous class had style "padding : 0" and your new class has "padding:100". You have added switchClass duration for 100 ms.
What jQuery will do for this is, it will add a style to your element by increasing padding by "1" in every 1 ms. But, as the previous class is still there in the element with a "padding : 0 !important", after 10 ms, "padding : 10" style added by jQuery doesn't effect the UI. After 100 ms, jQuery will execute removeClass("previousClass") and addClass("newClass"). this will result to a instant change in style reflected in the UI.
Це пояснення я з'ясую. Будь ласка, дайте мені знати, що ви думаєте про це.