Pen Settings

HTML

CSS

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

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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

Behavior

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.

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

              
                
	<a href="https://front.codes/" class="logo hover-target" target="_blank">
		<img src="https://assets.codepen.io/1462889/fcy.png" alt="">
	</a>

	<div class="section">
		<div class="container">
			<div class="row justify-content-center">
	          	<input class="checkbox-all" type="radio" id="color" name="color" checked/>
	          	<label for="color">all</label>
	          	<input class="checkbox-alizarin" type="radio" name="color" id="color-1"/>
	          	<label for="color-1">alizarin</label>
	          	<input class="checkbox-wisteria" type="radio" name="color" id="color-2"/>
	          	<label for="color-2">wisteria</label>
	          	<input class="checkbox-emerland" type="radio" name="color" id="color-3"/>
	          	<label for="color-3">emerland</label>
	          	<input class="checkbox-belizehole" type="radio" name="color" id="color-4"/>
         	 	<label for="color-4">belizehole</label>
         	 	<input class="checkbox-sunflower" type="radio" name="color" id="color-5"/>
         	 	<label for="color-5">sunflower</label>
			    <div class="w-100 p-0 pt-2"></div>
			    <div class="col-auto box alizarin"></div>
			    <div class="col-auto box wisteria"></div>
			    <div class="col-auto box emerland"></div>
			    <div class="col-auto box belizehole"></div>
			    <div class="col-auto box sunflower"></div>
			    <div class="col-auto box alizarin"></div>
			    <div class="col-auto box wisteria"></div>
			    <div class="col-auto box emerland"></div>
			    <div class="col-auto box belizehole"></div>
			    <div class="col-auto box sunflower"></div>
			    <div class="col-auto box alizarin"></div>
			    <div class="col-auto box wisteria"></div>
			    <div class="col-auto box emerland"></div>
			    <div class="col-auto box belizehole"></div>
			    <div class="col-auto box sunflower"></div>
			    <div class="col-auto box alizarin"></div>
			    <div class="col-auto box wisteria"></div>
			    <div class="col-auto box emerland"></div>
			    <div class="col-auto box belizehole"></div>
			    <div class="col-auto box sunflower"></div>
	      	</div>
	    </div>
	</div>
              
            
!

CSS

              
                

/* Please ❤ this if you like it! */


@import url('https://fonts.googleapis.com/css?family=Poppins:400,500,600,700,800,900');

body{
	font-family: 'Poppins', sans-serif;
	font-weight: 300;
	font-size: 15px;
	line-height: 1.7;
	color: #c4c3ca;
	background-color: #1f2029;
	overflow-x: hidden;
}
a {
	cursor: pointer;
}
a:hover {
	text-decoration: none;
}

.section{
  position: relative;
  width: 100%;
  display: block;
  padding: 60px 0;
}
[type="radio"]:checked,
[type="radio"]:not(:checked){
  position: absolute;
  left: -9999px;
}
[type="radio"]:checked + label,
[type="radio"]:not(:checked) + label{
  position: relative;
  padding-left: 12px;
  padding-right: 12px;
  cursor: pointer;
  line-height: 30px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 500;
  color: #fff;
  margin-right: 10px;
  margin-left: 10px;
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
}
[type="radio"]:checked:hover + label:before,
[type="radio"]:not(:checked):hover + label:before,
[type="radio"]:checked:hover + label:after,
[type="radio"]:not(:checked):hover + label:after{
  opacity: 0.7;
}
[type="radio"]:checked + label:before,
[type="radio"]:not(:checked) + label:before{
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 30px;
  border-radius: 3px;
  background-color: transparent;
  z-index: -1;
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
}
[type="radio"]:checked + label:after,
[type="radio"]:not(:checked) + label:after{
  content: '';
  border-radius: 2px;
  height: 3px;
  background-color: #e74c3c;
  position: absolute;
  bottom: 0;
  left: 12px;
  z-index: -1;
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
}
[type="radio"]:not(:checked) + label:after{
  opacity: 0;
  width: 0;
}
[type="radio"]:checked + label:after{
  opacity: 1;
  width: calc(100% - 24px);
}

/* #Colors
================================================== */ 

.checkbox-all:checked + label:after,
.checkbox-all:not(:checked) + label:after{
  background-color: #000;
}

.checkbox-alizarin:checked + label:after,
.checkbox-alizarin:not(:checked) + label:after{
  background-color: #e74c3c;
}

.checkbox-wisteria:checked + label:after,
.checkbox-wisteria:not(:checked) + label:after{
  background-color: #8e44ad;
}

.checkbox-emerland:checked + label:after,
.checkbox-emerland:not(:checked) + label:after{
  background-color: #2ecc71;
}

