Problem: when using "use strict", this Word Rotator code works, but incorrectly, flickering appears, incomprehensible transparency, how can you resolve this issue?
var ut_word_rotator = function() { var ut_rotator_words = [ 'Text 1', 'Text 2', 'Text 3' ] , counter = 0; setInterval(function() { $(".hero-title").fadeOut(function(){ $(this).html(ut_rotator_words[counter=(counter+1)%ut_rotator_words.length]).fadeIn(); }); }, 3000 ); } ut_word_rotator();