Using css and animations to hide and show panels