With autoScroll off the user will have to scroll the list, via touch and drag, or the mousewheel.
var exampleFive = new Budgie(
sampleElements,
'#example-5',
{
'numberHigh': 2,
'numberWide': 4,
'direction': 'vertical',
'autoScroll': false
}
);
AutoScroll Off horizontal scroll
With autoScroll off the user will have to scroll the list, via touch and drag, or the mousewheel.
var exampleSix = new Budgie(
sampleElements,
'#example-6',
{
'numberHigh': 1,
'numberWide': 4,
'direction': 'horizontal',
'autoScroll': false
}
);
InfiniteScroll Off
With InfiniteScroll off the list will stop when it reaches the end of the list.
var exampleSeven = new Budgie(
sampleElements,
'#example-7',
{
'numberHigh': 1,
'numberWide': 5,
'direction': 'horizontal',
'autoScroll': false,
'infiniteScroll': false
}
);
Pop demonstration
an element off the list and watch Budgie update.
var exampleEight = new Budgie(
sampleElements,
'#example-8',
{
'numberHigh': 2,
'numberWide': 3,
'secondsOnPage': 10.0,
'direction': 'horizontal',
'autoScroll': true
}
);
// Code to pop elements off the list
exampleEight.items.pop();
Push demonstration
an element onto the list and watch Budgie update.
var exampleNine = new Budgie(
sampleElements,
'#example-9',
{
'numberHigh': 2,
'numberWide': 3,
'secondsOnPage': 10.0,
'direction': 'horizontal',
'autoScroll': true
}
);
// Code to push elements onto the list
exampleNine.items.push(sampleElement);
Shift demonstration
an element off the list and watch Budgie update.
var exampleTen = new Budgie(
sampleElements,
'#example-10',
{
'numberHigh': 2,
'numberWide': 3,
'secondsOnPage': 10.0,
'direction': 'horizontal',
'autoScroll': true
}
);
// Code to shift elements off the list
exampleEight.items.shift();
Unshift demonstration
an element onto the list and watch Budgie update.
var exampleEleven = new Budgie(
sampleElements,
'#example-11',
{
'numberHigh': 2,
'numberWide': 3,
'secondsOnPage': 10.0,
'direction': 'horizontal',
'autoScroll': true
}
);
// Code to push elements onto the list
exampleEleven.items.unshift(sampleElement);