cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

āš ļø This feature can only be used by logged in users.

Code Indentation

     

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

            
              <label class="toggle happy-sad">
    <input type="checkbox" class="toggle-checkbox">
    <div class="toggle-btn"></div>
</label>

<label class="toggle love-hate">
    <input type="checkbox" class="toggle-checkbox">
    <div class="toggle-btn"></div>
</label>

<label class="toggle nerd-cool">
    <input type="checkbox" class="toggle-checkbox">
    <div class="toggle-btn"></div>
</label>

<label class="toggle young-old">
    <input type="checkbox" class="toggle-checkbox">
    <div class="toggle-btn"></div>
</label>

<label class="toggle male-female">
    <input type="checkbox" class="toggle-checkbox">
    <div class="toggle-btn"></div>
</label>

<label class="toggle king-queen">
    <input type="checkbox" class="toggle-checkbox">
    <div class="toggle-btn"></div>
</label>

<label class="toggle sun-moon">
    <input type="checkbox" class="toggle-checkbox">
    <div class="toggle-btn"></div>
</label>

<label class="toggle fire-water">
    <input type="checkbox" class="toggle-checkbox">
    <div class="toggle-btn"></div>
</label>

<label class="toggle heart-break">
    <input type="checkbox" class="toggle-checkbox">
    <div class="toggle-btn"></div>
</label>

<label class="toggle bomb-explode">
    <input type="checkbox" class="toggle-checkbox">
    <div class="toggle-btn"></div>
</label>

<label class="toggle egg-shell-fry">
    <input type="checkbox" class="toggle-checkbox">
    <div class="toggle-btn"></div>
</label>

<label class="toggle takeoff-land">
    <input type="checkbox" class="toggle-checkbox">
    <div class="toggle-btn"></div>
</label>

<label class="toggle hourglass-start-end">
    <input type="checkbox" class="toggle-checkbox">
    <div class="toggle-btn"></div>
</label>

<label class="toggle speaker-low-high">
    <input type="checkbox" class="toggle-checkbox">
    <div class="toggle-btn"></div>
</label>

<label class="toggle lock-unlock">
    <input type="checkbox" class="toggle-checkbox">
    <div class="toggle-btn"></div>
</label>

<label class="toggle chick-chicken">
    <input type="checkbox" class="toggle-checkbox">
    <div class="toggle-btn"></div>
</label>

<label class="toggle cow-milk">
    <input type="checkbox" class="toggle-checkbox">
    <div class="toggle-btn"></div>
</label>

<label class="toggle pig-bacon">
    <input type="checkbox" class="toggle-checkbox">
    <div class="toggle-btn"></div>
</label>

<label class="toggle fish-sushi">
    <input type="checkbox" class="toggle-checkbox">
    <div class="toggle-btn"></div>
</label>

<label class="toggle caterpillar-butterfly">
    <input type="checkbox" class="toggle-checkbox">
    <div class="toggle-btn"></div>
</label>

<label class="toggle seedling-flower">
    <input type="checkbox" class="toggle-checkbox">
    <div class="toggle-btn"></div>
</label>

<label class="toggle thumbs-up-down">
    <input type="checkbox" class="toggle-checkbox">
    <div class="toggle-btn"></div>
</label>

<label class="toggle left-right">
    <input type="checkbox" class="toggle-checkbox">
    <div class="toggle-btn"></div>
</label>

<label class="toggle up-down">
    <input type="checkbox" class="toggle-checkbox">
    <div class="toggle-btn"></div>
</label>
            
          
!
            
              :root {
   font-size: calc(5em + 20vw);
}

* {
    box-sizing: border-box;
}

body {
    display: flex;
    justify-content: center;
	align-content: center;
    align-items: center;
	flex-wrap: wrap;
    min-height: 100vh;
	overflow-x: hidden;
    background-color: #13fccd;
}

