Alright, I wrestled with the library a bit before I could get it to work, even looking at the examples. Here is a quick checklist of what I found was necessary to make it work. (for those who, like me, skim the instructions) :P
From there, as long as your setup fits the following format you should be able to initialize it:
Then your:
Should work!
Good luck!
-D
- You must have a parent div with the class "scrollable"
- "scrollable" should have the following styles at least (height and width to fit your space):
- Inside the "scrollable" div you need a div with the class "items"
- items MUST be wide enough for all your child divs to float next to eachother. (this is what got me) AND it must be absolutely postioned:
- The divs inside the "items" div MUST be set to float:left:
.scrollable {
position:relative;
overflow:hidden;
width:410px;
height:96px;
float:left;
}
.scrollable .items{
position:absolute;
width:37000px;
}
.items div{
float:left;
}
From there, as long as your setup fits the following format you should be able to initialize it:
<div class="scrollable">
<div class=""items">
<div></div>
<div></div>
</div>
</div>
Then your:
$(".scrollable").scrollable();
Should work!
Good luck!
-D
