You can either enable flying effect or Ajax add to cart popup at a time, both functionality don’t not work together. To enable flying effect, Go to store --> Configuration --> Ajax add to cart.