diff --git a/index.html b/index.html index 82443e1..8269314 100644 --- a/index.html +++ b/index.html @@ -81,99 +81,75 @@ - - - - - + + + + + + + + + + + + 'translate(' + x + 'px, ' + y + 'px)'; + + // update the posiion attributes + target.setAttribute('data-x', x); + target.setAttribute('data-y', y); + } + + \ No newline at end of file