implement timer visibility with css transitions