marc,
 
<!DOCTYPE html>
<html>
<head>
  <title>Untitled</title>
  <meta charset="utf-8">
  <style type="text/css">
    .hot{
         border: 1px dashed Gray; padding: 5px; height: 100px; width: 300px;
          transition: all .8s ease-in-out;
    }
  </style>
  <script>
    document.addEventListener('click', fn, false);
    function fn(event)
    {
       var el = document.querySelector('.hot')
       el.style.transform = 'translate('+(event.pageX - el.offsetWidth/2)+'px ,' +(event.pageY - el.offsetHeight/2) + 'px)'
    }
  </script>
</head>
<body>
 <div class="hot"></div>
</body>
</html>