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

@egjs/vue-flicking

Package Overview
Dependencies
Maintainers
8
Versions
84
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@egjs/vue-flicking

A module used to implement flicking interactions. With this module, you can make flicking gestures, which are ways to navigate left and right to move between panels arranged side by side.

  • 3.0.0-beta6
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4.2K
decreased by-6.58%
Maintainers
8
Weekly downloads
 
Created
Source

Flicking Image
@egjs/vue-flicking

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

Vue.js Vue wrapper of @egjs/flicking

Demo / Documentation / Other components

⚙️ Installation

npm install --save @egjs/vue-flicking

❗ Changes from @egjs/flicking

  • All camelCased event names became kebab-case
    • e.g., moveEnd => move-end
  • You can't use methods that manipulates DOM directly
    • e.g., append(), remove(), ...

🏃 Quick Start

Global registration

import VueFlicking from "@egjs/vue-flicking";
Vue.use(VueFlicking);

Local registration

import { Flicking } from "@egjs/vue-flicking";

export default {
  components: {
    Flicking: Flicking,
  }
}

Usage

<template>
  <flicking
    :options="{ gap: 10, moveType='freeScroll' }"
    :tag="'div'"
    :plugins="plugins"
    @need-panel="e => {
      // ADD PANELS
    }"
    @move-end="e => {
      // HANDLE INDEX CHANGE
    }"
  >
    <div>CONTENTS OF PANEL 0</div>
    <div>CONTENTS OF PANEL 1</div>
    <div>CONTENTS OF PANEL 2</div>
  </flicking>
</template>
<script>
import { Component, Vue } from "vue-property-decorator";
import { Fade, AutoPlay } from "@egjs/flicking-plugins";

@Component({})
export default class DemoClass extends Vue {
  plugins = [new Fade(), new AutoPlay(2000, "NEXT")];
}
</script>

🔍 SSR(Server Side Rendering) Guide

Check GUIDE_SSR.md

📦 Packages

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

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

📖 More Examples

See demo/ for more implementation examples.

🙌 Contributing

See CONTRIBUTING.md

📝 Feedback

Please file an Issue with label "Vue".

📜 License

@egjs/flicking is released under the MIT license.

FAQs

Package last updated on 10 Jun 2019

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