Added property to set animation timing function. Optimized for arm64 with CGFloat