Hi guys. This is really basic but i am really new in javascript. Maybe somebody with more experience could help me.
I need to remove the fade effects in this functions. Just want to rotate contents with no effect. Please somebody could tell me how can i do that. ?
(function(){
var carrootros = [
'<img src=\\"images/carro.png\\" width=\\"60%\\"/>',
'<img src=\\"images/carro-lights.png\\" width=\\"60%\\"/>',
], i = 0;
setInterval(function(){
$('#carrootros').fadeOut(function(){
$(this).html(carrootros[i=(i+1)%carrootros.length]).fadeIn();
});
}, 2000);
})();