winter/modules/system/assets/ui/docs/drag-scroll.md
2015-07-01 11:25:08 +10:00

541 B

Drag.Scroll

Allows the dragging of things.

Example

<div id="scrollExample">
    <div class="scroll-stripes-example"></div>
</div>
Drag the area above left-to-right

<style>
#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;
}
</style>

<script>
    $('#scrollExample').dragScroll();
</script>