Catalog npm
PACKAGE EXPLORERView in registry

3dcss

npm

makes it easy to play around with 3d css

3dcssjs
Versions collected3
Direct dependencies0From release 0.5.1
Last observed20 Oct, 19:39 UTC

README

Current package documentation

3dcss

Dependency free micro-library to deal with 3D CSS. Demo

Why?

Places and manipulates html elements in a 3D space. I know of three.js and I love it, but sometimes I just want to enhance the elements that are already styled with some 3D.

Quickstart

Installation

Install it with NPM (npm install 3dcss --save) or Bower (npm install bower --save) or just get the last release.

Usage

The only thing you need is to have a "world" or "camera". You can do this by setting the perspective on the element that will contain your 3d objects.

.world {
	perspective: 1200px;
}

Every element that will be inside .world can be instantiated with Css3d

<div class='world'>
	<div id="threedee"></div>
</div>
<script>
  var obj3d = new Css3d(document.getElementById('threedee'));
  obj3d.set('position', 20, 40, 50)
			 .setAttr('rotation', 'z', '-100')
			 .applyStyle();
</script>

see this example

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 3

Collected releases
VersionPublishedDirect dependenciesOpen version
0.5.1Registry latest13 Nov 20160
0.5.08 Nov 20150
0.1.030 Oct 20150

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
meodai/3dcss

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 19:39 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:d582d599227f222dee7f0477e95ab3fd81672fcc2a68df60e3a82ecad10d6ddb