All Projects → suhailsulu → react-carousel-3d

suhailsulu / react-carousel-3d

Licence: other
3D carousal component in react

Programming Languages

javascript
184084 projects - #8 most used programming language
SCSS
7915 projects

Projects that are alternatives of or similar to react-carousel-3d

tic-tac-toe-game-using-bit
Simple Tic Tac Toe game built with react-typescript components
Stars: ✭ 19 (-85.27%)
Mutual labels:  react-components
react-gridsheet
React component like SpreadSheet
Stars: ✭ 121 (-6.2%)
Mutual labels:  react-components
furl
Functional react.js components.
Stars: ✭ 33 (-74.42%)
Mutual labels:  react-components
book-fullstack-react
Fullstack React: The Complete Guide to ReactJS and Friends by Anthony Accomazzo
Stars: ✭ 100 (-22.48%)
Mutual labels:  react-components
cyber-gym
Deliberately vulnerable scripts for Web Security training
Stars: ✭ 19 (-85.27%)
Mutual labels:  slide
reveal-sampler
A reveal.js plugin to fetch code samples from source files
Stars: ✭ 20 (-84.5%)
Mutual labels:  slide
alcedo-ui
A set of React components.
Stars: ✭ 23 (-82.17%)
Mutual labels:  react-components
react-components
React components library.
Stars: ✭ 27 (-79.07%)
Mutual labels:  react-components
react-component-depot
A collection of react components with video tutorials
Stars: ✭ 359 (+178.29%)
Mutual labels:  react-components
dashkit-ui
UI Components built on React.
Stars: ✭ 17 (-86.82%)
Mutual labels:  react-components
gypcrete
iCHEF web components library, built with React.
Stars: ✭ 28 (-78.29%)
Mutual labels:  react-components
terra-framework
Terra framework houses composed and higher order react components to help developers quickly build out new applications.
Stars: ✭ 60 (-53.49%)
Mutual labels:  react-components
Mosque-Screen
Chat: https://discord.gg/CG7frj2 - Email: [email protected]. We do not provide any support, this is a volunteer-based project therefore we cannot commit to any time to resolve local issues.
Stars: ✭ 54 (-58.14%)
Mutual labels:  react-components
react-component-lib
Boilerplate repo for creating npm packages with React components written in TypeScript and using styled-components
Stars: ✭ 69 (-46.51%)
Mutual labels:  react-components
vscode-react-javascript-snippets
Extension for React/Javascript snippets with search supporting ES7+ and babel features
Stars: ✭ 782 (+506.2%)
Mutual labels:  react-components
engage-ui
Engage UI is a React component library designed to help developers and designers creater the delightful web experiences.
Stars: ✭ 14 (-89.15%)
Mutual labels:  react-components
react-theme
Production ready Wordpress theme built with React, Redux, Redux-Thunk, Intl, React Router v4, etc... and packaged by Webpack 2. Enjoy!
Stars: ✭ 14 (-89.15%)
Mutual labels:  react-components
Fable.SemanticUI
React.SeamanticUI to Fable bindings
Stars: ✭ 15 (-88.37%)
Mutual labels:  react-components
material-react-components
React components implementing the Material Design specification
Stars: ✭ 21 (-83.72%)
Mutual labels:  react-components
template-react-native-typescript
Minimal template with best practices and automation scripts for improved developer experience.
Stars: ✭ 19 (-85.27%)
Mutual labels:  react-components

React 3D Carousel component

3D carousel component in react (with swipe support).

Demo

Demo

jsfiddle (https://jsfiddle.net/suhailsulu/8hnqaz2c/)

Installation

npm

 npm i 3d-react-carousal

yarn

 yarn add 3d-react-carousal
Add fa-css in public.html for arrows
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous">
Importing the component
import {Carousel} from '3d-react-carousal';
.
.
.
let slides = [
    <img  src="https://picsum.photos/800/300/?random" alt="1" />,
    <img  src="https://picsum.photos/800/301/?random" alt="2" />  ,
    <img  src="https://picsum.photos/800/302/?random" alt="3" />  ,
    <img  src="https://picsum.photos/800/303/?random" alt="4" />  ,
    <img src="https://picsum.photos/800/304/?random" alt="5" />   ];
.
.
.
.
const callback = function(index){
    console.log("callback",index);
}
.
.
<Carousel slides={slides} autoplay={true} interval={1000} onSlideChange={callback}/>

props

slides :- Array of react components
autoplay :- Boolean (true or false) - optional
interval :- number (time in milliseconds) - optional
arrows :- Boolean (true or false) - optional
onSlideChange :- callback function with index of the slide as argument - optional
You can give any component in the slides like images, divs or even your custom components

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].