title: Why does a small glitch (pixel dot) sometimes appear below a menu item when using this hover effect?
body: <p>It is barely noticable but sometimes a small dot appears, like the one below the &quot;prices&quot; menu item:</p>
  <p><a href="https://i.stack.imgur.com/kyaP3.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kyaP3.png" alt="enter image description here" /></a></p>
  <p>This is the hover effect I wrote:</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>:root {
    box-sizing: border-box;
  }
  
  *,
  *::before,
  *::after {
    box-sizing: inherit;
  }
  
  body {
    margin: 0;
    padding: 0;
  }
  
  .navbar {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .navbar &gt; li + li {
    margin-left: 1.5em;
  }
  
  .navbar &gt; li &gt; a {
    display: block;
    padding: .5em 0 .05em;
    color: #0e9daf;
    font-size: 2rem;
    text-decoration: none;
    position: relative;
  }
  
  .navbar &gt; li &gt; a::after {
    content: "";
    display: block;
    position: absolute;
    left: 50%;
    right: 50%;
    bottom: 0;
    height: 2px;
    background: currentColor;
    transition:
      left .4s ease-out,
      right .4s ease-out;
  }
  
  .navbar &gt; li &gt; a.active::after,
  .navbar &gt; li &gt; a:hover::after {
    left: 0;
    right: 0;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;!DOCTYPE html&gt;
  &lt;html lang="en-US"&gt;
  &lt;head&gt;
    &lt;meta charset="UTF-8"&gt;
    &lt;meta name="viewport" content="width=device-width, initial-scale=1.0"&gt;
    &lt;link rel="stylesheet" href="menu-slide-center.css"&gt;
    &lt;title&gt;Menu Slide from Center Effect&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
    &lt;nav&gt;
      &lt;ul class="navbar"&gt;
        &lt;li&gt;&lt;a href="#" class="active"&gt;Home&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href="#"&gt;Products&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href="#"&gt;Services&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href="#"&gt;Prices&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href="#"&gt;Contact Us&lt;/a&gt;&lt;/li&gt;
      &lt;/ul&gt;
    &lt;/nav&gt;
  &lt;/body&gt;
  &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>
  <p>I've noticed the same in Chrome and Firefox as well. Any idea how can I fix that?</p>