Implemented basic logic of using custom ease function in animations.