tween functionality when clicking in a node, smooth transitions