JSPM

  • Created
  • Published
  • Downloads 13
  • Score
    100M100P100Q43731F
  • License ISC

Makes cube from any div element with parallax

Package Exports

  • cube-creator

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (cube-creator) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

cube-creator (short docs)

Look Demo

Installation

Using npm:

$ npm i --save cube-creator

Using

To create cube without effects pass key DOM element and parentElement to constructor. "element" must have width and height.

new CubeMaker(element, parentElement);

To create cube or upgrade existing cube with parallax effect use

const cube3D = new CubeMaker(element, parentElement);
new WithParallax3D(cube3D.getContainer());

Cube is created via module

I will improve this package to arrive more control of params and increase the level of optimization. Please, wait for a little.