Catalog npm
Back to packageRELEASE DETAILS

1.1.0

npm

3d-carousel-component

A classy 3d carousel for react.js

Published21 Feb 2022
Direct dependencies16
Transitive dependenciesNot calculated

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.

Declared dependencies 18

Native requirements
16 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
@babel/cli
Environment
{
  "local_name": "@babel/cli",
  "alias": false,
  "peer_metadata": null
}
^7.17.0development
@babel/core
Environment
{
  "local_name": "@babel/core",
  "alias": false,
  "peer_metadata": null
}
^7.17.2development
@babel/preset-env
Environment
{
  "local_name": "@babel/preset-env",
  "alias": false,
  "peer_metadata": null
}
^7.16.11development
@babel/preset-react
Environment
{
  "local_name": "@babel/preset-react",
  "alias": false,
  "peer_metadata": null
}
^7.16.7development
babel-loader
Environment
{
  "local_name": "babel-loader",
  "alias": false,
  "peer_metadata": null
}
^8.2.3development
core-js
Environment
{
  "local_name": "core-js",
  "alias": false,
  "peer_metadata": null
}
^3.21.0development
css-loader
Environment
{
  "local_name": "css-loader",
  "alias": false,
  "peer_metadata": null
}
^6.6.0development
file-loader
Environment
{
  "local_name": "file-loader",
  "alias": false,
  "peer_metadata": null
}
^6.2.0development
gh-pages
Environment
{
  "local_name": "gh-pages",
  "alias": false,
  "peer_metadata": null
}
^3.2.3development
html-webpack-plugin
Environment
{
  "local_name": "html-webpack-plugin",
  "alias": false,
  "peer_metadata": null
}
^5.5.0development
react
Environment
{
  "local_name": "react",
  "alias": false,
  "peer_metadata": null
}
^17.0.2development
react-dom
Environment
{
  "local_name": "react-dom",
  "alias": false,
  "peer_metadata": null
}
^17.0.2development
style-loader
Environment
{
  "local_name": "style-loader",
  "alias": false,
  "peer_metadata": null
}
^3.3.1development
webpack
Environment
{
  "local_name": "webpack",
  "alias": false,
  "peer_metadata": null
}
^5.68.0development
webpack-cli
Environment
{
  "local_name": "webpack-cli",
  "alias": false,
  "peer_metadata": null
}
^4.9.2development
webpack-dev-server
Environment
{
  "local_name": "webpack-dev-server",
  "alias": false,
  "peer_metadata": null
}
^4.7.4development
react
Environment
{
  "local_name": "react",
  "alias": false,
  "peer_metadata": null
}
^17.0.2peer
react-dom
Environment
{
  "local_name": "react-dom",
  "alias": false,
  "peer_metadata": null
}
^17.0.2peer

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "integrity": "sha512-Rl5Ktd2wAZ9paL5EzZz8tri5zCyU2ZOwV8Q5rZCx3uegFyd+gadtHeb+LHVvv4od4sng4b2GTpJca6NFcI7X4w==",
  "shasum": "d701e8a7e58e8d4cb81947b2988a7aa165f9f6e2",
  "tarball": "https://registry.npmjs.org/3d-carousel-component/-/3d-carousel-component-1.1.0.tgz",
  "fileCount": 7,
  "unpackedSize": 16371,
  "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiE8+WACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpNfg//fXElW9Nvpsu2GcJUTlYoYz76lGeojJMjfvHsqRnzNx8YyNcs\r\n4040uuBCnzbu4zSXwoxUQra1no/NBLNK/c6AjzOk0kTVMKJ3ZHXGZH2MkaYF\r\noWuNheHczCeNpwXjxZ8quCHiD7YgCAY3uaS6sKh8Tz2OmKdoQnw5xRE2G4If\r\nBO0I6i+ZHl0Tz6kCeQqnFUR1Ukj6RGENece2Jvm6f/rktJoSKGp3Bvrq1ciB\r\nvbDz4RBMFJ4VYj4Ho1v9F2PuxX/GJBQ2fluQOQLg+TRU+68oX9xObt3x73ec\r\nrM+xBCmVJDFh+lManuPjcgYoGn6NeLRoi2EwkxegZWZ5UvN3/TtPGK/KUT0s\r\nBJ6KEk05+52XfAjR2mMYsI+3l/T5KS5iIpgnLgBKWMxpPrCvmOkEipXyb4Zp\r\ncrQGgxVDQ2VedMY2rhLrQ7Ul0UsWw7bfp8LCffhM0bgUYVuK4vEpCNKranX7\r\neHZukYGB34N7Mq7dzdDFUV/jASpTXmGr7epu6lbRy/OMKFpoqf9lPgd9cw9/\r\nNpzLITAuCsIfaXsTO7W274BpzXh1aS5Lh1SN2wmKXloXhbkc0tCNgk5jqWgQ\r\nA/HYGQAIDmICPdN2i/4EjlWc4fVS5fGqLZKtfvnQBkYuFeFyDyJ4ly2chdXN\r\n5nqvqjeCOl5kO3aqlgcioqeh+amy5Y6tRCs=\r\n=dD/l\r\n-----END PGP SIGNATURE-----\r\n",
  "signatures": [
    {
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
      "sig": "MEUCIQDXRKZMJTNkK4PAJ9sRnCt2RZ6qaFosGpWobE/rhsRPOgIgNn3tY7VLoTxfz5MIV2zW3WlSrMLqYCOc4ViMSOO91UA="
    }
  ]
}

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_version:4f1f2ef412fba8a6f4d718c0abddadae1f3b089fe5700f415a6d168e868250fa

Other collected versions

1.1.621 Feb1.1.421 Feb1.1.321 Feb1.1.221 Feb1.1.121 Feb1.0.711 FebView all collected versions →