Since the past few days I have been trying to write my own little JavaScript animation library. I know I…