0

I tried this solution:

What is the cleanest way to disable CSS transition effects temporarily?

but it doesn't work. I still see stuff animating.

$('body').addClass('notransition'); // the class that doesn't work  
$('body')[0].offsetHeight;
$('#main_style').attr('href', newStyleUrl);
$('body').removeClass('notransition');

Is there any way to make it work?

Community
  • 1
  • 1
Alex
  • 66,732
  • 177
  • 439
  • 641

0 Answers0