Problems implementing an animated sticky header

Hi Paul. Sorry I’m coming back to you about it this late!! This works indeed great. The only thing I don’t understand is the font size! You change it from em to rem. Why is it working wit rem but not with em?