Add biezier function for animation.