.toggle {
    position: relative;
    width: 1em;
    height: 0.1em;
    border-radius: 0.5em;
    border: 0.015em solid #9f9f9f;
    background-image: linear-gradient(#f2f2f2, #fff, #f2f2f2);
	margin: 0.26em 0.15em;
    cursor: pointer;
	filter: drop-shadow(0.015em 0.015em 0.01em rgba(0, 0, 0, 0.3))
}

.toggle-btn::after {
    position: absolute;
    top: -0.14rem;
	left: 0;
    width: 50%;
    font-size: 0.35em;
    text-align: center;
    transition: all 500ms cubic-bezier(0.34, 0.78, 0.55, 1.4);
}

.toggle-checkbox {
    position: absolute;
    visibility: hidden;
}

.toggle-checkbox:checked + .toggle-btn::after {
	left: 50%;
}

/* Happy/Sad Toggle */

.happy-sad .toggle-btn::after {
    content: 'šŸ˜';
}

.happy-sad .toggle-checkbox:checked + .toggle-btn::after {
    content: 'šŸ˜­';
}

/* Love/Hate Toggle */

.love-hate .toggle-btn::after {
    content: 'šŸ˜';
}

.love-hate .toggle-checkbox:checked + .toggle-btn::after {
    content: 'šŸ˜”';
}

/* Nerd/Cool Toggle */

.nerd-cool .toggle-btn::after {
    content: 'šŸ¤“';
}

.nerd-cool .toggle-checkbox:checked + .toggle-btn::after {
    content: 'šŸ˜Ž';
}

/* Young/Old Toggle */

.young-old .toggle-btn::after {
    content: 'šŸ‘¶';
}

.young-old .toggle-checkbox:checked + .toggle-btn::after {
    content: 'šŸ‘“';
}

/* Male/Female Toggle */

.male-female .toggle-btn::after {
    content: 'šŸ‘Ø';
}

.male-female .toggle-checkbox:checked + .toggle-btn::after {
    content: 'šŸ‘©';
}

/* King/Queen Toggle */

.king-queen .toggle-btn::after {
    content: 'šŸ¤“';
}

.king-queen .toggle-checkbox:checked + .toggle-btn::after {
    content: 'šŸ‘ø';
}

/* Sun/Moon Toggle */

.sun-moon .toggle-btn::after {
    content: 'šŸŒž';
}

.sun-moon .toggle-checkbox:checked + .toggle-btn::after {
    content: 'šŸŒš';
}

/* Fire/Water Toggle */

.fire-water .toggle-btn::after {
    content: 'šŸ”„';
}

.fire-water .toggle-checkbox:checked + .toggle-btn::after {
    content: 'šŸ’§';
}

/* Heart/Break Toggle */

.heart-break .toggle-btn::after {
    content: 'šŸ’˜';
}

.heart-break .toggle-checkbox:checked + .toggle-btn::after {
    content: 'šŸ’”';
}

/* Bomb/Explode Toggle */

.bomb-explode .toggle-btn::after {
    content: 'šŸ’£';
}

.bomb-explode .toggle-checkbox:checked + .toggle-btn::after {
    content: 'šŸ’„';
}

/* Egg Shell/Fry Toggle */

.egg-shell-fry .toggle-btn::after {
    content: 'šŸ„š';
}

.egg-shell-fry .toggle-checkbox:checked + .toggle-btn::after {
    content: 'šŸ³';
}

/* Takeoff/Land Toggle */

.takeoff-land .toggle-btn::after {
    content: 'šŸ›«';
}

.takeoff-land .toggle-checkbox:checked + .toggle-btn::after {
    content: 'šŸ›¬';
}

/* Hourglass Start/End Toggle */

.hourglass-start-end .toggle-btn::after {
    content: 'ā³';
}

.hourglass-start-end .toggle-checkbox:checked + .toggle-btn::after {
    content: 'āŒ›';
}

/* Speaker Low/High Toggle */

.speaker-low-high .toggle-btn::after {
    content: 'šŸ”‰';
}

.speaker-low-high .toggle-checkbox:checked + .toggle-btn::after {
    content: 'šŸ”Š';
}

/* Lock/Unlock Toggle */

.lock-unlock .toggle-btn::after {
    content: 'šŸ”’';
}

.lock-unlock .toggle-checkbox:checked + .toggle-btn::after {
    content: 'šŸ”“';
}

/* Chick/Chicken Toggle */

.chick-chicken .toggle-btn::after {
    content: 'šŸ£';
}

.chick-chicken .toggle-checkbox:checked + .toggle-btn::after {
    content: 'šŸ“';
}

/* Cow/Milk Toggle */

.cow-milk .toggle-btn::after {
    content: 'šŸ„';
}

.cow-milk .toggle-checkbox:checked + .toggle-btn::after {
    content: 'šŸ„›';
}

/* Pig/Bacon Toggle */

.pig-bacon .toggle-btn::after {
    content: 'šŸ–';
}

.pig-bacon .toggle-checkbox:checked + .toggle-btn::after {
    content: 'šŸ„“';
}

/* Fish/Sushi Toggle */

.fish-sushi .toggle-btn::after {
    content: 'šŸŸ';
}

.fish-sushi .toggle-checkbox:checked + .toggle-btn::after {
    content: 'šŸ£';
}

/* Caterpillar/Butterfly Toggle */

.caterpillar-butterfly .toggle-btn::after {
    content: 'šŸ›';
}

.caterpillar-butterfly .toggle-checkbox:checked + .toggle-btn::after {
    content: 'šŸ¦‹';
}

/* Seedling/Flower Toggle */

.seedling-flower .toggle-btn::after {
    content: 'šŸŒ±';
}

.seedling-flower .toggle-checkbox:checked + .toggle-btn::after {
    content: 'šŸŒ·';
}

/* Thumbs Up/Down Toggle */

.thumbs-up-down .toggle-btn::after {
    content: 'šŸ‘';
}

.thumbs-up-down .toggle-checkbox:checked + .toggle-btn::after {
    content: 'šŸ‘Ž';
}

/* Left/Right Toggle */

.left-right .toggle-btn::after {
    content: 'šŸ‘ˆ';
}

.left-right .toggle-checkbox:checked + .toggle-btn::after {
    content: 'šŸ‘‰';
}

/* Up/Down Toggle */

.up-down .toggle-btn::after {
    content: 'šŸ‘†';
}

.up-down .toggle-checkbox:checked + .toggle-btn::after {
    content: 'šŸ‘‡';
}

            
          
!
            
              /*

ā£ā€‚ā€‚šŸ‘‘
ā€‚ā€‚šŸ˜Ž
āœŒšŸ‘•ā£āœŒ
ā€‚ā€‚šŸ‘–
 šŸ‘ŸšŸ‘Ÿ  
 
*/
            
          
!
999px
šŸ•‘ One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................

Console