Improved header animation