How can i hide and display elements automatically?

How can i hide and display elements automatically?