Makes an element draggable by using CSS transform