aframe-href-component
Advanced tools
Comparing version 0.1.0 to 0.1.1
{ | ||
"name": "aframe-href-component", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "Hyper Link component for A-Frame.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -5,2 +5,4 @@ ## aframe-href-component | ||
Add `href="url"` attribute to any a-frame tag, turn the object as a normal web link. | ||
### Properties | ||
@@ -18,2 +20,4 @@ | ||
Add `href` attribute in target tag (In example is `a-box`). | ||
```html | ||
@@ -28,3 +32,11 @@ <head> | ||
<a-scene> | ||
<a-entity href="http://aframe.io/"></a-entity> | ||
<a-entity position="0 1.8 4"> | ||
<a-camera> | ||
<a-cursor color="#4CC3D9"></a-cursor> | ||
<a-camera> | ||
</a-entity> | ||
<a-box id="orange-cube" position="0 3.5 -2" rotation="30 30 0" | ||
width="2" depth="2" height="2" color="#F16745" | ||
href="http://aframe.io/"></a-box> | ||
</a-scene> | ||
@@ -31,0 +43,0 @@ </body> |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
9871
12
57