
Security News
libxml2 Maintainer Ends Embargoed Vulnerability Reports, Citing Unsustainable Burden
Libxml2’s solo maintainer drops embargoed security fixes, highlighting the burden on unpaid volunteers who keep critical open source software secure.
react-stacker
Advanced tools
Carousel / slider component built with React.js. It’s flexible, fast and touch-friendly.
Install react-stacker
using npm.
npm install --save react-stacker
or if you prefer yarn
yarn add react-stacker
import React from "react";
import ReactDOM from "react-dom";
import { StackerSlide, StackerSlider } from "react-stacker";
export class App extends React.Component {
onChangeHandler = value => {
console.log("On change slide");
};
onPrevChangeHandler = event => {
console.log("On prev change slide");
};
onNextChangeHandler = event => {
console.log("On next change slide");
};
render() {
const { value } = this.state;
return (
<StackerSlider
dots={true}
infiniteLoop={true}
onChange={this.onChangeHandler}
onPrevChange={this.onPrevChangeHandler}
onNextChange={this.onNextChangeHandler}
>
<StackerSlide>
Slide 6/6
</StackerSlide>
<StackerSlide>
Slide 5/6
</StackerSlide>
<StackerSlide>
Slide 4/6
</StackerSlide>
<StackerSlide>
Slide 3/6
</StackerSlide>
<StackerSlide>
Slide 2/6
</StackerSlide>
<StackerSlide>
Slide 1/6
</StackerSlide>
</StackerSlider>
);
}
}
ReactDOM.render(<App />, document.getElementById("root"));
Props | Type | Default | Description |
---|---|---|---|
className | string | - | - |
zDistance | number | 50 | Distance between slides by z axis |
yDistance | number | 30 | Distance between slides by y axis |
transitionDuration | number | 0.8 | Slide transition speed. Number of milliseconds accepted. |
infiniteLoop | boolean | true | Flag to make the carousel loop around when it reaches the end. |
dots | boolean | false | Flag to render pagination component. |
dotsColor | string | #0000007d | The fill color of pagination dots. Any valid CSS color is accepted |
dotsActiveColor | string | #ff0000 | The fill color of the active pagination dot. Any valid CSS color is accepted. |
dotsSize | string | 8px | The size of each pagination dot. Pixel values are accepted. |
dotsPadding | string | 6px | The padding inside each pagination dot. Pixel values are accepted. |
slideWidth | string | - | Weight of the slides. |
slideHeight | string | - | Height of the slides. |
Event | Type | Emitter |
---|---|---|
onChange | function | carousel |
onPrevChange | function | carousel |
onNextChange | function | carousel |
When raising an issue, please add as much details as possible. Screenshots, video recordings, or anything else that can make it easier to reproduce the bug you are reporting.
This project is licensed under the MIT License
FAQs
3d stacked content swiper/carousel component for React.js
The npm package react-stacker receives a total of 3 weekly downloads. As such, react-stacker popularity was classified as not popular.
We found that react-stacker 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
Libxml2’s solo maintainer drops embargoed security fixes, highlighting the burden on unpaid volunteers who keep critical open source software secure.
Research
Security News
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
Research
Security News
An in-depth analysis of credential stealers, crypto drainers, cryptojackers, and clipboard hijackers abusing open source package registries to compromise Web3 development environments.