Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource

JavaScript

Babel includes JSX processing.

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

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Auto Save

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.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <div class="container">
			<h2>Toolkit</h2>
			<div class="grid">
				<div class="input__container">
					<h3>Input type text</h3>
					<div class="input">
				      <input type="text" class="input__input" id="input" placeholder="Enter some text" required>
				      <label class="input__label" for="input">Enter some text</label>
				    </div>
				</div>
				<div class="input__container">
					<h3>Input type search</h3>
					<div class="input__search">
				      	<input class="input__search-input" type="search">
        				<div class="input__search-icon"></div>
				    </div>
				</div>
				<div class="input__container">
				    <h3>Input type radio</h3>
				    <label class="input__radio">Radio button
					 	<input type="radio">
					 	<span class="input__radio-checkmark"></span>
					</label>
				</div>
				<div class="input__container">
				    <h3>Input type checkbox</h3>
				    <label class="input__checkbox">Checkbox
						<input type="checkbox">
						<span class="input__checkbox-checkmark"></span>
					</label>
				</div>
				<div class="input__container">
				   	<h3>Input type switch</h3>
					<label class="input__switch">
						<input type="checkbox">
						<span class="input__switch-slider round"></span>
						<span class="input__switch-yes">Yes</span>
						<span class="input__switch-no">No</span>
					</label>
					<span class="input__switch-text">Label</span>
				</div>
				<div class="input__container">
					<h3>Slider</h3>
					<label class="input__range">
	  					<input class="input__range-input" type="range" min="0" max="100" value="0"/>
	  				</label>
				</div>
				<div class="input__container input__container-2">
				    <h3>Hover effects</h3>
				    <div class="c-link">
						  <a class="c-link__hover c-link__hover-1" href="">Hover effect 1</a> · 
              <a class="c-link__hover c-link__hover-2" href="">Hover effect 2</a> · 
              <a class="c-link__hover c-link__hover-3" href="">Hover effect 3</a>
				    </div>
				</div>
			</div>
		</div>
              
            
!

CSS

              
                @import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700&display=swap');

:root {
  --main: #363636;
  --secondary: #00C896;
  --dark: #00a5b6;
  --light: #E0F5F5;
}

.container {
  max-width: 64em;
  margin: 10vh auto;
  font-family: 'Open Sans', sans-serif;
}

.grid {
  display: grid;
  grid-template-columns: 1fr, 1fr, 1fr, 1fr;
  grid-gap: 40px 25px;
}

.input__container {
  margin: 25px;
  text-align: left;
}

.input__container-2 {
  grid-column: 3 / 5;
  grid-row: 2 / 3;
}


/* ·············· INPUT TEXT ·············· */
.input {
  color: var(--main);
  position: relative;
  padding-top: 18px;
}

.input__input {
  -webkit-appearance: none;
  width: 100%;
  padding: 3px 0;
  outline-width: 0;
  background: linear-gradient(var(--dark), var(--dark)) no-repeat 0 0;
  background-size: 0 2px;
  background-position-y: bottom;
  transition: all 0.2s;
  touch-action: manipulation;
  border: none;
  border-bottom: 1px solid var(--dark);
  
  font-size: 14px;
  color: var(--main);
}

.input__input::placeholder {
    position: relative;
    top: -3px;
    color: var(--main);
}

.input__input:focus {
    background-size: 100% 2px;
}

.input__input:placeholder-shown + .input__label {
  opacity: 0;
  transform: translateY(10px);
}

.input__label {
  position: absolute;
  top: 0;
  left: 0;
  font-size: 14px;
  transition: all 0.2s;
  touch-action: manipulation;
}






/* ·············· INPUT SEARCH ·············· */
.input__search {
  position: relative;
}

.input__search-input {
  appearance: none;
  width: 100%;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--dark);
  padding: 0 10px;
  
  font-size: 16px;
}

.input__search-input:focus {
  outline: none;
}

.input__search-icon {
  width: 40px;
  height: 40px;
  background: url('http://bindy.es/img/icon-search.svg') no-repeat center;
  background-size: 20px;
  border-left: 1px solid var(--main);
  position: absolute;
  right: 0;
  top: 0;
  cursor: pointer;
}



/* ·············· INPUT RADIO ·············· */
.input__radio {
  color: var(--dark);
  display: block;
  position: relative;
  padding-left: 40px;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  text-align: left;
  font-size: 14px;
  font-weight: bold;
  text-transform: uppercase;
  line-height: 26px;
}

.input__radio input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.input__radio-checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 23px;
  width: 23px;
  background-color: white;
  border: 2px solid var(--dark);
  border-radius: 50%;
}

.input__radio:hover input ~ .input__radio-checkmark {
  background-color: #d4fff1;
}

input:checked ~ .input__radio-checkmark {
  background-color: white;
  border: 2px solid var(--dark);
}

.input__radio-checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

input:checked ~ .input__radio-checkmark:after {
  display: block;
}

.input__radio-checkmark:after {
  top: 4px;
  left: 4px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--dark);
}



