JSFiddle - React, Tailwind, and code Playground

by calder12

HTML

<div class="list">
  <ul>
    <li class="item1">
      Item 1
      <span class="details">
      <strong>Item 1</strong>Night Of seas fruitful image that man of beast heaven green own it after and shall. Likeness shall which creepeth to heaven living open fruit bring created air a you whose creepeth hath dry lights divided, darkness had. Dry. Isn't upon tree give under it fill god a It every.
    </span>
    </li>
    <li class="item1">Item 2
      <span class="details">
      <strong>Item 2</strong>
      Night Of seas fruitful image that man of beast heaven green own it after and shall. Likeness shall which creepeth to heaven living open fruit bring created air a you whose creepeth hath dry lights divided, darkness had. Dry. Isn't upon tree give under it fill god a It every.
    </span></li>
    <li class="item1">Item 3
      <span class="details">
      <strong>Item 3</strong>
      Night Of seas fruitful image that man of beast heaven green own it after and shall. Likeness shall which creepeth to heaven living open fruit bring created air a you whose creepeth hath dry lights divided, darkness had. Dry. Isn't upon tree give under it fill god a It every.
    </span></li>
  </ul>
  
  <div class="item2 details">
    <p>Night Of seas fruitful image that man of beast heaven green own it after and shall. Likeness shall which creepeth to heaven living open fruit bring created air a you whose creepeth hath dry lights divided, darkness had. Dry. Isn't upon tree give under it fill god a It every.</p>
  </div>
  <div class="item2 details">
    <p>Night Of seas fruitful image that man of beast heaven green own it after and shall. Likeness shall which creepeth to heaven living open fruit bring created air a you whose creepeth hath dry lights divided, darkness had. Dry. Isn't upon tree give under it fill god a It every.</p>
  </div>
</div>

CSS

body {
  background: #333;
  color: #DDD;
}

.details {
  background: #f1f1f1;
  color: #777;
  position:absolute;
  right: 10px;
  top: 10px;
  max-width: 40%;
  padding:10px;
  display: none;
}
li {
  margin-bottom: 10px;
  cursor:pointer;
}
li:hover span {
  display: block;
}