title: Hover Animation Color Switch
body: <p>I'm trying to achieve a color switch with a hover but the problem I'm encountering is that the text (closed within a span) is in a list item and the only way I can achieve the effect is if I hover over the word but I want it to switch when I hover over the whole list item element.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>span {
  color: orange;
  transition: all 0.5s ease-in-out;
  font-weight: 200;
  }
  
  ul {
  text-align: center;
  padding-top: 20px;;
  }
  
  li {
  list-style: none;
  display: inline-flex;
  padding: 10px 10px;
  font-size: 30px;
  transition: all 0.5s ease-in-out;
  border: 1px solid black;
  font-weight: 300;
  border-right: 1px;
  border-left: 1px;
  }
  
  #ot {
  border-top: 1px solid orange;
  border-bottom: 1px;
  border-left: 1px solid orange;
  }
  
  #ob {
  border-bottom: 1px solid black;
  border-top: 1px;
  border-right: 1px solid black;
  color: 
  }
  
  #black:hover {
  color: black;
  }
  
  #ot:hover {
  border-top: 1px solid black;
  border-left: 1px solid black;
  color: orange;
  }
  
  #ob:hover {
  border-bottom: 1px solid orange;
  border-right: 1px solid orange;
  color: orange;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;ul&gt;
    &lt;li id="ot"&gt;high &lt;span id="black"&gt;Park&lt;/span&gt;&lt;/li&gt;
    &lt;li id="ob"&gt;the &lt;span id="black"&gt;Beach&lt;/span&gt;&lt;/li&gt;
  &lt;/ul&gt;</code></pre>
  </div>
  </div>
  </p>