Remove fade effect from this set interval function in javascript

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);

})();

I’m a noob at JS too, but to me it looks like all that function does is fade the elements in and out. Perhaps you need to provide a link to the whole example. Sounds like something else is doing the rotation—possibly CSS.