selected song layout, play & next-prev buttons (fixes #6, fixes #4)

This commit is contained in:
Diego F. Goberna
2018-09-19 23:29:55 +02:00
parent 8ba32038e6
commit 9b1af51751
5 changed files with 53 additions and 33 deletions

View File

@@ -17,8 +17,7 @@ AFRAME.registerComponent('active-color', {
var el = this.el;
if (this.data.active) {
el.setAttribute('material', 'color', this.data.color);
el.setAttribute('material', 'opacity', 1);
el.setAttribute('material', {'color': this.data.color, 'opacity': 1});
} else {
el.setAttribute('material', 'color', this.defaultColor);
if (el.components.animation__mouseleave) {