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.

              <div class="acordeon">
			<div class="acordeon__item">
				<input type="radio" name="acordeon" id="item1">
				<label for="item1" class="acordeon__titulo">Título 1</label>
				<p class="acordeon__contenido">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Nobis quod dolorem nam iste laudantium doloremque perspiciatis assumenda, corporis minima, eligendi molestiae dolorum facere iure cum excepturi inventore expedita magni dolores.</p>
			<div class="acordeon__item">
				<input type="radio" name="acordeon" id="item2">
				<label for="item2" class="acordeon__titulo">Título 2</label>
				<p class="acordeon__contenido">Accusantium et vel ipsam accusamus, quidem. Quisquam, sunt, alias doloribus fugiat accusantium dolores voluptatibus. Facere, enim, voluptatibus. Odio suscipit, possimus laboriosam debitis alias, nemo deleniti eius, recusandae architecto provident sit?</p>
			<div class="acordeon__item">
				<input type="radio" name="acordeon" id="item3">
				<label for="item3" class="acordeon__titulo">Título 3</label>
				<p class="acordeon__contenido">Adipisci iure temporibus quae voluptate nemo ipsum aperiam ipsa ratione magni, quibusdam consequatur tempore illo, molestias illum eligendi labore necessitatibus cum minima. Et voluptatibus quos molestias dignissimos, officia minus, maxime.</p>
			<div class="acordeon__item">
				<input type="radio" name="acordeon" id="item4">
				<label for="item4" class="acordeon__titulo">Título 4</label>
				<p class="acordeon__contenido">Quo voluptate deleniti, maiores natus, voluptas veniam, omnis fugit recusandae dignissimos dolores sequi quibusdam explicabo velit eligendi suscipit quod? Totam optio error odit, dicta facere et quae sint natus quaerat.</p>
              * {
	box-sizing: border-box;

.acordeon input {
	display: none;

.acordeon__titulo {
	display: block;
	padding: 15px;
	background: crimson;
	color: #fff;
	font-size: 20px;
	cursor: pointer;
	border-bottom: 1px solid #fff;
.acordeon__titulo:hover {
	background: rgba(220, 20, 60, 0.8);

.acordeon__contenido {
	height: 0;
	overflow: hidden;
	margin: 0;
	transition: all 0.5s;

.acordeon input:checked ~ .acordeon__contenido{
	height: auto;
	margin: 15px 0;

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