Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/zenoo/css3-cube

A canvas-free, CSS3 only cube
https://github.com/zenoo/css3-cube

animation css3

Last synced: about 1 month ago
JSON representation

A canvas-free, CSS3 only cube

Awesome Lists containing this project

README

        

# CSS3 Cube

A canvas-free, CSS3 only Cube

[![Demo](https://github.com/Zenoo/CSS3-Cube/raw/master/cube-demo.gif)](https://jsfiddle.net/Zenoo0/krn7ygd3/)

### Doc

* **Installation**

Simply import CSS3 Cube into your HTML.
```HTML


```
* **How to use**

Create a new [`Cube`](https://zenoo.github.io/CSS3-Cube/Cube.html) object with the targeted node as the first parameter :
```
let cube = new Cube('#yourNode', options);
// OR
let cube = new Cube(element, options);
```
* **Options**

```js
{
ratio: 2 // Ratio at which mousemoves will impact the rotation of the cube
}
```

* **Example**

See this [JSFiddle](https://jsfiddle.net/Zenoo0/krn7ygd3/) for a working example

## Authors

* **Zenoo** - *Initial work* - [Zenoo.fr](https://zenoo.fr)