2015-07-01 08:34:15 +00:00
|
|
|
# Drag.Scroll
|
|
|
|
|
|
2015-07-31 08:05:30 +00:00
|
|
|
Allows the elements with `overflow: hidden` to be dragged.
|
2015-07-01 08:34:15 +00:00
|
|
|
|
2015-07-31 08:05:30 +00:00
|
|
|
### Example
|
|
|
|
|
|
|
|
|
|
Drag the area above left-to-right.
|
2015-07-01 08:34:15 +00:00
|
|
|
|
|
|
|
|
<div id="scrollExample">
|
|
|
|
|
<div class="scroll-stripes-example"></div>
|
|
|
|
|
</div>
|
2015-07-31 08:05:30 +00:00
|
|
|
|
2015-07-01 08:34:15 +00:00
|
|
|
|
|
|
|
|
<style>
|
2015-07-31 08:05:30 +00:00
|
|
|
#scrollExample {
|
|
|
|
|
width: 100%; height: 50px; overflow: hidden;
|
|
|
|
|
}
|
|
|
|
|
.scroll-stripes-example {
|
|
|
|
|
height: 50px; width: 5000px;
|
|
|
|
|
background-image: linear-gradient(90deg, gray, white, gray);
|
|
|
|
|
background-size: 500px 50px;
|
|
|
|
|
}
|
2015-07-01 08:34:15 +00:00
|
|
|
</style>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
$('#scrollExample').dragScroll();
|
|
|
|
|
</script>
|