@fern-solutions/aframe-screen-fade
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

Screen Fade component

npm version npm version github twitter mastodon ko-fi

This component allows the screen to be faded to and from a solid color. The effect works in both desktop and VR mode. This can be used for situations like loading a scene, handling transitions or snap turning.

Checkout the example: Online Demo | Source

Usage

Load the script from npm or add the following script tag:

<script src="https://unpkg.com/@fern-solutions/aframe-screen-fade/dist/screen-fade.umd.min.js"></script>

The screen-fade component can be attached to the <a-camera> as follows:

<a-camera screen-fade></a-camera>

The fade itself can then be controlled using the intensity property.

Properties

Name Type Default Description
color color #000000 The solid color the screen fades to
intensity float 0.0 The intensity of the fade between 0.0 and 1.0

Readme

Keywords

Package Sidebar

Install

npm i @fern-solutions/aframe-screen-fade

Weekly Downloads

1

Version

1.0.2

License

MIT

Unpacked Size

6.69 kB

Total Files

6

Last publish

Collaborators

  • mrxz