adds pretty animation for offline mode toggle