jquery mouse follow with image

image to mouse cursor using jQuery,you can add trailing image to mouse cursor movement using jQuery

by moritzkobrna

HTML

<img class="logo" src="//image.shutterstock.com/image-vector/cute-frog-cartoon-260nw-366900380.jpg" alt="Google">

JavaScript

$(document).mousemove(function(e) {
    $('.logo').offset({
        left: e.pageX,
        top: e.pageY + 20
    });
});