0
Any equivalent of this in pure js?
$(".quote-text").animate({ opacity: 0 }, 500, function() { $(this).animate({ opacity: 1 }, 500); $('#text').text(randomQuote.quote); } );
1 Resposta
+ 2
You can setTimeout(). That is what jquery uses under the hood.
But if it helps there is an experimental feature animate() supported in all major browsers except IE and safari mobile
https://developer.mozilla.org/en-US/docs/Web/API/Element/animate