Hello,
Theme Options > General > Layout > Use site preloader > On and upload own Preloader image (after this you can disable the site preloader option and the gif will work on add to cart).
Regards