Line 16: | Line 16: | ||
#box-shadow-div{ | #box-shadow-div{ | ||
position: fixed; | position: fixed; | ||
− | width: | + | width:50px; |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
} | } | ||
</style> | </style> | ||
Line 34: | 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"}, .01); |
− | $("#box-shadow-div").animate({"top": (y-20) + "px"}, | + | $("#box-shadow-div").animate({"top": (y-20) + "px"}, .01); |
} | } | ||
}, false); | }, false); | ||
Line 44: | Line 38: | ||
<body> | <body> | ||
<div style = "width:1000px; height:1000px;"> | <div style = "width:1000px; height:1000px;"> | ||
− | < | + | <img src = "https://static.igem.org/mediawiki/2016/e/ee/T--BostonU--twitterlogo.png" id="box-shadow-div"> |
</div> | </div> | ||
</body> | </body> | ||
</html> | </html> |
Revision as of 20:05, 4 August 2016