I am trying to add an opacity transition on a div. It should start at opacity 0 and once it is visible on the screen it should fade in slowly, to the maximum opacity.
Here is my code:
<div className="transition-opacity ease-in-out opacity-0 <STATE>:opacity-100 duration-300"> ... </div>
However, I do not know what state to use for my purpose. What should I replace the STATE from above with? Or is it not the right approach?