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

Line 30: Line 30:
 
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:250px;background-repeat:no-repeat;background-position:center;background-color:black;transition:transform 1s;';
+
img.style.cssText = 'background-size:contain;height:250px;background-repeat:no-repeat;background-position:center;background-color:black;transition:transform 1s, margin 1s;';
 
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%;';
 
img.style.backgroundImage = 'url('+imgURLs[i]+')';
 
img.style.backgroundImage = 'url('+imgURLs[i]+')';

Revision as of 17:22, 18 September 2015

<
>