@egjs/vue-conveyer

Vue 3 Conveyer adds Drag gestures to your Native Scroll.
4,038 126
Install
npm install @egjs/vue-conveyer@1.8.0
Latest Version:1.8.0
Vue:3
License:MIT
Last Updated:Sep 29, 2026
Links: GitHub  ·  npm
Maintainer: ajaxpf

Conveyer Logo
Vue 3 Conveyer

version npm weekly downloads npm bundle size (scoped) Github actions Coveralls github

Demo / Documentation / Other components

Conveyer adds Drag gestures to your Native Scroll.
📱💻🖥


✨ Features

  • You can use Native Scroll-like behavior through Drag.
  • By adding easing features such as bounce, elasticity, and back, you can create smooth scrolling animations like Native Scroll.
  • Supports Reactive Properties that can change state through properties that automatically detect changes instead of events.
  • You can use custom scroll events like onBeginScroll, onFinishScroll, onReachStart, onLeaveStart,

⚙️ Installation

$ npm install @egjs/vue-conveyer

🏃 Quick Start

in the result of the useConveyer method

<template>
  <div class="App">
    <button id="prev" :disabled="isReachStart" @click="prev">PREV</button>
    <button id="next" :disabled="isReachEnd" @click="next">NEXT</button>
    <div class="items" ref="ref">
      <div class="item"><a href="#1">1</a></div>
      <div class="item"><a href="#2">2</a></div>
      <div class="item"><a href="#3">3</a></div>
      <div class="item"><a href="#4">4</a></div>
      <div class="item"><a href="#5">5</a></div>
      <div class="item"><a href="#6">6</a></div>
      <div class="item"><a href="#7">7</a></div>
      <div class="item"><a href="#8">8</a></div>
      <div class="item"><a href="#9">9</a></div>
      <div class="item"><a href="#10">10</a></div>
      <div class="item"><a href="#11">11</a></div>
      <div class="item"><a href="#12">12</a></div>
    </div>
  </div>
</template>

<script lang="ts">
import { defineComponent } from "vue";
import { useConveyer } from "@egjs/vue-conveyer";

export default defineComponent({
  name: "App",
  setup() {
    const {
      ref,
      // reactive properties
      isReachStart,
      isReachEnd,
      // methods
      scrollIntoView,
      // events
      onBeginScroll,
      onFinishScroll,
    } = useConveyer({
      horizontal: false,
    });

    onBeginScroll(() => {
      console.log("begin scroll");
    });
    onFinishScroll(() => {
      console.log("finish scroll");
    });

    return {
      ref,
      isReachStart,
      isReachEnd,
      scrollIntoView,
    };
  },
  methods: {
    prev() {
      this.scrollIntoView("start", {
        align: "end",
        duration: 500,
      });
    },
    next() {
      this.scrollIntoView("end", {
        align: "start",
        duration: 500,
      });
    },
  },
});
</script>

🌐 Supported Browsers

IE Chrome Firefox Safari iOS Android
9+(With polyfill), 11+ for Angular & Svelte Latest Latest Latest 7+ 4+

📼 Demos

Check our Demos.

📖 Documentation

See Documentation page.

🙌 Contributing

See CONTRIBUTING.md.

📝 Feedback

Please file an Issue.

📜 License

@egjs/vue-conveyer is released under the MIT license.

Copyright (c) 2022-present NAVER Corp.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

      

Related Packages

@cfcs/vue3

Write once, create framework components that supports React, Vue, Svelte, and mo...

228,245 119
@cfcs/vue2

Write once, create framework components that supports React, Vue, Svelte, and mo...

33,545 119
vue-dragscroll

vue directive to make a scrollable element scroll by draging to the scroll direc...

1,541,547 264
vue-dragscroll-extended

Extended version of vue-dragscroll

447
vue-use-async-hook

Wrap async function with reactive and observable promise state

1,522 2

Version History

Version Released Vue License
1.8.0 ^3.2.21 MIT
1.7.1 ^3.2.21 MIT
1.7.0 ^3.2.21 MIT
1.6.2 ^3.2.21 MIT
1.6.1 ^3.2.21 MIT
Pre-releases (1)
Version Released Vue License
1.8.1-alpha.0 ^3.2.21 MIT