JSFiddle - React, Tailwind, and code Playground

HTML

The color of a menu item must change when a user hovers over the item.<br/><br/> The color of the menu item must change back to its original color after five seconds. <br/><br/> You need to ensure that the animation is applied to all menu items.<br/><br/>Menu:
<menu type="list">
  <menuitem>Item 1</menuitem>
  <menuitem>Item 2</menuitem>
  <menuitem>Item 3</menuitem>
</menu>

CSS

menuitem:hover {
  background-color: yellow;
  transition-duration: 5s;
}