
Research
/Security News
npm Malware Campaign Uses Adspect Cloaking to Deliver Malicious Redirects
Malicious npm packages use Adspect cloaking and fake CAPTCHAs to fingerprint visitors and redirect victims to crypto-themed scam sites.
embla-carousel-autoscroll
Advanced tools
This plugin extends the native autoscroll plugin of the amazing Embla Carousel
First you need to follow the installation instructions for Embla Carousel, after that you can add autoscroll support:
npm install --save embla-carousel-autoscroll # yarn add embla-carousel-autoscroll
import EmblaCarousel from 'embla-carousel';
import AutoscrollPlugin from 'embla-carousel-autoscroll';
// initialize Embla Carousel
const embla = EmblaCarousel(emblaNode, {}, [
AutoscrollPlugin({ stopOnFocusIn: true }),
]);
import { useEmblaCarousel } from 'embla-carousel-react';
import AutoscrollPlugin from 'embla-carousel-autoscroll';
const EmblaCarouselComponent = ({ children }) => {
const [emblaRef, embla] = useEmblaCarousel({}, [
AutoscrollPlugin({ stopOnFocusIn: true }),
]);
// ...
};
Type: number
Default: en-US
Locale to be used in IETF's BCP 47 format.
Type: false | "off" | "polite" | "assertive"
Default: false
Whether the screen reader should announce slide changes. Recommended to be turned off if autoscroll is used.
Type: number
Default: 300
The debounce to use when updating aria properties.
Type: Function
Default: (evt: HTMLElement, target: HTMLElement) => void
Whether the autoscroll stops if a slide or it's descendant receives focus.
Type: Function
Default: (evt: HTMLElement, target: HTMLElement) => void
Whether the autoscroll stops if the user interacts with the carousel.
Type: Function
Default: (evt: HTMLElement, target: HTMLElement) => void
Whether the autoscroll stops if the user hovers the carousel.
Type: Function
Default: (evt: HTMLElement, target: HTMLElement) => void
Whether the autoscroll stops if the last snap point is reached.
You can also set global options that will be applied to all instances. This allows for overriding the default plugin options with your own:
AutoscrollPlugin.globalOptions = {
debounce: 1000,
};
Kudos to David Jerleke for creating Embla Carousel with its open API 🙏
MIT.
FAQs
An extended autoscroll plugin for Embla Carousel
The npm package embla-carousel-autoscroll receives a total of 0 weekly downloads. As such, embla-carousel-autoscroll popularity was classified as not popular.
We found that embla-carousel-autoscroll demonstrated a not healthy version release cadence and project activity because the last version was released 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
Malicious npm packages use Adspect cloaking and fake CAPTCHAs to fingerprint visitors and redirect victims to crypto-themed scam sites.

Security News
Recent coverage mislabels the latest TEA protocol spam as a worm. Here’s what’s actually happening.

Security News
PyPI adds Trusted Publishing support for GitLab Self-Managed as adoption reaches 25% of uploads