1.0.1 • Published 5 years ago

aframe-scrim-component v1.0.1

Weekly downloads
4
License
MIT
Repository
github
Last release
5 years ago

aframe-scrim-component

Version License

A Theatrical Scrim for A-Frame

For A-Frame.

API

PropertyDescriptionDefault Value
easingtype of easing to useeaseInOutCirc
durrationlength of time (ms) for fading900

Installation

Browser

Install and use by directly including the browser files:

<head>
  <title>My A-Frame Scene</title>
  <script src="https://aframe.io/releases/0.9.0/aframe.min.js"></script>
  <script src="https://unpkg.com/aframe-scrim-component/dist/aframe-scrim-component.min.js"></script>
</head>

<body>
  <a-scene>
    <a-entity scrim="durration: 700"></a-entity>
  </a-scene>
</body>

npm

Install via npm:

npm install aframe-scrim-component

Then require and use.

require('aframe');
require('aframe-scrim-component');