jQuery UI draggable

Elemento trascinabile tramite il metodo "draggable" della libreria jQuery UI. Con Zoom.

by Michele Pisani

HTML

<img class="element" src="http://dummyimage.com/150x150/000/ffffff&text=Spostami" />

CSS

.element {height:100px;width:100px;}
.element:hover {cursor:move}

JavaScript

$(".element").draggable({
    start: function() {
        $(this).height(175).width(175);
    },
    stop: function() {
        $(this).height(100).width(100);        
    }
});