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.

            
              <header>
	<h1>Sweet button, dude...</h1>
	<h2>I bet you can't click just once.</h2>
	<div class="btn-multi">
		<input type="checkbox" id="multi-btn" name="multi-btn" />
		<label for="multi-btn">
			<a href="https://www.facebook.com/" class="btn btn-circle" target="_blank"><i class="fa fa-facebook icon" aria-hidden="true"></i></a>
			<a href="https://www.twitter.com/" class="btn btn-circle" target="_blank"><i class="fa fa-twitter icon" aria-hidden="true"></i></a>
			<a href="https://www.google.com/" class="btn btn-circle" target="_blank"><i class="fa fa-google-plus icon" aria-hidden="true"></i></a>
			<span class="btn btn-circle"><i class="material-icons icon">close</i></span>
			<i class="material-icons icon">share</i>
		</label>
	</div>
</header>


<main>
	<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum id sodales purus, a tempor mi. Nullam ac laoreet tortor. Vivamus ut congue neque, id rhoncus libero. Phasellus et accumsan diam. Pellentesque interdum urna eros, in venenatis lorem tincidunt
		a. Pellentesque euismod velit sed nunc consectetur vulputate. Sed posuere est id convallis elementum. Phasellus accumsan iaculis est, eu auctor purus mattis non. Phasellus pharetra ex ac lacus ullamcorper, eget tempus augue hendrerit. Vestibulum vitae
		lorem augue. Maecenas consectetur tempor turpis, nec imperdiet libero blandit ac. Mauris dignissim purus eu euismod mattis.</p>

	<p>Nulla eu condimentum eros. Curabitur vel metus in magna fringilla congue. Cras ac dictum lectus, vitae imperdiet libero. Mauris et neque nibh. Etiam auctor urna purus, in consectetur enim fermentum eget. Vivamus tincidunt massa sapien, sed fermentum
		lectus laoreet sed. Donec porttitor lacus sit amet metus facilisis, ac pretium magna venenatis. Ut libero nisi, volutpat id auctor at, congue in dui. Integer turpis sapien, cursus eu magna vel, posuere bibendum sapien.</p>

	<p>Nulla accumsan leo quis volutpat rhoncus. Integer nec porttitor ante, quis pharetra ipsum. Vivamus nulla nunc, commodo at commodo vel, placerat quis orci. Phasellus porta, purus vel ornare luctus, lorem nunc molestie nisi, sed fermentum purus nulla vel
		est. Nullam purus velit, vestibulum non velit sit amet, elementum auctor mauris. In non lobortis tellus. Maecenas fringilla, turpis eget luctus aliquam, sem ligula varius magna, sit amet dignissim tellus erat non neque. Fusce dignissim ipsum sed orci
		aliquam, a molestie magna egestas. In hac habitasse platea dictumst. Curabitur vel rhoncus elit, quis vulputate augue. Pellentesque ac pellentesque diam, eu feugiat velit. In sagittis ipsum eu velit malesuada, sed iaculis dui euismod. Vestibulum tempus
		metus et mollis posuere. Etiam lacinia, tellus vitae porttitor vulputate, neque purus rutrum lorem, non vehicula metus augue eu elit. Integer quis turpis quis justo molestie ultricies nec semper enim. In hac habitasse platea dictumst.</p>
</main>
            
          
!
            
              body {
	margin: 0;
}

h1 {
	padding: 0;
	margin: 0;
	color: white;
	font-weight: lighter;
	font-family: 'Open sans', sans-serif;
	left: 15%;
	top: 50px;
	font-size: 2.5em;
	position: absolute;
}
h2 {
	font-family: 'open sans', sans-serif;
	font-weight: lighter;
	color: #fff;
	opacity: .5;
	position: absolute;
	left: 15%;
	top: 90px;
}

header {
	position: relative;
	width: 100%;
	height: 200px;
	background-color: rgba(63,81,181,1);
	.btn-multi {
		position: absolute;
		z-index: 999;
		right: 15%;
		bottom: -54px;
	}
}

.btn {
	display: inline-flex;
	font-family: 'Roboto', sans-serif;
	text-decoration: none;
	justify-content: center;
	align-items: center;
	text-align: center;
	cursor: pointer;
	white-space: nowrap;
	padding: 8px 20px;
	font-size: 14px;
	background-color: #E91E63;
	border-radius: 2px;
	color: white;
	text-transform: uppercase;
	border: none;
	transition: all 0.2s ease-in;
	background-position: 50%;
	outline: none !important;
	&.btn-circle {
		height: 50px;
		width: 50px;
		border-radius: 50%;
		padding: 0 !important;
		font-size: 18px;
	}
}

.btn-multi {
	input {
		display: none;
		&:not(:checked) {
			~ label {
				transform: rotate(0);
				.btn {
					border-radius: 0;
					height: 30px;
					width: 30px;
					box-shadow: none;
					&:first-child {
						border-top-left-radius: 100%;
						transform: translate(25px, 25px);
					}
					&:nth-child(2) {
						border-top-right-radius: 100%;
						transform: translate(55px, 25px);
					}
					&:nth-child(3) {
						border-bottom-left-radius: 100%;
						transform: translate(25px, 55px);
					}
					&:nth-child(4) {
						border-bottom-right-radius: 100%;
						transform: translate(55px, 55px);
					}
					.icon { opacity: 0; }
				}
				> .icon { opacity: 1; cursor: pointer; }
			}
		}
	}
	label {
		position: relative;
		height: 110px;
		width: 110px;
		display: block;
		transform: rotate(45deg);
		transition: all .2s ease-in;
		cursor: default;
		border-radius: 30px;
		.btn {
			position: absolute;
  		box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
			&:nth-child(2) { transform: translate(60px, 0); }
			&:nth-child(3) { transform: translate(0, 60px); }
			&:nth-child(4) { transform: translate(60px, 60px); }
			.icon { 
				opacity: 1; 
				transition: all .15s ease-in-out; 
				transform: rotate(-45deg);
			}
		}
		> .icon {
			color: white;
			position: absolute;
			border-radius: 50%;
			display: flex;
			font-size: 30px;
			align-items: center;
			justify-content: center;
			height: 60px;
			width: 60px;
			top: 25px;
			left: 25px;
			opacity: 0;
			transition: all .25s ease-in-out;
		}
		.icon {
			-webkit-user-select: none;
			-moz-user-select: none;
			-ms-user-select: none;
		}
	}
}

main {
	position: absolute;
	left: 15%;
	right: 15%;
	top: 250px;
	margin-bottom: 50px;
	font-family: 'open sans', sans-serif;
	font-weight: lighter;
}
            
          
!
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