animation time was 0 when header was shown and hidden, now works