allow or disallow animation