@egjs/ngx-flicking

中文文档
4.15.0发布于 2025/11/25MITTypeScriptES Module近 30 天下载 8423

Everyday 30 million people experience. It's reliable, flexible and extendable carousel.

原始使用文档
文档目录16 节
  1. ⚙️ Installation
  2. 🏃 Quick Start
  3. Module definition
  4. Template & Script
  5. Guide
  6. 📦 Packages
  7. 📖 More Options & Examples
  8. 🙌 Contributing
  9. 📝 Feedback
  10. Local development
  11. Project setup
  12. Compiles and hot-reloads demo
  13. Compiles and minifies for production
  14. Run your tests
  15. Lints and fixes files
  16. 📜 License

Flicking Logo
Angular @egjs/ngx-flicking

npm bundle size (scoped) GitHub commit activity npm downloads per month GitHub contributors GitHub

Angular Angular wrapper of @egjs/flicking

Demo / Documentation / Other components

⚙️ 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.

      

版本与发布记录

@egjs/ngx-flicking 共发布 92 个版本,首次发布于 2019/06/12;过去 12 个月发布了 1 个版本。

版本发布日期距今
4.15.0latest2025/11/2511 个月前
4.14.12025/10/021.1 年前
4.14.02025/06/301.4 年前
4.13.02025/05/161.5 年前
4.12.02024/12/061.9 年前
4.11.42024/07/312 年前

其他发布通道:latest-3 → 3.7.3,beta → 4.10.11-beta.0。

关于 @egjs/ngx-flicking 的常见问题

@egjs/ngx-flicking 是什么?

Everyday 30 million people experience. It's reliable, flexible and extendable carousel.

如何安装 @egjs/ngx-flicking?

在项目目录运行 npm install @egjs/ngx-flicking,或使用 pnpm add / yarn add / bun add。

@egjs/ngx-flicking 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@egjs/ngx-flicking 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@egjs/ngx-flicking 可以商用吗?

@egjs/ngx-flicking 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@egjs/ngx-flicking 的下载量有多少?

根据 npm 官方下载统计,@egjs/ngx-flicking 在 2026/10/13 – 2026/11/11 这 30 天内被下载 8,423 次,日均约 281 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@egjs/ngx-flicking 还在维护吗?

最新版本 4.15.0 发布于 2025/11/25(11 个月前);至今共发布 92 个版本,其中过去 12 个月发布了 1 个;首次发布于 2019/06/12。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。