Elastic Toggle Button

<div class="toggle">

<input type="checkbox" id="btn">

<label for="btn">

<span class="thumb"></span>

</label>

<div class="lights">

<span class="light-off"></span>

<span class="light-on"> </span>

</div>

</div>

Please Tell us what’s happening in your own words.

Learning to describe problems is hard, but it is an important part of learning how to code.

Also, the more you say, the more we can help!

Welcome to the forum @touran01

I edited your post so the code displays on the forum.

Use the following method to post code to the forum:

  1. On a separate line type three back ticks.
  2. On a separate line paste your code.
  3. On the last line type three back ticks. Here is a single back tick `

Happy coding