본문으로 건너뛰기
Version: 1.1.0

Quick Start

Native Scroll is the most basic and best scrolling function that a browser can support.
Conveyer adds Drag gestures to your Native Scroll.

Add the script/CSS to the page.

<!-- https://naver.github.io/egjs-conveyer/release/latest/dist/conveyer.min.js -->
<script src="https://unpkg.com/conveyer/dist/conveyer.min.js" crossorigin="anonymous"></script>

Or, you can rather import them if you're using a bundler like webpack or rollup.

import Conveyer from "@egjs/conveyer";

Then, add some basic HTML layout of Conveyer to your page.

<div class="items">
<div class="item">1</div>
<div class="item">2</div>
<div class="item">3</div>
</div>

Then initialize Conveyer instance with JavaScript after.

import Conveyer from "@egjs/react-conveyer";

const ig = new Conveyer(".items");