Disable animations outside dom

https://github.com/Leaflet/Leaflet/pull/1825