Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@egjs/svelte-conveyer

Package Overview
Dependencies
Maintainers
9
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@egjs/svelte-conveyer

Svelte Conveyer adds Drag gestures to your Native Scroll.

  • 1.4.8-beta.0
  • beta
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
184
decreased by-14.02%
Maintainers
9
Weekly downloads
 
Created
Source

Conveyer Logo
Svelte 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/svelte-conveyer

🏃 Quick Start

in the result of the useConveyer method

<script>
  import { useConveyer } from "@egjs/svelte-conveyer";

  const {
    ref: ref1,
    // reactive properties
    isReachStart,
    isReachEnd,
    // methods
    scrollIntoView,
    // events
    onBeginScroll,
    onFinishScroll,
  } = useConveyer({
    horizontal: false,
  });

  onBeginScroll(() => {
    console.log("begin scroll");
  });
  onFinishScroll(() => {
    console.log("finish scroll");
  });
</script>
<div class="App">
  <button id="prev" disabled={$isReachStart} on:click={() => {
    scrollIntoView("start", {
      align: "end",
      duration: 500,
    });
  }}>PREV</button>
  <button id="next" disabled={$isReachEnd} on:click={() => {
    scrollIntoView("end", {
      align: "start",
      duration: 500,
    });
  }}>NEXT</button>
  <div class="items" use:ref1>
    <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>

🌐 Supported Browsers

IEChromeFirefoxSafariiOSAndroid
9+(With polyfill), 11+ for Angular & SvelteLatestLatestLatest7+4+

📼 Demos

Check our Demos.

📖 Documentation

See Documentation page.

🙌 Contributing

See CONTRIBUTING.md.

📝 Feedback

Please file an Issue.

📜 License

@egjs/svelte-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.

      

Keywords

FAQs

Package last updated on 05 Jan 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc