tweak loading indicator
This commit is contained in:
@@ -115,8 +115,7 @@ AFRAME.registerComponent('song', {
|
|||||||
|
|
||||||
onFetchProgress: function (evt) {
|
onFetchProgress: function (evt) {
|
||||||
const progress = evt.loaded / evt.total;
|
const progress = evt.loaded / evt.total;
|
||||||
this.songLoadingIndicator.setAttribute(
|
this.songLoadingIndicator.setAttribute('geometry', 'thetaLength', progress * 360);
|
||||||
'geometry', 'thetaLength', progress * 360);
|
|
||||||
},
|
},
|
||||||
|
|
||||||
onRestart: function () {
|
onRestart: function () {
|
||||||
|
|||||||
@@ -77,8 +77,9 @@
|
|||||||
id="songLoadingIndicator"
|
id="songLoadingIndicator"
|
||||||
bind__visible="isSongLoading"
|
bind__visible="isSongLoading"
|
||||||
geometry="primitive: ring; radiusInner: 0.05; radiusOuter: 0.08"
|
geometry="primitive: ring; radiusInner: 0.05; radiusOuter: 0.08"
|
||||||
material="shader: flat; color: #FAFAFA; opacity: 0.75"
|
material="shader: flat; color: #FAFAFA; opacity: 0.75; side: back"
|
||||||
position="0 1.4 -2.5">
|
position="0 1.4 -2.5"
|
||||||
|
rotation="0 180 0">
|
||||||
</a-entity>
|
</a-entity>
|
||||||
|
|
||||||
<a-entity
|
<a-entity
|
||||||
|
|||||||
Reference in New Issue
Block a user