Fixed printing for animations and scrollspy