jsor / jcarousel

Riding carousels with jQuery.
https://sorgalla.com/jcarousel/
MIT License
2k stars 737 forks source link

Change left-rigth to up-down ... #848

Open stopoverandcatchfire opened 4 years ago

stopoverandcatchfire commented 4 years ago

When using the vertical mode "vertical: true" it is necessary to modify ".jcarousel ul" for everything to work.

"vertical: false"

.carousel ul {
    width: 10000em;
    height: 100%;
    position: relative;
    list-style: none;
    margin: 0;
    padding: 0;
}

"vertical: true"

.carousel ul {
    width: 100%;
    height: 10000em;
    position: relative;
    list-style: none;
    margin: 0;
    padding: 0;
}

Can't these changes be made by "jcarousel" ?

The "rtl: true" option does not work. It is necessary to change CSS ".carousel li":

"rtl: false"

.carousel li {
    float: left;
}

"rtl: true"

.carousel li {
    float: right;
}

Any solution ?