Improve header animation