An open API service indexing awesome lists of open source software.

https://github.com/xiaxiangfeng/react-carousel3d

A 3D perspective carousel 3D效果的走马灯
https://github.com/xiaxiangfeng/react-carousel3d

carousel carousel3d react-carousel react-carousel3d

Last synced: 4 months ago
JSON representation

A 3D perspective carousel 3D效果的走马灯

Awesome Lists containing this project

README

        

# react-carousel3d

> A 3D perspective carousel。预览地址:https://xiaxiangfeng.github.io/react-carousel3d/#/carousel

![Image text](https://xiaxiangfeng.github.io/react-carousel3d/image/Animation.gif)

## 从 NPM 下载包

```npm
npm i react-carousel3
```

## Basic usage

Demo:

```tsx
import React from 'react';
import { Carousel } from 'react-carousel3';

const style = {
width: 297,
height: 296,
};

export default () => (























);
```

### Carousel options

You may pass these options to the carousel constructor. Some of these properties may be changed during runtime via the data handle.


Option
Description
Default


height
container height



width
container width



xOrigin
Center of the carousel (x coordinate)
(container width / 2)


yOrigin
Center of the carousel (y coordinate)
(container height / 10)


xRadius
Half the width of the carousel
(container width / 2.3)


yRadius
Half the height of the carousel
(container height / 6)


autoPlay
auto play
false

## Getting Started

Install dependencies,

```bash
$ npm i
```

Start the dev server,

```bash
$ npm start
```

Build documentation,

```bash
$ npm run docs:build
```

Run test,

```bash
$ npm test
```

Build library via `father`,

```bash
$ npm run build
```