.checkbox-belizehole:checked + label:after,
.checkbox-belizehole:not(:checked) + label:after{
  background-color: #2980b9;
}

.checkbox-sunflower:checked + label:after,
.checkbox-sunflower:not(:checked) + label:after{
  background-color: #f1c40f;
}

.box{
  border-radius: 4px;
  box-shadow: 6px 7px 28px 0 rgba(16, 16, 16, 0.7);
  -webkit-transition: all 0.2s linear;
  transition: all 0.3s linear;
}
.box.alizarin{
  border: 3px solid #e74c3c;
}
.box.wisteria{
  border: 3px solid #8e44ad;
}
.box.emerland{
  border: 3px solid #2ecc71;
}
.box.belizehole{
  border: 3px solid #2980b9;
}
.box.sunflower{
  border: 3px solid #f1c40f;
}
.box.alizarin,
.box.wisteria,
.box.emerland,
.box.belizehole,
.box.sunflower{
  opacity: 0;
  transform: scale(0);
  padding: 0;
  margin: 0;
  visibility: hidden;
  border-width: 0;
}
.checkbox-all:checked ~ .box.alizarin,
.checkbox-all:checked ~ .box.wisteria,
.checkbox-all:checked ~ .box.emerland,
.checkbox-all:checked ~ .box.belizehole,
.checkbox-all:checked ~ .box.sunflower,
.checkbox-alizarin:checked ~ .box.alizarin,
.checkbox-wisteria:checked ~ .box.wisteria,
.checkbox-emerland:checked ~ .box.emerland,
.checkbox-belizehole:checked ~ .box.belizehole,
.checkbox-sunflower:checked ~ .box.sunflower{
  opacity: 1;
  min-height: 140px;
  min-width: calc(22% - 28px);
  padding: 0 10px;
  margin-left: 10px;
  margin-right: 10px;
  margin-top: 20px;
  visibility: visible;
  transform: scale(1);
  border-width: 3px;
}
@media (max-width: 1199px) {
	.checkbox-all:checked ~ .box.alizarin,
	.checkbox-all:checked ~ .box.wisteria,
	.checkbox-all:checked ~ .box.emerland,
	.checkbox-all:checked ~ .box.belizehole,
	.checkbox-all:checked ~ .box.sunflower,	
  	.checkbox-alizarin:checked ~ .box.alizarin,
  	.checkbox-wisteria:checked ~ .box.wisteria,
  	.checkbox-emerland:checked ~ .box.emerland,
  	.checkbox-belizehole:checked ~ .box.belizehole,
  	.checkbox-sunflower:checked ~ .box.sunflower{
    	min-width: calc(32% - 28px);
  	}
}
@media (max-width: 991px) {	
	.checkbox-all:checked ~ .box.alizarin,
	.checkbox-all:checked ~ .box.wisteria,
	.checkbox-all:checked ~ .box.emerland,
	.checkbox-all:checked ~ .box.belizehole,
	.checkbox-all:checked ~ .box.sunflower,	
  	.checkbox-alizarin:checked ~ .box.alizarin,
  	.checkbox-wisteria:checked ~ .box.wisteria,
  	.checkbox-emerland:checked ~ .box.emerland,
  	.checkbox-belizehole:checked ~ .box.belizehole,
  	.checkbox-sunflower:checked ~ .box.sunflower{
		min-width: calc(50% - 28px);
  	}
}
@media (max-width: 575px) {	
	.checkbox-all:checked ~ .box.alizarin,
	.checkbox-all:checked ~ .box.wisteria,
	.checkbox-all:checked ~ .box.emerland,
	.checkbox-all:checked ~ .box.belizehole,
	.checkbox-all:checked ~ .box.sunflower,	
  	.checkbox-alizarin:checked ~ .box.alizarin,
  	.checkbox-wisteria:checked ~ .box.wisteria,
  	.checkbox-emerland:checked ~ .box.emerland,
  	.checkbox-belizehole:checked ~ .box.belizehole,
  	.checkbox-sunflower:checked ~ .box.sunflower{
   	 	min-width: calc(100% - 28px);
  	}
}





.logo {
	position: absolute;
	top: 30px;
	right: 30px;
	display: block;
	z-index: 100;
	transition: all 250ms linear;
}
.logo img {
	height: 26px;
	width: auto;
	display: block;
}
@media (max-width: 1200px) {	
  .logo {
    top: 20px;
    right: 20px;
  }
  .logo img {
    height: 24px;
  }
}











              
            
!

JS

              
                

/* Please ❤ this if you like it! */


              
            
!
999px

Console