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

Line 9: Line 9:
 
<br>
 
<br>
  
<div id="carousel"></div>
+
<div style="width:100%;text-align:center;"><div id="carousel"></div></div>
  
 
Supercellfie
 
Supercellfie
Line 48: Line 48:
 
var carousel = document.getElementById('carousel');
 
var carousel = document.getElementById('carousel');
 
var slots = [];
 
var slots = [];
carousel.style.cssText = 'width:100%;height:200px;text-align:center;overflow:hidden;';
+
carousel.style.cssText = 'width:300px;height:200px;overflow:hidden;';
 
for (var i=0;i<imgURLs.length;i++) {
 
for (var i=0;i<imgURLs.length;i++) {
 
var div = document.createElement('div');
 
var div = document.createElement('div');
 
var img = document.createElement('div');
 
var img = document.createElement('div');
 
img.style.cssText = 'background-size:contain;height:150px;background-repeat:no-repeat;';
 
img.style.cssText = 'background-size:contain;height:150px;background-repeat:no-repeat;';
div.style.cssText = 'height:150px;display:table-cell;width:100px;display:none;perspective:400px;margin:20px;';
+
div.style.cssText = 'height:150px;float:left;width:100px;display:none;perspective:400px;margin:20px;';
 
img.style.backgroundImage = 'url('+imgURLs[i]+')';
 
img.style.backgroundImage = 'url('+imgURLs[i]+')';
 
div.appendChild(img);
 
div.appendChild(img);

Revision as of 14:44, 18 September 2015

<
>


Supercellfie Ironcell Culk Thor Cellson Yeasteye Captain Cellmerica Black Cellow