Catalog npm
PACKAGE EXPLORERView in registry

3d-carousel-component

npm

A classy 3d carousel for react.js

Versions collected11
Direct dependencies16From release 1.1.6
Last observed20 Oct, 19:32 UTC

README

Current package documentation
  • A classy 3d carousel for react.js;✨💞

    Example

    Have a Look at the Example

Table of Contents

Getting Started🚀

npm i 3d-carousel-component

import Carousel3D from "3d-carousel-component";

const YourComponent = () => {
  return (
    <Carousel3D
      ContainerStyle={ContainerStyle}
      CardStyle={CardStyle}
      CardList={CardList}
    />
  );
};

Customization🔥

  • Basically you have to pass three props, Namely:

    • ContainerStyle
    • CardStyle
    • CardList
  • Out of this first two are for styling and last one contains list of your cards.

  • Note all variables, props, properties follow UpperCamelCase Rule.*

    ContainerStyle

    • It allows you to style the main outer container of carousel.
    • Following properties are available:
    KeyFunction
    WidthWidth of the main container
    HeightHeight of the main container
    PaddingPadding of the main container
    MarginMargin of the main container
    BackgroundColorBackground color of the main container
    BackgroundBackground property
    • Look at the example below for more understanding.

    CardStyle

    • It allows you to style each card of the carousel.
    • Following properties are available:
    KeyFunction
    WidthWidth of each Card
    HeightHeight of each Card
    PaddingPadding inside of your Card
    AspectRatioDefines Aspect ratio of your Card
    • Look at the example below for more understanding.

    CardList

    • It bassically an array of objects with "element" key containing content of your card. Can be anyting you wish to have...How about a carousel with embeded youtube videos.😉

Examples👾

import Carousel3D from  "3d-carousel-component";

const YourComponent  =  ()  =>  {
	//List of element you want inside carousel.
	const  CardList  = [
		{ element:  <div>Card 1</div>, },
		{ element:  <div>Card 2</div>, },
		{ element:  <div>Card 3</div>, },
		{ element:  <div>Card 4</div>, },
		{ element:  <div>Card 5</div>, },
		{ element:  <div>Card 6</div>, },
		{ element:  <div>Card 7</div>, },
		{ element:  <div>Card 8</div>, },
	];
	const ContainerStyle = {
		BackgroundColor:  "Cyan",
		Width:  "100%",
		Padding:  "1em",
		Margin:  "auto",
	};
	const CardStyle = {
		Width:  "100%",
		BackgroundColor: "blanchedalmond",
		Padding:  "0.5em 1em",
	};

	return  <Carousel3D
			ContainerStyle={ContainerStyle}
			CardStyle={CardStyle}
			CardList={CardList}
		/>;
};

export defalut YourComponent;

Example Code Link: click here

Issues??🐛

  • Having any issues or found any bugs, feel free to reach me on github - click here.📧

Special Mention💕

  • Special Thanks to Akshit Gupta for constant motivation and support.

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 11

Collected releases
VersionPublishedDirect dependenciesOpen version
1.1.6Registry latest21 Feb 202216
1.1.421 Feb 202216
1.1.321 Feb 202216
1.1.221 Feb 202216
1.1.121 Feb 202216
1.1.021 Feb 202216
1.0.711 Feb 202215
1.0.611 Feb 202215
1.0.511 Feb 202215
1.0.411 Feb 202215
1.0.311 Feb 202215

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
rahulmodi1310/3d-carousel-component

Shared repository data · GitHub

License detected in repository
Not collected

Repository

PENDING
rahulmodi1310.github.io/3d-carousel-component

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 19:32 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:748825979acebd317b903a8c9e7ad66acb43fe03b0b3dd8b19a6d830a30012ff