0
This is the first time I try to apply a rule of media queries in java script and, as a beginner, I believe something in this syntax is wrong, since the only function that is working is the second (with Visible: 3) and in all viewports.
var mq = window.matchMedia('@media all and (max-width: 768px)');
if (mq.matches) {
    $("#carrossel").jCarouselLite({
        btnPrev: ".anterior"
        , btnNext: ".proximo"
        , visible: 1
        , auto: 2000
        , speed: 1000
    });
} else {
    $("#carrossel").jCarouselLite({
        btnPrev: ".anterior"
        , btnNext: ".proximo"
        , visible: 3
        , auto: 2000
        , speed: 1000
    });
}
Will, did you copy this from jCarousel’s documentation or do it yourself?
– Lucas Henrique