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

Line 31: Line 31:
 
var img = document.createElement('div');
 
var img = document.createElement('div');
 
img.style.cssText = 'background-size:contain;height:250px;background-repeat:no-repeat;background-position:center;background-color:black;';
 
img.style.cssText = 'background-size:contain;height:250px;background-repeat:no-repeat;background-position:center;background-color:black;';
div.style.cssText = 'height:250px;display:inline;width:200px;display:none;perspective:400px;position:absolute;top:0px;left:50%;';
+
div.style.cssText = 'height:250px;display:inline;width:200px;display:none;perspective:400px;position:absolute;top:0px;left:50%;transition:transform 1s;';
 
img.style.backgroundImage = 'url('+imgURLs[i]+')';
 
img.style.backgroundImage = 'url('+imgURLs[i]+')';
 
div.appendChild(img);
 
div.appendChild(img);

Revision as of 17:09, 18 September 2015

<
>