title: Display different div element components when Toggle switch slider
body: <p>I want to have a toggle switch which if slide left a div content components pops up and on slide right a different div content pop up.How can I proceed?</p>
  
  <p><strong>HTML CONTENT</strong></p>
  
  <pre><code>&lt;form&gt;
      &lt;label class="switch"&gt;
          &lt;input type="checkbox" checked="true" /&gt;
          &lt;div class="slider round"&gt;&lt;/div&gt;
      &lt;/label&gt;
  &lt;/form&gt;
  
  &lt;div id ="menu1"&gt;
      Menu 1 content
  &lt;/div&gt;
  &lt;div id ="menu2"&gt;
      Menu 2 content
  &lt;/div&gt;
  </code></pre>
  
  <p><strong>CSS CONTENT</strong></p>
  
  <pre><code>/* The switch - the box around the slider */
  .switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
  }
  
  /* Hide default HTML checkbox */
  .switch input {display:none;}
  
  /* The slider */
  .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
  }
  
  .slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
  }
  
  input:checked + .slider {
    background-color: #2196F3;
  }
  
  input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
  }
  
  input:checked + .slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
  }
  
  /* Rounded sliders */
  .slider.round {
    border-radius: 34px;
  }
  
  .slider.round:before {
    border-radius: 50%;
  }
  </code></pre>
  
  <p>As you can see I want like if the toggle slides right content of div <code>id="menu1"</code> to be displayed and on slide left content of div <code>id="menu2"</code> be displayed.I want to have a toggle switch which if slide left a div content components pops up and on slide right a different div content pop up.How can I proceed?</p>