/* ·············· INPUT CHECK ·············· */
.input__checkbox {
  display: block;
  position: relative;
  padding-left: 40px;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  text-align: left;
  font-size: 14px;
  font-weight: bold;
  text-transform: uppercase;
  color: var(--dark);
  line-height: 26px;
}

.input__checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.input__checkbox-checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 22px;
  width: 22px;
  background-color: var(--ion-white);
  border: 2px solid var(--dark);
  border-radius: 2px;
}

input:checked ~ .input__checkbox-checkmark {
  background: var(--dark) url("http://bindy.es/img/icon-checkbox.svg") center;
  border: 2px solid var(--dark);
}

.input__checkbox-checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

input:checked ~ .input__checkbox-checkmark:after {
  display: block;
}

.input__checkbox-checkmark:after {
  top: 5px;
  left: 5px;
  width: 22px;
  height: 22px;
  background: var(--dark);
}




/* ·············· INPUT SWITCH ·············· */
/* The switch - the box around the slider */
.input__switch {
  position: relative;
  display: inline-block;
  width: 69px;
  height: 33px;
  top: -5px;
  margin-right: 10px;
}

/* Hide default HTML checkbox */
.input__switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.input__switch-yes {
  position: absolute;
  color: white;
  top: 6px;
  left: 10px;
}

.input__switch-no {
  position: absolute;
  color: var(--dark);
  right: 10px;
  top: 6px;
}

/* The slider */
.input__switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: white;
  border: 2px solid var(--dark);
  -webkit-transition: .4s;
  transition: .4s;
}

.input__switch-slider:before {
  position: absolute;
  content: "";
  height: 25px;
  width: 25px;
  left: 2px;
  bottom: 2px;
  background-color: var(--dark);
  -webkit-transition: .4s;
  transition: .4s;
  z-index: 99;
}

input:checked + .input__switch-slider {
  background-color: var(--dark);
}

input:checked + .input__switch-slider {
  border: 2px solid var(--dark);
}

input:checked + .input__switch-slider:before {
  background-color: white;
  -webkit-transform: translateX(36px);
  -ms-transform: translateX(36px);
  transform: translateX(36px);
}

/* Rounded c-switch-sliders */
.input__switch-slider.round {
  border-radius: 34px;
}

.input__switch-slider.round:before {
  border-radius: 50%;
}

.input__switch-text {
  position: relative;
  top: 2px;
  right: 6px;
}




/* ·············· INPUT RANGE ·············· */
.input__range-input {
  width: 100%;
  height: 30px;
  outline: none;
  box-sizing: border-box;
  background: transparent;
  -webkit-appearance: none;
}

.input__range-input::-webkit-slider-runnable-track {
  width: 100%;
  height: 2px;
  background: var(--dark);
  cursor: grab;
}
.input__range-input::-webkit-slider-thumb {
  width: 13px;
  height: 13px;
  border-radius: 50%;
 
  border: none;
  background-color: mediumaquamarine;
  transform: translateY(-5px);
  -webkit-appearance: none;
  transition: transform .5s cubic-bezier(.25,.8,.25,1);
}
.input__range-input:focus::-webkit-slider-thumb {
  transform: translateY(-5px) scale(1.5);
}




/* ·············· HOVER EFFECTS ·············· */
.c-link {
  text-align: left;
  font-weight: 900;
}

.c-link__hover {
  text-decoration: none;
  font-size: 16px;
  color: #551a8b;
}

.c-link__hover-1 {
  background: linear-gradient(to right, #00a1ba, #36C486) no-repeat 0 0;
  background-size: 0 4px;
  background-position-y: bottom;
  transition: 0.3s;
  padding-bottom: 3px;
}

.c-link__hover-1:hover {
  background-size: 100% 4px;
}

.c-link__hover-2 {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg id='squiggle-link' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' xmlns:ev='http://www.w3.org/2001/xml-events' viewBox='0 0 20 4'%3E%3Cstyle type='text/css'%3E.squiggle{animation:shift .3s linear infinite;}@keyframes shift {from {transform:translateX(0);}to {transform:translateX(-20px);}}%3C/style%3E%3Cpath fill='none' stroke='aquamarine' stroke-width='2' class='squiggle' d='M0,3.5 c 5,0,5,-3,10,-3 s 5,3,10,3 c 5,0,5,-3,10,-3 s 5,3,10,3'/%3E%3C/svg%3E");
  background-position: bottom;
  background-repeat: repeat-x;
  background-size: 20%;
  text-decoration: none;
  padding-bottom: 3px;
}

.c-link__hover-2:hover {
  border-bottom: 2px solid var(--dark);
  background-image: none;
}

.c-link__hover-3 {
  text-decoration: none;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: all 0.3s cubic-bezier(0.000, 0.000, 0.230, 1);
  background-image: linear-gradient(to right, #00a1ba, #00BF98, #36C486 50%, #551a8b 50%);
  background-size: 200% 100%;
  background-position: 100%;
}

.c-link__hover-3:hover {
  transition: all 0.3s cubic-bezier(0.000, 0.000, 0.230, 1);
  background-position: 0%;
}


              
            
!

JS

              
                
              
            
!
999px

Console