image paste on page wherever the mouse moves
问题 I wanted to create a code for a website where an image would follow the cursor and paste itself on the page wherever the mouse would go. I am sure many have experienced this effect, when your computer crashed and you would drag a window around a screen and it would just leave a trail behind itself. jsfiddle - Example follow mouse HTML : <img class="logo" src="//ssl.gstatic.com/images/logos/google_logo_41.png" alt="Google"> JS : $(document).mousemove(function(e) { $('.logo').offset({ left: e