Difference between revisions of "Team:Tuebingen/Art and Design"

Line 53: Line 53:
 
var img = document.createElement('div');
 
var img = document.createElement('div');
 
img.style.cssText = 'background-size:contain;height:150px;background-repeat:no-repeat;background-position:center;';
 
img.style.cssText = 'background-size:contain;height:150px;background-repeat:no-repeat;background-position:center;';
div.style.cssText = 'height:150px;display:inline;width:100px;display:none;perspective:400px;position:absolute;top:0px;left:50%;';
+
div.style.cssText = 'height:150px;display:inline;width:120px;display:none;perspective:400px;position:absolute;top:0px;left:50%;';
 
img.style.backgroundImage = 'url('+imgURLs[i]+')';
 
img.style.backgroundImage = 'url('+imgURLs[i]+')';
 
div.appendChild(img);
 
div.appendChild(img);
Line 61: Line 61:
 
}
 
}
 
slots[0].style.display = 'block';
 
slots[0].style.display = 'block';
slots[0].style.marginLeft = '-200px';
+
slots[0].style.marginLeft = '-240px';
 
slots[0].image.style.transform = 'rotateY(-45deg)';
 
slots[0].image.style.transform = 'rotateY(-45deg)';
 
slots[1].style.display = 'block';
 
slots[1].style.display = 'block';
Line 67: Line 67:
 
slots[1].image.style.transform = 'rotateY(0deg)';
 
slots[1].image.style.transform = 'rotateY(0deg)';
 
slots[2].style.display = 'block';
 
slots[2].style.display = 'block';
slots[2].style.marginLeft = '0px';
+
slots[2].style.marginLeft = '20px';
 
slots[2].image.style.transform = 'rotateY(45deg)';
 
slots[2].image.style.transform = 'rotateY(45deg)';
 
}
 
}

Revision as of 15:03, 18 September 2015

<
>


Supercellfie Ironcell Culk Thor Cellson Yeasteye Captain Cellmerica Black Cellow