Added a query to sense whether or not there are animated elements on the page to prevent strange behavior in toggling panels. This fixes #323.