123

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              <!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	
	<link rel="stylesheet" href="css/style.css">
	<link rel="stylesheet" href="css/bootstrap.min.css">
	<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.6.3/css/all.css" integrity="sha384-UHRtZLI+pbxtHCWp1t77Bi1L4ZtiqrqD80Kn4Z8NTSRyMA2Fd33n5dQ8lWUE00s/" crossorigin="anonymous">
	<link href="https://fonts.googleapis.com/css?family=Poppins&display=swap" rel="stylesheet">
	<title>Education</title>
</head>
<body>
<section class="order">
    	<div class="container">
    		<div class="row">
    			<div class="col-lg-6">
    				<div class="order__item">
    			    <div class="caption d-flex">
    				    <h5 class="caption__order white">Express</h5>
    				    
    				</div>
    				<div class="list__order">
                    <section class="item-list">
		                <input type="checkbox" id='one' class="check-btn">
		                <div class="btn__list">
			                <p>Track your shipment</p>
			                <label for="one" class="radio">></label>
		                </div>
	                    <div class='content active-item-list'>
		                    <h5 class="caption__list">Internacional services to Anther Country</h5>
		                    <ul>
			                    <li><span class="icons"><i class="fa fa-caret-right"></i></span>Emergency</li>
			                    <li><span class="icons"><i class="fa fa-caret-right"></i></span>Time Critical</li>
			                    <li><span class="icons"><i class="fa fa-caret-right"></i></span>Less Urgent</li>
		                    </ul>
	                    </div>

	                </section>
	                <section class="item-list">
		                <input type="checkbox" id='two' class="check-btn">
		                <div class="btn__list">
			                <p>New login</p>
			                <label for="two" class="radio">></label>
		                </div>
	                    <div class='content active-item-list'>
		                <h5 class="caption__list">Internacional services to Anther Country</h5>
		                <ul>
			                <li><span class="icons"><i class="fa fa-caret-right"></i></span>Emergency</li>
			                <li><span class="icons"><i class="fa fa-caret-right"></i></span>Time Critical</li>
			                <li><span class="icons"><i class="fa fa-caret-right"></i></span>Less Urgent</li>
		                </ul>
	                    </div>

	                </section>	
	                <section class="item-list">
		                <input type="checkbox" id='three' class="check-btn">
		                <div class="btn__list">
			                <p>Find Dhl point</p>
			                <label for="three" class="radio">></label>
		                </div>
	                    <div class='content active-item-list'>
		                <h5 class="caption__list">Internacional services to Anther Country</h5>
		                <ul>
			                <li><span class="icons"><i class="fa fa-caret-right"></i></span>Emergency</li>
			                <li><span class="icons"><i class="fa fa-caret-right"></i></span>Time Critical</li>
			                <li><span class="icons"><i class="fa fa-caret-right"></i></span>Less Urgent</li>
		                </ul>
	                    </div>

	                </section>	
	                <section class="item-list">
		                <input type="checkbox" id='four' class="check-btn">
		                <div class="btn__list">
			                <p>Find a service</p>
			                <label for="four" class="radio">></label>
		                </div>
	                    <div class='content active-item-list'>
		                    <h5 class="caption__list">Internacional services to Anther Country</h5>
		                    <ul>
			                    <li><span class="icons"><i class="fa fa-caret-right"></i></span>Emergency</li>
			                    <li><span class="icons"><i class="fa fa-caret-right"></i></span>Time Critical</li>
			                    <li><span class="icons"><i class="fa fa-caret-right"></i></span>Less Urgent</li>
		                    </ul>
	                    </div>

	                </section> 
	                </div> 
	                </div>         
          </div>
    		</div>
    	</div>
    </section>
</body>
  
</html>
            
          
!
            
              /*Стили для выпадающих списков*/

.order{
	width: 50%;
}

.order__item{
	background: #ba0000;
	min-height: 400px;

}

.list__order{
	padding-top: 40px;
}

.caption{

}

.caption__order{
	font-size: 14px;
	padding-top: 12px;
	margin-left: 112px;
	cursor: pointer;
}


.item-list{
	overflow: hidden;
	padding-top: 10px;
	transition: .5s;
}

.btn__list{
	display: flex;
	position: relative;
	color: #fff;
	max-width: 440px;
	border: 1px solid #fff;
	margin-left: 20px;
}

.btn__list2{
	width: 210px;
	margin-left: 0;
}

.btn__list p{
	width: 100%;
    padding-left: 20px;
	margin-top: 15px;
	background: rgba(0,0,0,0);
	text-transform: uppercase;
	font-size: 14px;
	font-weight: 500;
	color: #eed0d0;
}

.radio{
	position: absolute;
	left: 385px;
	min-height: 52px;
	margin-left: 2px;
	padding: 10px 20px;
	background: rgba(0,0,0,0);
	border: 1px solid #fff;
	cursor: pointer;
	color: #eed0d0;
}

.radio2{
	left: 154px;
}

.caption__list{
	padding: 10px;
	color: #fff;
	font-size: 16px;
	font-weight: 400;
	margin-left: 30px;
}
	
.content ul li{
	list-style: none;
	margin: 10px;
	margin-left: 50px;
	color: #fff;
}

.check-btn{
	display: none;
}

.content{
	height: 0;
	transition: 1s;
}
	
.check-btn:checked ~ .active-item-list{
    height: 165px;
	transition: 1s;
} 

.check-btn:checked ~ .active-item-list,
.check-btn:checked ~ .btn__list {
  background: magenta;
}

            
          
!
            
              // document.querySelectorAll('.radio').forEach(function(element){
// 	element.onclick = bgChange;
// });

// let timer = 0;

// function bgChange(){
// 	let btnlist = document.querySelectorAll('.btn__list');
// 	timer++;
//     if(timer%2 == 0){
//     	for(let i = 0; i < btnlist.length; i++){
    		
//     	        btnlist.style.color = '#ffffff';
    		
//         }
//     }
//     else if(timer%2 != 0){
//         for(let i = 0; i < btnlist.length; i++){
    
//     	        btnlist[i].style.background = '#ffcc00';
            
//         }

//         let change = document.querySelectorAll('.btn__list p');
//   	    for(let i = 0; i < change.length; i++){
  	    	
// 		        change[i].style.color = '#ba0000';
	        
// 	    }
//     }

//     document.querySelector('.red').style.maxHeight = 'none';
// 	document.querySelector('.red').style.minHeight = '340px';
// }

            
          
!
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.

Console