Skip to content
tracend edited this page Jan 22, 2013 · 4 revisions

jQuery Three will read the styles applied to a tag and (if supported) will convert them to THREE.js properties

Supported attributes

  • transform : Geometry manipulation. Values: rotate3d(), translate3d(), scale3d()
  • width : Change the width of an object.
  • height : Change the height of an object.
  • color : Sets the base color for the material(s) of an object.
  • background-image : Sets the texture on an object. If applied to a scene creates a skybox.

The syntax in all these attributes is bound by the official W3C spec (of CSS) and the specific interpretation from every browser vendor.

Clone this wiki locally