# Move Element to Click Position | kirupa.com

**URL:** <https://forum.kirupa.com/t/move-element-to-click-position-kirupa-com/352200>\
**Category:** programming\
**Created:** [November 23, 2014, 1:49am UTC](https://forum.kirupa.com/t/move-element-to-click-position-kirupa-com/352200 "2014-11-23T01:49:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kirupa](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/kirupa/32/11616_2.png) [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Post date:** [November 23, 2014, 1:49am UTC](https://forum.kirupa.com/t/move-element-to-click-position-kirupa-com/352200/1 "2014-11-23T01:49:54Z")

</div>

by [kirupa](http://www.kirupa.com/me/index.htm) | 8 June 2013

Something you see commonly in games and interactive user interfaces is this notion of some piece of UI reacting to a mouse click or finger tap. In this example, I highlight one such reaction - the famous move element to the click position.

* * *
This is a companion discussion topic for the original entry at [http://www.kirupa.com/snippets/move\_element\_to\_click\_position.htm](http://www.kirupa.com/snippets/move_element_to_click_position.htm)
