# react-3d-animated-carousel

> A responsive full page animated carousel with description and color changing feature, works with dark mode

Latest version **1.3.4** (published 2023-02-18) · ISC license · 0 weekly downloads

## Install

```sh
npm install react-3d-animated-carousel
pnpm add react-3d-animated-carousel
yarn add react-3d-animated-carousel
bun add react-3d-animated-carousel
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.3.4 |
| Published | 2023-02-18 |
| First published | 2023-02-14 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 571.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | PiyushChittora |
| Maintainers | piyushchittora |
| Keywords | Front-end, CSS, carousel, responsive, animated, animation, 3d, description, dark-mode |

## Links

- npm: https://www.npmjs.com/package/react-3d-animated-carousel
- npm.io page: https://npm.io/package/react-3d-animated-carousel

## Alternatives

- [style-dictionary](https://npm.io/package/style-dictionary.md) — 2.0M weekly downloads
- [postcss-merge-idents](https://npm.io/package/postcss-merge-idents.md) — 1.7M weekly downloads
- [@fontsource/noto-sans](https://npm.io/package/@fontsource/noto-sans.md) — 93.0K weekly downloads
- [uglifycss](https://npm.io/package/uglifycss.md) — 71.6K weekly downloads
- [mat4-interpolate](https://npm.io/package/mat4-interpolate.md) — 23.3K weekly downloads

## Recent versions

- 1.3.4 (latest) — 2023-02-18
- 1.3.3 — 2023-02-16
- 1.3.2 — 2023-02-16
- 1.3.1 — 2023-02-16
- 1.3.0 — 2023-02-15
- 1.2.2 — 2023-02-15
- 1.2.1 — 2023-02-15
- 1.2.0 — 2023-02-14
- 1.1.0 — 2023-02-14
- 1.0.0 — 2023-02-14

## README

# react-animated-carousel-withDescription

- A responsive full page animated carousel with description, changes color per slide and works with dark mode.

  ![Example](./demoexample.jpg)
  
  Have a Look at the [Example](https://piyushchittora.github.io/npm-packages-demo/)

# Table of Contents

- [Getting Started🚀](#getting-started)
- [Customization🔥](#customization)
- [Examples👾](#examples)
- [Issues??🐛](#issues)

## Getting Started🚀

**`npm i react-3d-animated-carousel`**

```javascript
import {Carousel} from "3d-carousel-component";

const YourComponent = () => {
  return (
    <Carousel
      isDark={false}
      data={data}
    />
  );
};
```

## Customization🔥

- Basically you have to pass two props, Namely:
  - isDark
  - data
- Out of this, first is for styling the component for dark mode.
- Note all variables, props, properties follow UpperCamelCase Rule.\*

  ### isDark

  - It allows you to style component for dark mode.
  - Properties available are true or false.
  
  ### data
  
  - It bassically an array of objects with some mandatory or optional keys, 
  - Following properties are available: 😉

  | Key             | Function                                   |
  | :-------------- | :----------------------------------------- |
  | heading         | topic of the slide.                        |
  | description     | description of the slide.                  |
  | textOnly*       | true or false, if keyword is a link or not |
  | text            | highlighted text or button                 |
  | image           | carousel image                             |
  | color*          | color property for slide (optional)        |
  | link            | mandatory if textOnly: false(or missing)   |

  - Look at the example below for more understanding.

## Examples👾

```javascript
import {Carousel} from "3d-carousel-component";

import kaguya from "./assets/kaguya.jpg";
import opm from "./assets/opm.jpg";
import horimiya from "./assets/horimiya.jpg";
import DS from "./assets/demonslayer.jpg";
import mha from "./assets/mha.jpg";
import batman from "./assets/batman.jpg";

const YourComponent  =  ()  =>  {
	//List of element you want inside carousel.
	const content=[
    {
        heading:"Kaguya Sama: Love is war",
        description:"Two high school geniuses, Shirogane and Kaguya, can't admit they're in love, so each tries to win a confession of affection from the other.",
        textOnly:true,
        text:"This is text",
        image:kaguya
    },
    {
        heading:"One Punch Man",
        description:"The story of Saitama, a hero that does it just for fun & can defeat his enemies with a single punch.",
        text:"This is Link",
        image:opm,
        color:"#ffaf24",
        link:""
    },
    {
        heading:"Horimiya",
        description:"Two very different people - an academically successful schoolgirl and a quiet loser schoolboy - meet and develop a friendship.",
        text:"This is a link",
        image:horimiya,
        color:"#275BBF",
        link:""
    },
    {
        heading:"Demon Slayer",
        description:"The anime follows Tanjiro Kamado and his journey after his family's demise at the hands of the Demon King Muzan Kibutsuji.",
        text:"Again a link",
        image:DS,
        color:"#A020F0",
        link:""
    },
    {
        heading:"My Hero Academia",
        description:"Set in a world where superpowers (called Quirks) have become commonplace, the story follows Izuku Midoriya, a boy who was born without a Quirk but still ...",
        textOnly:true,
        text:"I love it and you should too.",
        image:mha,
        color:"#06b885",
    },
    {
        heading:"The Batman",
        description:"the superhero protector of Gotham City, a tortured, brooding vigilante dressed as a bat who fights against evil and strikes fear into the hearts.",
        text:"The moon is a loyal companion fr.",
        color:"#E33737",
        image:batman,
        textOnly:true,
    }
]

	return  <Carousel
			isDark={false}
      data={content}
		/>;
};

export defalut YourComponent;
```

## Issues??🐛

- Having any issues or found any bugs, feel free to reach me on github - [click here](https://github.com/piyushchittora/react-animated-carousel-withDescription/issues).📧

# Thank you

---
_Source: https://npm.io/package/react-3d-animated-carousel · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
