Bouncing animation configurable

Added functionality to be able to decide if the animation will get back or will stopped after reaching one of the edges.