Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<script src="http://code.jquery.com/jquery-2.1.0.min.js"></script>
  <meta charset="utf-8">
  <title>JS Bin</title>
</head>
<body>
  <div class="cursor-area"></div>
</body>
</html>
 
#cursor {
  position: absolute;
  display: none;
}
 
var $img = $('<img/>').attr({
  'id': 'cursor',
  'src': 'http://static.jsbin.com/images/dave.min.svg'
});
$(document).on('touchstart touchmove', function (e) {
  
  
  var touch = e.originalEvent.changedTouches["0"];
  
  $img.css({
    top: touch.clientY - 25,
    left:  touch.clientX - 25,
    display: 'block'
  });
  
});
$img.appendTo('body');
Output 300px

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers