Added tween logic and ease functions for animations