title: How do I prevent a fixed position <ul> from overlaying links which is preventing them from being clicked?
body: <p>I've coded out some buttons that display on the bottom right of our website on mobile and placed them with an <code>&lt;ul&gt;</code> element. To animate the buttons, I have translated each of the <code>&lt;li&gt;</code> elements, as soon as the code is executed, on the Y-axis so that they all line up together and only the last element can be seen. However, I've noticed that even though it's translated, the height of the <code>&lt;ul&gt;</code> remains the same size as it was before the jQuery was executed and it's preventing some links on the website from being clicked. I know that's probably confusing, so I created an easy example below to showcase the issue. <strong>If you notice, the link cannot be clicked above the buttons, even when they are out of the way.</strong></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-js lang-js prettyprint-override"><code>$(() =&gt; {
  
      let $menuToggleButton = $('.menu-toggle-button');
      let $menuItems = $('.menu-item-button').closest('.menu-item');
      let menuItemCount =  $menuItems.length;
  
      hideButtons($menuItems, menuItemCount, $menuToggleButton);
      $('.menu-items').show();
  
      $menuToggleButton.on('click', function(e) {
          e.preventDefault();
          let active = $(this).hasClass('active');
          if(active) {
              hideButtons($menuItems, menuItemCount, $(this));
          } else {
              showButtons($menuItems, $(this));
          }
      });
  
      function hideButtons($menuItems, menuItemCount, $menuToggleButton) {
          let x = 0;
          for (let i = menuItemCount; i &gt; 0; i--) {
              let $menuItem = $menuItems.eq(x);
              let offsetPercentage = `${i * 100}%`;
              $menuItem.css('transform', `translateY(${offsetPercentage})`);
              x++;
          }
          $menuToggleButton.removeClass('active');
      }
  
      function showButtons($menuItems, $menuToggleButton) {
          $menuToggleButton.addClass('active');
          $menuItems.each(function() {
              $(this).css('transform', 'translateY(0%)');
          });
      }
  
  });</code></pre>
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.sliding-pill-menu {
    position: fixed;
    right: 20px;
    bottom: 20px;
    font-size: 12px;
    z-index: 10000;
  }
  
  .menu-items {
    list-style: none;
    padding: 0;
    margin: 0;
    display: none;
  }
  
  .menu-item {
    padding: 5px 0;
    transition: all .4s ease-in-out;
  }
  
  .menu-item-button,
  .menu-toggle-button {
    display: inline-block;
    padding: 10px 20px;
    text-decoration: none;
    text-align: center;
    position: relative;
    bottom: 0;
    cursor: pointer;
    border-radius: 50px;
    background: #EC2127;
    color: #fff;
    font-weight: 500;
    font-size: inherit;
    min-width: 180px;
    width: 180px;
    white-space: nowrap;
  }
  
  .menu-item-button:hover, .menu-item-button:active, .menu-item-button:link, .menu-item-button:visited,
  .menu-toggle-button:hover,
  .menu-toggle-button:active,
  .menu-toggle-button:link,
  .menu-toggle-button:visited {
    color: #fff;
  }
  
  .menu-item-icon,
  .menu-toggle-icon {
    margin-right: 10px;
  }
  
  .underlay-btn {
  background: #000;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 300px;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;a class="underlay-btn" href="#"&gt;Click Me Instead&lt;/a&gt;
  &lt;div class="sliding-pill-menu"&gt;
    &lt;ul class="menu-items"&gt;
      &lt;li class="menu-item"&gt;&lt;a class="menu-item-button" href="tel:5555555555"&gt;&lt;i class="menu-item-icon fa fa-mobile"&gt;&lt;/i&gt;Call Now&lt;/a&gt;&lt;/li&gt;
      &lt;li class="menu-item"&gt;&lt;a class="menu-item-button" href="sms:5555555555"&gt;&lt;i class="menu-item-icon fa fa-sms"&gt;&lt;/i&gt;Send Text&lt;/a&gt;&lt;/li&gt;
      &lt;li class="menu-item"&gt;&lt;a class="menu-item-button" href="/order-by-date"&gt;&lt;i class="menu-item-icon fa fa-calendar"&gt;&lt;/i&gt;Check Availability&lt;/a&gt;&lt;/li&gt;
      &lt;li class="menu-item"&gt;&lt;a class="menu-toggle-button" href="#"&gt;&lt;i class="fa fa-plus menu-toggle-icon"&gt;&lt;/i&gt;Get Started&lt;/a&gt;&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>How do I prevent the <code>&lt;ul&gt;</code> from blocking the links behind it? I've tried z-index, but I don't think it will work in this case since the app buttons need to remain above everything else. </p>