1.0.2 • Published 12 months ago

@fern-solutions/aframe-screen-fade v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

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

NameTypeDefaultDescription
colorcolor#000000The solid color the screen fades to
intensityfloat0.0The intensity of the fade between 0.0 and 1.0
1.0.2

12 months ago

1.0.1

1 year ago

1.0.0

2 years ago

0.1.0

2 years ago