Permalink
Browse files

Merge branch 'master' of github.com:unconed/CSS3D.js

  • Loading branch information...
2 parents 1d816e7 + d3318db commit 448e1a4d5884ab380d6d1bc3c2bf58311272bd10 @unconed committed Feb 21, 2012
Showing with 6 additions and 4 deletions.
  1. +6 −4 README.md
View
@@ -23,9 +23,11 @@ Currently, it only works in Chrome and Safari. Firefox doesn't seem to reliably
Initialize the renderer like any other Three.js renderer, using:
- var renderer = new Acko.CSS3DRenderer({
- perspective: ... // optional
- });
+```javascript
+var renderer = new Acko.CSS3DRenderer({
+ perspective: ... // optional
+});
+```
By default, the renderer wraps itself in a CSS perspective for the camera. Use `perspective` to specify a custom DOM element which will receive the camera's CSS perspective instead. You can use this to link the renderer to a page-wide parallax effect. Or, specify 'false' to forego camera perspective and hardcode it yourself.
@@ -35,7 +37,7 @@ The file `css3d.css` contains useful default styles.
#### Editor ####
-A simple keyboard operator editor is included in <a href="editor.html">editor.html</a>. The scene is serialized into the textfield at the bottom. Copy/paste this into data.js to save it.
+A simple keyboard operator editor is included in <a href="https://github.com/unconed/CSS3D.js/blob/master/editor.html">editor.html</a>. The scene is serialized into the textfield at the bottom. Copy/paste this into data.js to save it.
*Controls*

0 comments on commit 448e1a4

Please sign in to comment.