title: How to add next and prev controls to a slideshow
body: <p>I'm still relative new to coding in general. I need to create a slider with controls but I'm having problems writing the script for the next and previous button. I'm pretty much clueless.</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> $(function () {
   $('#slideshow .show').hide(); // hide all slides
      $('#slideshow .show:first-child').show(); // show first slide
      setInterval(function () {
     $('#slideshow .show:first-child').fadeOut(0)
     .next('.show').fadeIn(1500)
     .end().appendTo('#slideshow');
      },
   8500); // slide duration
   
   $(".control_next").click(
    //Not sure what to write here for the slider to fade to next slider
   );
   
   $(".control_prev").click(
    //Not sure what to write here for the slider to fade to previous slider
      );
      });</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;div id="slideshow"&gt;
      &lt;div class="show"&gt;
          &lt;div class="slidertext"&gt;
              &lt;span style="color:#007E5C; font-weight:800;"&gt;hello&lt;/span&gt;
              &lt;p&gt;Lorem Ipsum&lt;/p&gt;
          &lt;/div&gt;
          &lt;div class="textbg"&gt;&lt;/div&gt;
          &lt;figure class="fixedratio"&gt;&lt;/figure&gt;
      &lt;/div&gt;
      
      &lt;div class="show"&gt;
          &lt;div class="slidertext"&gt;
              &lt;span style="color:#007E5C; font-weight:800;"&gt;hello&lt;/span&gt;
              &lt;p&gt;Lorem Ipsum&lt;/p&gt;
          &lt;/div&gt;
          &lt;div class="textbg2"&gt;&lt;/div&gt;
          &lt;figure class="fixedratio2"&gt;&lt;/figure&gt;
      &lt;/div&gt;
      
      &lt;div class="show"&gt;
          &lt;div class="slidertext"&gt;
              &lt;span style="color:#007E5C; font-weight:800;"&gt;hello&lt;/span&gt;
              &lt;p&gt;Lorem Ipsum&lt;/p&gt;
          &lt;/div&gt;
          &lt;div class="textbg3"&gt;&lt;/div&gt;
          &lt;figure class="fixedratio3"&gt;&lt;/figure&gt;
      &lt;/div&gt;
      &lt;/div&gt;
  
  &lt;a href="#" class="control_next"&gt;&gt;&lt;/a&gt;
  &lt;a href="#" class="control_prev"&gt;&lt;&lt;/a&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>I appreciate all help, thank you!</p>