Gathering detailed insights and metrics for embla-carousel-wheel-gestures
Gathering detailed insights and metrics for embla-carousel-wheel-gestures
Gathering detailed insights and metrics for embla-carousel-wheel-gestures
Gathering detailed insights and metrics for embla-carousel-wheel-gestures
npm install embla-carousel-wheel-gestures
v8.0.1
Published on 29 May 2024
Support embla-carousel v8
Published on 10 May 2023
embla-carousel v7
Published on 06 Jul 2022
feat: target option
Published on 06 May 2022
Shadow DOM Support 🧛🏻♀️
Published on 18 Mar 2022
feat: Global (Default) Options - v2.1.0
Published on 10 Feb 2022
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
58 Stars
270 Commits
9 Forks
4 Watching
4 Branches
6 Contributors
Updated on 25 Nov 2024
Minified
Minified + Gzipped
TypeScript (84.24%)
JavaScript (15.76%)
Cumulative downloads
Total Downloads
Last day
-4%
10,215
Compared to previous day
Last week
10.9%
57,425
Compared to previous week
Last month
21.6%
238,315
Compared to previous month
Last year
85.3%
1,582,048
Compared to previous year
This plugin adds wheel interactions to the amazing Embla Carousel
First you need to follow the installation instructions for Embla Carousel, after that you can add wheel support:
1yarn add embla-carousel-wheel-gestures # npm install --save embla-carousel-wheel-gestures
1import EmblaCarousel from 'embla-carousel' 2import { WheelGesturesPlugin } from 'embla-carousel-wheel-gestures' 3 4// initialize Embla Carousel 5const embla = EmblaCarousel(emblaNode, options, [ 6 WheelGesturesPlugin() 7])
1import { useEmblaCarousel } from 'embla-carousel-react' 2import { WheelGesturesPlugin } from 'embla-carousel-wheel-gestures' 3 4const EmblaCarouselComponent = ({ children }) => { 5 const [emblaRef, embla] = useEmblaCarousel({ loop: false, skipSnaps: true }, [ 6 WheelGesturesPlugin(), 7 ]) 8 9 // ... 10}
Get started instantly with one of the CodeSandboxes below.
Type: string
Default: is-wheel-dragging
Choose a classname that will be applied to the container during a wheel gesture. Pass an empty string to opt-out.
Type: 'x' | 'y'
Default: undefined
Force an axis on which to listen for wheel events. Useful if you want to slide horizontally when scrolling vertically or vice versa.
Type: Element
Default: undefined
Specify the element that should be observed for wheel events.
You can also set global options that will be applied to all instances. This allows for overriding the default plugin options with your own:
1WheelGesturesPlugin.globalOptions = {
2 wheelDraggingClass: 'my-class',
3}
If you need to support IE 10 & 11 you might need to install and add extra polyfills:
1// Adds support old IE >= 10 2import 'core-js/stable' 3import 'events-polyfill/src/constructors/MouseEvent'
Kudos to David Jerleke for creating Embla Carousel with its open API 🙏
MIT.
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
Found 1/24 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
17 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-11-18
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn Moreembla-carousel
A lightweight carousel library with fluid motion and great swipe precision
embla-carousel-reactive-utils
Reactive utilities for Embla Carousel
embla-carousel-react
A lightweight carousel library with fluid motion and great swipe precision
embla-carousel-autoplay
An autoplay plugin for Embla Carousel