# css3d-wrapper

> a react component which can set 3D effects on children components

Latest version **0.2.1** (published 2018-04-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install css3d-wrapper
pnpm add css3d-wrapper
yarn add css3d-wrapper
bun add css3d-wrapper
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.1 |
| Published | 2018-04-12 |
| First published | 2018-04-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 903.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Jad2Wizard |
| Maintainers | jadwizard |
| Keywords | css3d, transform, react |

## Links

- npm: https://www.npmjs.com/package/css3d-wrapper
- Repository: https://github.com/Jad2wizard/css3d-wrapper
- Homepage: https://github.com/Jad2wizard/css3d-wrapper#readme
- Issues: https://github.com/Jad2wizard/css3d-wrapper/issues
- npm.io page: https://npm.io/package/css3d-wrapper

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 0.2.1 (latest) — 2018-04-12
- 0.2.0 — 2018-04-11
- 0.1.0 — 2018-04-10

## README

# css3d-wrapper
> a React component which can add 3D effects on the children component, implemented by CSS3 transform
## Intallation
    npm install css3d-wrapper
## Example
    ./build/example.html
## Use
  ```
  import React from 'react';
  import Css3dWrapper from 'css3d-wrapper';
  const Demo = () => (
    <Css3dWrapper>
      <SubComponent1/>
      <SubComponent2/>
      <SubComponent3/>
      <SubComponent4/>
      <SubComponent5/>
    </Css3dWrapper>
  )
  # Demo can add 3D effects on SubComponnet1 ~ SubComponent5.
 ```
## 3D Effects
1. support Grid and Overlap layout of SubComponents
![Alt text](https://github.com/Jad2Wizard/css3d-wrapper/raw/master/screenshots/grid.png)
![Alt text](https://github.com/Jad2Wizard/css3d-wrapper/raw/master/screenshots/overlap.png)
2. move SubComponent on XY plane through dragging the SubComponent by left-mouse-btn
![Alt text](https://github.com/Jad2Wizard/css3d-wrapper/raw/master/screenshots/move.png)
3. click SubComponent and transform it to the center of container by left-mouse-btn
![Alt text](https://github.com/Jad2Wizard/css3d-wrapper/raw/master/screenshots/click.png)
4. translate the camera on Z-axis through mouse-wheel
![Alt text](https://github.com/Jad2Wizard/css3d-wrapper/raw/master/screenshots/translateCameraZ.png)
5. rotate the camera around X-axis and Y-axis through dragging by left-mouse-btn
![Alt text](https://github.com/Jad2Wizard/css3d-wrapper/raw/master/screenshots/rotateCamera.png)
6. in the step above, all the SubComponents' normal vectors are fixed.

---
_Source: https://npm.io/package/css3d-wrapper · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
