scrollview-dom.html revision f4093e4718eac9fb141f68315b22f18502ac8933
<html>
<head>
<title>ScrollView Example</title>
<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">
<style>
#scrollview-bounding {
xborder:dotted 2px orange;
height:500px;
}
#scrollview-content {
white-space:nowrap;
}
#scrollview-content li{
display:inline-block;
width:298px;
height:298px;
border:1px solid red;
color:black;
font-size:40px;
opacity: 0.5;
background-image: -webkit-linear-gradient(top, red, white, blue);
text-align:center;
}
</style>
YUI({
debug: true,
filter:"raw"
}).use('scrollview-base', 'scrollview-paginator', function(Y) {
for (var j=0; j<100; j++){
}
id: "scrollview",
srcNode : '#scrollview-content',
width: "300px"
});
selector: 'li',
optimizeDOM: true
});
});
</script>
</head>
<body class="yui3-skin-sam">
<div>
<div id="scrollview-content">
<ul></ul>
</div>
</div>
</body>
</html>