scrollview_paging.html revision 0ea25ffeeb3e840733740fec918abaf4d3ddac91
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
<link rel="stylesheet" href="/build/cssreset/reset-min.css" type="text/css" media="screen" title="no title" charset="utf-8">
<link rel="stylesheet" href="assets/tests.css" type="text/css" media="screen" title="no title" charset="utf-8">
#scrollable {
white-space: nowrap;
text-align: center;
}
#scrollable li {
border-bottom: 0;
}
</style>
</head>
<body class="yui-skin-sam">
<div class="header">
</div>
<div id="scrollable" class="yui3-scrollview-loading paged">
<ul>
<li><img src="http://farm4.static.flickr.com/3358/3644583408_d7e8d4ee44.jpg" style="border:2px solid red" /></li>
<li><img src="http://farm4.static.flickr.com/3358/3644583408_d7e8d4ee44.jpg" style="border:2px solid blue" /></li>
<li><img src="http://farm4.static.flickr.com/3358/3644583408_d7e8d4ee44.jpg" style="border:2px solid green" /></li>
<li><img src="http://farm4.static.flickr.com/3358/3644583408_d7e8d4ee44.jpg" style="border:2px solid yellow" /></li>
</ul>
</div>
<div id="pager">
<button id="prev-page">Prev</button>
<button id="next-page">Next</button>
</div>
YUI({filter:"raw"}).use('scrollview', 'scrollview-paginator', function(Y) {
var scrollView = new Y.ScrollView({
contentBox : '#scrollable',
width : 320,
flick : {
minVelocity:0.3
}
});
selector: 'li'
});
});
</script>
</body>
</html>