Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
swipe-scroller
Advanced tools
Horizontal card slider for the modern web. Requires minimum JavaScript. Demo
<slot />
.<noscript>
.tab
key2.Supported and tested on the latest evergreen browsers.
Chrome | Safari | Firefox | Safari (iOS) | Samsung Internet | |
---|---|---|---|---|---|
CSS Scroll Snap | 69 | 11 | 68 | 11 | 10.1 |
CSS Scroll-behavior | 61 | 15.4 | 36 | 15.4 | 8.2 |
Reference How it works for in-depth explanation.
For new projects, replace the content of the src/routes
folder. Download
on:scroll
- The DOM event is forwarded.// Optional Component Props
/** Width and height of the clickable control buttons. */
export let buttonWidth = '2.5rem';
/** Horizontal gap between the provided card components. */
export let cardGap = '1.25rem';
/** Hang control buttons on the outer container border. */
export let hangButtons = true;
/** Invert the scroll direction of the control buttons. */
export let invertButtons = false;
<!-- Optional Named Slots -->
<slot name="noscript" />
<slot name="button-prev" />
<slot name="button-next" />
The buttons are shown only when hovered with @media (pointer: fine)
such as a mouse cursor. ↩
For accessibility, wrap the card component with tabbable elements such as <a>
or <button>
. ↩
The project should support both +(layout|page).svelte
files. SvelteKit 1.x
is recommended. ↩
The directory contains the source code for the demo page. It can be used as a starter template. ↩
FAQs
Horizontal card slider for the modern web
The npm package swipe-scroller receives a total of 8 weekly downloads. As such, swipe-scroller popularity was classified as not popular.
We found that swipe-scroller 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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.