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

@egjs/react-flicking

Package Overview
Dependencies
Maintainers
8
Versions
139
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@egjs/react-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-beta
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
12K
decreased by-31.49%
Maintainers
8
Weekly downloads
 
Created
Source

@egjs/react-flicking npm version

A react component that can easily use @egjs/flicking

Install

$ npm install @egjs/react-flicking --save

How to use

import { FlickingEvent, SelectEvent, ChangeEvent, NeedPanelEvent } from "@egjs/flicking";
import Flicking from "@egjs/react-flicking";
import { Parallax, Fade, AutoPlay } from "@egjs/flicking-plugins";

<Flicking
  tag = "div"
  onNeedPanel = {(e: NeedPanelEvent) => {}}
  onMoveStart = {(e: FlickingEvent) => {}}
  onMove = {(e: FlickingEvent) => {}}
  onMoveEnd = {(e: FlickingEvent) => {}}
  onHoldStart = {(e: FlickingEvent) => {}}
  onHoldEnd = {(e: FlickingEvent) => {}}
  onRestore = {(e: FlickingEvent) => {}}
  onSelect = {(e: SelectEvent) => {}}
  onChange = {(e: ChangeEvent) => {}}
  classPrefix = "eg-flick"
  deceleration = {0.0075}
  horizontal = {true}
  circular = {false}
  infinite = {false}
  infiniteThreshold = {0}
  lastIndex = {Infinity}
  threshold = {40}
  duration = {100}
  panelEffect = {x => 1 - Math.pow(1 - x, 3)}
  defaultIndex = {0}
  inputType = {["touch", "mouse"]}
  thresholdAngle = {45}
  bounce = {10}
  autoResize = {false}
  adaptive = {false}
  zIndex = {2000}
  bound = {false}
  overflow = {false}
  hanger = {"50%"}
  anchor = {"50%"}
  gap = {0}
  moveType = {{type: "snap", count: 1}}
>
  <div>panel 0</div>
  <div>panel 1</div>
  <div>panel 2</div>
</Flicking>

More examples

Development

npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

Bug Report

If you find a bug, please report it to us using the Issues page on GitHub.

License

react-infinitegrid 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.

FAQs

Package last updated on 23 May 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