Skip to content Skip to sidebar Skip to footer

A Slide Right And Left Effect

I have a the following html code :

Solution 2:

http://flowplayer.org/tools/demos/scrollable/index.html

Scrollable is a versatile and fool-proof solution to do sliders... check out the tutorial (and download the script) from the above link– this HTML / CSS / jQuery is taken pretty much directly from the site.

You'll have to change the widths of the elements in the CSS to suit your design. Hope that helps.

HTML

<divclass="mtabArrowLeft prev left">Left</div><divclass="menuTabs scrollable"><divclass="items"><inputclass="menutabBTN"name=""type="button"value="a" /><inputclass="menutabBTN"name=""type="button"value="b" /><inputclass="menutabBTN"name=""type="button"value="c" /><inputclass="menutabBTN"name=""type="button"value="d" /><inputclass="menutabBTN"name=""type="button"value="e" /><inputclass="menutabBTN"name=""type="button"value="f"/></div></div><divclass="mtabArrowRight next right">Right</div>

CSS

.scrollable {
    position:relative;
    overflow:hidden;
    width: 660px;
    height:90px;
}

.scrollable.items {
    width:20000em;
    position:absolute;
}

.itemsinput {
    float:left;
}

jQuery

$(function() {

    // initialize scrollable
    $(".scrollable").scrollable();

});

Post a Comment for "A Slide Right And Left Effect"