Socket
Socket
Sign inDemoInstall

@egjs/ngx-conveyer

Package Overview
Dependencies
9
Maintainers
10
Versions
26
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @egjs/ngx-conveyer

Angular Conveyer adds Drag gestures to your Native Scroll.


Version published
Weekly downloads
155
decreased by-4.32%
Maintainers
10
Created
Weekly downloads
 

Changelog

Source

1.7.1 (2023-09-27)

:sparkles: Packages

  • @egjs/conveyer 1.7.1
  • @egjs/react-conveyer 1.7.1
  • @egjs/svelte-conveyer 1.7.1
  • @egjs/vue-conveyer 1.7.1
  • @egjs/vue2-conveyer 1.7.1
  • @egjs/ngx-conveyer 1.7.1

:bug: Bug Fix

  • @egjs/conveyer
    • fix scroll methods moving to invalid position (#53) (a8bbe20)

:mega: Other

  • All

Readme

Source

Conveyer Logo
Angular 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/ngx-conveyer
# Or if you are using yarn
$ yarn add @egjs/ngx-conveyer
# Or if you are using pnpm
$ pnpm install @egjs/ngx-conveyer

🏃 Quick Start

Module definition

+import { NgxConveyerModule } from '@egjs/ngx-conveyer';
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';

@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    BrowserModule,
+    NgxConveyerModule /* Add in imports */
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { } /* Your app */
<div class="container">
  <button id="prev" [disabled]="conveyer?.isReachStart" (click)="prev()">
    prev
  </button>
  <button id="next" [disabled]="conveyer?.isReachEnd" (click)="next()">
    next
  </button>
  <div
    class="items"
    ngxConveyer
    #conveyer="ngxConveyer"
    (beginScroll)="beginScroll()"
    (finishScroll)="finishScroll()"
  >
    <div class="item">1</div>
    <div class="item">2</div>
    <div class="item">3</div>
  </div>
</div>
import { Component, Input, AfterViewInit } from '@angular/core';
import { NgxConveyerDirective } from '@egjs/ngx-conveyer';

@Component({
  selector: 'app-root',
  templateUrl: './app.component.html',
})
export class AppComponent implements AfterViewInit {
  @ViewChild('conveyer') conveyer!: NgxConveyerDirective;

  prev() {
    this.conveyer.scrollIntoView('start', {
      align: 'end',
      duration: 500,
    });
  }

  next() {
    this.conveyer.scrollIntoView('end', {
      align: 'start',
      duration: 500,
    });
  }

  beginScroll() {
    console.log('begin scroll');
  }

  finishScroll() {
    console.log('finish scroll');
  }
}

🌐 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/ngx-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

Last updated on 27 Sep 2023

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc