Screen Fade component
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.
Load the script from npm or add the following script tag:
screen-fade component can be attached to the
<a-camera> as follows:
The fade itself can then be controlled using the
||color||#000000||The solid color the screen fades to|
||float||0.0||The intensity of the fade between 0.0 and 1.0|