
Research
Security News
Lazarus Strikes npm Again with New Wave of Malicious Packages
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
embla-carousel-wheel-gestures
Advanced tools
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:
yarn add embla-carousel-wheel-gestures # npm install --save embla-carousel-wheel-gestures
import EmblaCarousel from 'embla-carousel'
import { WheelGesturesPlugin } from 'embla-carousel-wheel-gestures'
// initialize Embla Carousel
const embla = EmblaCarousel(emblaNode, options, [
WheelGesturesPlugin()
])
import { useEmblaCarousel } from 'embla-carousel-react'
import { WheelGesturesPlugin } from 'embla-carousel-wheel-gestures'
const EmblaCarouselComponent = ({ children }) => {
const [emblaRef, embla] = useEmblaCarousel({ loop: false, skipSnaps: true }, [
WheelGesturesPlugin(),
])
// ...
}
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:
WheelGesturesPlugin.globalOptions = {
wheelDraggingClass: 'my-class',
}
If you need to support IE 10 & 11 you might need to install and add extra polyfills:
// Adds support old IE >= 10
import 'core-js/stable'
import 'events-polyfill/src/constructors/MouseEvent'
Kudos to David Jerleke for creating Embla Carousel with its open API 🙏
MIT.
FAQs
wheel gestures for embla carousel
The npm package embla-carousel-wheel-gestures receives a total of 79,759 weekly downloads. As such, embla-carousel-wheel-gestures popularity was classified as popular.
We found that embla-carousel-wheel-gestures demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.
Security News
Opengrep continues building momentum with the alpha release of its Playground tool, demonstrating the project's rapid evolution just two months after its initial launch.