Difference between revisions of "Team:BostonU/Collaborations"

Line 28: Line 28:
 
                     y = event.clientY;                     
 
                     y = event.clientY;                     
 
                     if ( typeof x !== 'undefined' ){
 
                     if ( typeof x !== 'undefined' ){
                         $("#box-shadow-div").animate({"left": (x-20) + "px"});
+
                         $("#box-shadow-div").animate({"left": (x-20) + "px"}, 1);
                         $("#box-shadow-div").animate({"top": (y-20) + "px"});
+
                         $("#box-shadow-div").animate({"top": (y-20) + "px"}, 1);
 
                     }
 
                     }
 
                 }, false);
 
                 }, false);

Revision as of 20:09, 4 August 2016

box-shadow-experiment