Coder Social home page Coder Social logo

mrey3000 / aframe-websurfaces Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ryota-mitarai/aframe-websurfaces

0.0 0.0 0.0 11.14 MB

๐Ÿ“ฆ An aframe component for adding interactable webpages to your scene.

Home Page: https://www.npmjs.com/package/aframe-websurfaces

License: MIT License

JavaScript 100.00%

aframe-websurfaces's Introduction

aframe-websurfaces

Latest NPM release Minzipped size License

An aframe component for adding interactable web pages to your scene.

Check out the live example.

Example gif

Usage

To create a websurface, just add the websurface component. This will create an iframe and project it's contents onto a plane:

<a-entity websurface></a-entity>

Properties

Property Description Default
url the url of the web page "https://aframe.io"
width width of the websurface 1
height height of the websurface 0.75
isInteractable enables mouse interaction true
frameSkips updates render* on every n cycles 1
autoSceneStyling sets scene.style.position to "absolute" true

*note - only the shape of the web page in the scene is affected by this, the web page will still play at normal speed

Members

Property Description
el.websurface_iframe gives the used iframe
el.css3d_context gives the DOMContext
el.css3d_context.domElement gives the div that stores the css3d

Additional Info

The web page is not actually present inside the aframe scene, only an empty plane is. Because of this, the web page is not visible in VR.

Under the hood this uses a modified version of three-dom-elements, massive props there.

aframe-websurfaces's People

Contributors

ryota-mitarai avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.