I tried many times to add a transition to eventBody, but it still not working.
**here's the code:
export function Event({ event }: EventProps) {
  const [showDropDown, setShowDropDown] = useState(false)
  return (
      <div className={styles.eventBody} hidden={!showDropDown}>
        <div className={styles.line}></div>
        <AttendeeList upcoming={true} attenders={attenders}></AttendeeList>
     </div>
  )
}
**CSS:
.eventBody {
  transition: all 0.4s ease-out;
}
.eventBody[hidden='true'] {
  display: none;
}
i tired to setShowDropDown after 100 ms second on every click on the header div, and also tried to use height in transition instead of all but nothing worked
 
    