Changing css for animated pages