0.1.11 • Published 3 years ago

css3-cube v0.1.11

Weekly downloads
15
License
MIT
Repository
github
Last release
3 years ago

CSS3 Cube

A canvas-free, CSS3 only Cube

Demo

Doc

  • Installation

Simply import CSS3 Cube into your HTML.

<link rel="stylesheet" href="https://unpkg.com/css3-cube@0.1.7/Cube.min.css">
<script src="https://unpkg.com/css3-cube@0.1.7/Cube.min.js"></script>	
  • How to use

Create a new Cube object with the targeted node as the first parameter :

let cube = new Cube('#yourNode', options);
// OR
let cube = new Cube(element, options);
  • Options
{
  ratio: 2 // Ratio at which mousemoves will impact the rotation of the cube
}
  • Example

See this JSFiddle for a working example

Authors

0.1.11

3 years ago

0.1.8

3 years ago

0.1.7

4 years ago

0.1.6

4 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago