4.11.2 • Published 5 months ago

@egjs/ngx-flicking v4.11.2

Weekly downloads
412
License
MIT
Repository
github
Last release
5 months ago

⚙️ Installation

npm install @egjs/ngx-flicking
# Or if you're using yarn
yarn add @egjs/ngx-flicking
# Or if you're using pnpm
pnpm install @egjs/ngx-flicking

🏃 Quick Start

Module definition

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

@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    BrowserModule,
+   NgxFlickingModule /* Add in imports */
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { } /* Your app */

Then we have to bundle flicking.css. The file may be imported into the styles.scss or defined in the angular.json configuration in the options.build.styles list:

// styles.scss
@import '@egjs/flicking/dist/flicking.css';

Template & Script

import { Plugin } from '@egjs/ngx-flicking';
import { Fade, AutoPlay } from '@egjs/flicking-plugins';

@Component({
  selector: 'flicking-demo',
  template: `
    <ngx-flicking
      [options]="{ circular: true, duration: 500 }"
      [plugins]="plugins"
      (needPanel)="onNeedPanel($event)"
    >
      <div class="panel">
        <img src="https://naver.github.io/egjs-flicking/images/bg01.jpg" />
      </div>
      <div class="panel">
        <img src="https://naver.github.io/egjs-flicking/images/bg02.jpg" />
      </div>
      <div class="panel">
        <img src="https://naver.github.io/egjs-flicking/images/bg03.jpg" />
      </div>
    </ngx-flicking>
  `,
})
export class FlickingDemo implements OnInit {
  plugins: Plugin[] = [
    new Fade(),
    new AutoPlay({
      duration: 2000,
      direction: 'NEXT',
    }),
  ];

  onNeedPanel(e) {
    // ADD PANELS
  }
}

Guide

📦 Packages

You can use all plugins just like native @egjs/flicking.

Check @egjs/flicking-plugins for readymade effects we're providing.

📖 More Options & Examples

Options / Demos

🙌 Contributing

See CONTRIBUTING.md

📝 Feedback

Please file an Issue with label "Angular".

Local development

Project setup

npm install

Compiles and hot-reloads demo

npm run start

Compiles and minifies for production

npm run build

Run your tests

npm run test

Lints and fixes files

npm run lint

📜 License

egjs-flicking is released under the MIT license.

Copyright (c) 2015-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.
4.11.2

5 months ago

4.10.11

10 months ago

4.11.0

9 months ago

4.11.1

6 months ago

4.10.11-beta.0

10 months ago

4.10.9

11 months ago

4.10.10-beta.0

11 months ago

4.10.6

1 year ago

4.10.7

1 year ago

4.10.10

11 months ago

4.10.8-beta.0

11 months ago

4.10.5

1 year ago

4.10.1

2 years ago

4.10.2

2 years ago

4.10.3

1 year ago

4.10.4

1 year ago

4.10.0

2 years ago

4.9.3

2 years ago

4.9.2

2 years ago

4.9.1

2 years ago

4.9.0

2 years ago

4.7.2

2 years ago

4.7.1

2 years ago

4.7.3

2 years ago

4.8.1

2 years ago

4.8.0

2 years ago

4.7.0

2 years ago

4.6.1

2 years ago

4.6.0

2 years ago

4.6.2

2 years ago

3.7.3

2 years ago

4.5.2

2 years ago

3.7.2

2 years ago

4.4.4

2 years ago

3.7.1

2 years ago

4.5.0

2 years ago

4.5.1

2 years ago

4.4.3

2 years ago

4.4.1

3 years ago

4.4.2

2 years ago

3.7.0

2 years ago

4.3.2

3 years ago

4.4.0

3 years ago

4.3.1

3 years ago

4.3.0

3 years ago

4.2.5

3 years ago

4.2.4

3 years ago

4.2.3

3 years ago

4.2.2

3 years ago

3.6.3

3 years ago

4.2.1

3 years ago

4.2.0

3 years ago

4.1.2

3 years ago

4.1.2-beta.0

3 years ago

4.1.1

3 years ago

4.1.0

3 years ago

4.0.1

3 years ago

3.6.2

3 years ago

4.0.0

3 years ago

3.6.1

3 years ago

3.6.0

3 years ago

3.5.0

3 years ago

3.4.3

3 years ago

3.4.3-beta.0

3 years ago

3.4.2

3 years ago

3.4.1

3 years ago

3.4.0

3 years ago

3.3.3

3 years ago

3.3.2

4 years ago

3.3.1

4 years ago

3.3.0

4 years ago

3.2.1

4 years ago

3.2.0

4 years ago

3.1.6

4 years ago

3.1.5

4 years ago

3.1.4

4 years ago

3.1.3

4 years ago

3.1.2

4 years ago

3.1.2-rc2

5 years ago

3.1.2-rc

5 years ago

3.1.1

5 years ago

3.1.0

5 years ago

3.0.0

5 years ago

3.0.0-beta2

5 years ago

3.0.0-beta

5 years ago