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

              
                
		<div class="header-panel shadow-z-2">
				<div class="container-fluid">
						<div class="row">
								<div class="col-xs-3">
									<h1>Pied Piper</h1>
								</div>
						</div>
				</div>
		</div>

		<div class="container-fluid main">
				<div class="row">
						<nav class="col-xs-3 menu">
								<ul>
										<li class="active withripple" data-target="#about">Material Design</li>
										<li class="withripple" data-target="#getting-started">Getting Started</li>
										<li class="withripple" data-target="#material-colors">Material Colors</li>
										<li class="withripple" data-target="#checkbox">Checkbox</li>
										<li class="withripple" data-target="#radio-button">Radio Button</li>
								</ul>
						</nav>
						<div class="pages col-xs-9">
								<div class="col-xs-10">
										<div class="well page active" id="about">
												<h1 class="header">Home</h1>
												<div class="panel-heading">About</div>
												<div class="panel-body">Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronwith the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum</div>
										</div>
										<div class="well page" id="getting-started">
												<h1 class="header">Getting started</h1>
												<div class="panel-heading">Getting-started</div>
												<div class="panel-body">Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text n an unknown printer took a galley of type and scra with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum</div>
										</div>
										<div class="well page" id="material-colors">
												<h1 class="header">Material colors</h1>
												<div class="panel-heading">material colors</div>
												<div class="panel-body">Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</div>
										</div>
										<div class="well page" id="checkbox">
												<h1 class="header">Material Design for Bootstrap</h1>
												<div class="panel-heading">checkbox</div>
												<div class="panel-body">Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make elease of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum</div>
										</div>
										<div class="well page" id="radio-button">
												<h1 class="header">Radio button</h1>
												<div class="panel-heading">radio-button</div>
												<div class="panel-body">Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popund more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum</div>
										</div>
								</div>
						</div>
				</div>
		</div>
              
            
!

CSS

              
                #shadow h2 {
		padding: 14px;
		margin: 0;
		font-size: 16px;
		font-weight: 400;
}

#shadow .sample {
		width: 100px;
		height: 100px;
		margin: 16px;
		padding: 16px;
		display: inline-block;
}

#shadow-sample2 {
		display: inline-block;
		width: 100px;
		height: 100px;
		margin: 16px;
		padding: 16px;
		cursor: pointer;
		-webkit-user-select: none;
		-moz-user-select: none;
		user-select: none;
}

#shadow-sample3 {
		display: inline-block;
		width: 100px;
		height: 100px;
		margin: 16px;
		padding: 16px;
		border-radius: 100px;
		cursor: pointer;
		-webkit-user-select: none;
		-moz-user-select: none;
		user-select: none;
}

.withripple {
		position: relative
}

.ripple-wrapper {
		position: absolute;
		top: 0;
		left: 0;
		z-index: 1;
		width: 100%;
		height: 100%;
		overflow: hidden;
		border-radius: inherit;
		pointer-events: none
}

.ripple {
		position: absolute;
		width: 20px;
		height: 20px;
		margin-left: -10px;
		margin-top: -10px;
		border-radius: 100%;
		background-color: rgba(0, 0, 0, .05);
		-webkit-transform: scale(1);
		-ms-transform: scale(1);
		transform: scale(1);
		-webkit-transform-origin: 50%;
		-ms-transform-origin: 50%;
		transform-origin: 50%;
		opacity: 0;
		pointer-events: none
}

.ripple.ripple-on {
		transition: opacity .15s ease-in 0s, -webkit-transform .5s cubic-bezier(.4, 0, .2, 1) .1s;
		transition: opacity .15s ease-in 0s, transform .5s cubic-bezier(.4, 0, .2, 1) .1s;
		opacity: .1
}

.ripple.ripple-out {
		transition: opacity .1s linear 0s!important;
		opacity: 0
}

* {
		box-sizing: border-box;
}

.header-panel {
		background-color: #E91E63;
		height: 144px;
		position: relative;
		z-index: 3;
}

.header-panel div {
		position: relative;
		height: 100%;
}

.header-panel h1 {
		color: #FFF;
		font-size: 20px;
		font-weight: 400;
		position: absolute;
		bottom: 55px;
		padding-left: 35px;
}

.header-panel h2 {
		color: #FFF;
		font-size: 15px;
		font-weight: 200;
		position: absolute;
		bottom: 35px;
		padding-left: 35px;
		opacity: .8;
}

.menu {
		overflow: auto;
		padding: 0;
}

.menu,
.menu * {
		-webkit-user-select: none;
		-moz-user-select: none;
		user-select: none;
}

.menu ul {
		padding: 0;
		margin: 7px 0;
}

.menu ul li {
		list-style: none;
		padding: 20px 0 20px 50px;
		font-size: 15px;
		font-weight: normal;
		cursor: pointer;
}

.menu ul li.active {
		background-color: #dedede;
		position: relative;
}

.menu ul li a {
		color: rgb(51, 51, 51);
		text-decoration: none;
}

.pages {
		position: absolute;
		top: 0;
		right: 0;
		z-index: 4;
		padding: 0;
		overflow: auto;
}

.pages > div {
		padding: 0 5px;
		padding-top: 64px;
}

.pages .header {
		
		font-size: 24px;
		font-weight: normal;
		margin-top: 5px;
		margin-bottom: 60px;
		letter-spacing: 1.20000004768372px;
}

.page {
		transform: translateY(1080px);
		transition: transform 0 linear;
		display: none;
		opacity: 0;
		font-size: 16px;
}

.page.active {
		transform: translateY(0px);
		transition: all 0.3s ease-out;
		display: block;
		opacity: 1;
}

.well {
		min-height: 20px;
		padding: 19px;
		margin-bottom: 20px;
		background-color: #fff;
		border: 0px solid #fff;
		border-radius: 0px;
		box-shadow: 0 8px 17px 0 rgba(0, 0, 0, .2), 0 6px 20px 0 rgba(0, 0, 0, .19);
}

html, body {
    margin: 0; padding:0; border: 0;
    overflow: hidden;
    background: #EBEBEB;
}
#header, #middle, #footer {
    position: absolute;
    width: 100%
}
#header {
    background: #3F51B5;
    height: 128px;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.40);
}
.header-content {
    width: 80%;
    margin: 0 auto;
    padding-top: 24px;
}
#middle {
    background: #EBEBEB;
    top: 128px;
    left: 50%;
    bottom: 0px;
    width: 80%;
    margin: 0 auto;
}
#middle-offset {
  position: relative;
  height: 100%;
  left: -50%;
}
#left, #right {
    overflow-y: scroll
}
#left {
    background: background: #EBEBEB;;
    position: absolute;
    top: 0;
    width: 32%;
    height: 100%;
    padding-top: 24px;
    visibility: visible;
    display: block;
}
.card {
  z-index: 200;
  position: relative;
  height: calc(100% + 20px);
  left: 32%;
  top: -64px;
  width: 68%;
}
#right-header {
    background: #5C6BC0;
    position: absolute;
    top: 0;
    height: 192px;
    z-index: 210;
    width: 100%;
}
#right-header>.title {
  padding: 24px;
}
#right {
    background: #fff;
    position: absolute;
    top: 192px;
    width: 100%;
    bottom: 0;
}
.right-content {
    padding: 24px;
}


.paper-shadow {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  border-radius: inherit;
  pointer-events: none;
}
.z3-top {
  
  box-shadow: 0 0px 50px 0 rgba(0, 0, 0, 0.19);
}
.z3-bottom {
 
  box-shadow: 0 7px 15px 0 rgba(0, 0, 0, 0.24);
}

@media screen and (min-width: 0px) {
  #left {
    visibility: hidden;
    display: none;
  }
  #middle {
    top: 0;
    left: 0;
    bottom: 0px;
    width: 100%;
    margin: 0;
  }
  .card {
    top: 0;
    left: 0;
    width: 100%;
  }
  #middle-offset {
    position: relative;
    height: 100%;
    left: 0;
  }
}

@media screen and (min-width: 450px) {
  .card {
    top: -64px;
    left: 0;
    width: 100%;
  }
  #middle {
    background: #EBEBEB;
    top: 128px;
    left: 50%;
    bottom: 0px;
    width: 80%;
    margin: 0 auto;
  }
  #middle-offset {
    position: relative;
    height: 100%;
    left: -50%;
  }
}

@media screen and (min-width: 750px) {
  #left {  
    visibility: visible;
    display: block;
  }
  .card {
    z-index: 200;
    position: relative;
    left: 32%;
    top: -64px;
    width: 68%;
  }
}

@media screen and (min-width: 1130px) {
  #middle, .header-content {
    width: 900px;
    margin: 0 auto;
  }
}

              
            
!

JS

              
                 												$(document).on("click", "#shadow-sample2, #shadow-sample3", function() {
 													var tap = ($(this).data("tap") * 1) + 1;
 													if (tap === 6) {
 														tap = 0;
 													}
 													$(this).data("tap", tap);
 													var shadow = "shadow-z-" + tap;
 													$(this).attr("class", shadow);
 												});

 												! function(a) {
 													function b(a) {
 														return "undefined" == typeof a.which ? !0 : "number" == typeof a.which && a.which > 0 ? !a.ctrlKey && !a.metaKey && !a.altKey && 8 != a.which && 9 != a.which : !1
 													}
 													a.expr[":"].notmdproc = function(b) {
 														return a(b).data("mdproc") ? !1 : !0
 													}, a.material = {
 														options: {
 															input: !0,
 															ripples: !0,
 															checkbox: !0,
 															togglebutton: !0,
 															radio: !0,
 															arrive: !0,
 															autofill: !1,
 															withRipples: [".btn:not(.btn-link)", ".card-image", ".navbar a:not(.withoutripple)", ".dropdown-menu a", ".nav-tabs a:not(.withoutripple)", ".withripple"].join(","),
 															inputElements: "input.form-control, textarea.form-control, select.form-control",
 															checkboxElements: ".checkbox > label > input[type=checkbox]",
 															togglebuttonElements: ".togglebutton > label > input[type=checkbox]",
 															radioElements: ".radio > label > input[type=radio]"
 														},
 														checkbox: function(b) {
 															a(b ? b : this.options.checkboxElements).filter(":notmdproc").data("mdproc", !0).after("<span class=checkbox-material><span class=check></span></span>")
 														},
 														togglebutton: function(b) {
 															a(b ? b : this.options.togglebuttonElements).filter(":notmdproc").data("mdproc", !0).after("<span class=toggle></span>")
 														},
 														radio: function(b) {
 															a(b ? b : this.options.radioElements).filter(":notmdproc").data("mdproc", !0).after("<span class=circle></span><span class=check></span>")
 														},
 														input: function(c) {
 															a(c ? c : this.options.inputElements).filter(":notmdproc").data("mdproc", !0).each(function() {
 																var b = a(this);
 																if (a(this).attr("data-hint") || b.hasClass("floating-label")) {
 																	if (b.wrap("<div class=form-control-wrapper></div>"), b.after("<span class=material-input></span>"), b.hasClass("floating-label")) {
 																		var c = b.attr("placeholder");
 																		b.attr("placeholder", null).removeClass("floating-label"), b.after("<div class=floating-label>" + c + "</div>")
 																	}
 																	if (b.attr("data-hint") && b.after("<div class=hint>" + b.attr("data-hint") + "</div>"), (null === b.val() || "undefined" == b.val() || "" === b.val()) && b.addClass("empty"), b.parent().next().is("[type=file]")) {
 																		b.parent().addClass("fileinput");
 																		var d = b.parent().next().detach();
 																		b.after(d)
 																	}
 																}
 															}), a(document).on("change", ".checkbox input[type=checkbox]", function() {
 																a(this).blur()
 															}).on("keydown paste", ".form-control", function(c) {
 																b(c) && a(this).removeClass("empty")
 															}).on("keyup change", ".form-control", function() {
 																var b = a(this);
 																"" === b.val() && "undefined" != typeof b[0].checkValidity && b[0].checkValidity() ? b.addClass("empty") : b.removeClass("empty")
 															}).on("focus", ".form-control-wrapper.fileinput", function() {
 																a(this).find("input").addClass("focus")
 															}).on("blur", ".form-control-wrapper.fileinput", function() {
 																a(this).find("input").removeClass("focus")
 															}).on("change", ".form-control-wrapper.fileinput [type=file]", function() {
 																var b = "";
 																a.each(a(this)[0].files, function(a, c) {
 																	b += c.name + ", "
 																}), b = b.substring(0, b.length - 2), b ? a(this).prev().removeClass("empty") : a(this).prev().addClass("empty"), a(this).prev().val(b)
 															})
 														},
 														ripples: function(b) {
 															a(b ? b : this.options.withRipples).ripples()
 														},
 														autofill: function() {
 															var b = setInterval(function() {
 																a("input[type!=checkbox]").each(function() {
 																	a(this).val() && a(this).val() !== a(this).attr("value") && a(this).trigger("change")
 																})
 															}, 100);
 															setTimeout(function() {
 																clearInterval(b)
 															}, 1e4);
 															var c;
 															a(document).on("focus", "input", function() {
 																var b = a(this).parents("form").find("input").not("[type=file]");
 																c = setInterval(function() {
 																	b.each(function() {
 																		a(this).val() !== a(this).attr("value") && a(this).trigger("change")
 																	})
 																}, 100)
 															}).on("blur", "input", function() {
 																clearInterval(c)
 															})
 														},
 														init: function() {
 															a.fn.ripples && this.options.ripples && this.ripples(), this.options.input && this.input(), this.options.checkbox && this.checkbox(), this.options.togglebutton && this.togglebutton(), this.options.radio && this.radio(), this.options.autofill && this.autofill(), document.arrive && this.options.arrive && (a.fn.ripples && this.options.ripples && a(document).arrive(this.options.withRipples, function() {
 																a.material.ripples(a(this))
 															}), this.options.input && a(document).arrive(this.options.inputElements, function() {
 																a.material.input(a(this))
 															}), this.options.checkbox && a(document).arrive(this.options.checkboxElements, function() {
 																a.material.checkbox(a(this))
 															}), this.options.radio && a(document).arrive(this.options.radioElements, function() {
 																a.material.radio(a(this))
 															}), this.options.togglebutton && a(document).arrive(this.options.togglebuttonElements, function() {
 																a.material.togglebutton(a(this))
 															}))
 														}
 													}
 												}(jQuery);

 												! function(a, b, c, d) {
 													"use strict";

 													function e(b, c) {
 														g = this, this.element = a(b), this.options = a.extend({}, h, c), this._defaults = h, this._name = f, this.init()
 													}
 													var f = "ripples",
 														g = null,
 														h = {};
 													e.prototype.init = function() {
 														var c = this.element;
 														c.on("mousedown touchstart", function(d) {
 															if (!g.isTouch() || "mousedown" !== d.type) {
 																c.find(".ripple-wrapper").length || c.append('<div class="ripple-wrapper"></div>');
 																var e = c.children(".ripple-wrapper"),
 																	f = g.getRelY(e, d),
 																	h = g.getRelX(e, d);
 																if (f || h) {
 																	var i = g.getRipplesColor(c),
 																		j = a("<div></div>");
 																	j.addClass("ripple").css({
 																			left: h,
 																			top: f,
 																			"background-color": i
 																		}), e.append(j),
 																		function() {
 																			return b.getComputedStyle(j[0]).opacity
 																		}(), g.rippleOn(c, j), setTimeout(function() {
 																			g.rippleEnd(j)
 																		}, 500), c.on("mouseup mouseleave touchend", function() {
 																			j.data("mousedown", "off"), "off" === j.data("animating") && g.rippleOut(j)
 																		})
 																}
 															}
 														})
 													}, e.prototype.getNewSize = function(a, b) {
 														return Math.max(a.outerWidth(), a.outerHeight()) / b.outerWidth() * 2.5
 													}, e.prototype.getRelX = function(a, b) {
 														var c = a.offset();
 														return g.isTouch() ? (b = b.originalEvent, 1 !== b.touches.length ? b.touches[0].pageX - c.left : !1) : b.pageX - c.left
 													}, e.prototype.getRelY = function(a, b) {
 														var c = a.offset();
 														return g.isTouch() ? (b = b.originalEvent, 1 !== b.touches.length ? b.touches[0].pageY - c.top : !1) : b.pageY - c.top
 													}, e.prototype.getRipplesColor = function(a) {
 														var c = a.data("ripple-color") ? a.data("ripple-color") : b.getComputedStyle(a[0]).color;
 														return c
 													}, e.prototype.hasTransitionSupport = function() {
 														var a = c.body || c.documentElement,
 															b = a.style,
 															e = b.transition !== d || b.WebkitTransition !== d || b.MozTransition !== d || b.MsTransition !== d || b.OTransition !== d;
 														return e
 													}, e.prototype.isTouch = function() {
 														return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)
 													}, e.prototype.rippleEnd = function(a) {
 														a.data("animating", "off"), "off" === a.data("mousedown") && g.rippleOut(a)
 													}, e.prototype.rippleOut = function(a) {
 														a.off(), g.hasTransitionSupport() ? a.addClass("ripple-out") : a.animate({
 															opacity: 0
 														}, 100, function() {
 															a.trigger("transitionend")
 														}), a.on("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd", function() {
 															a.remove()
 														})
 													}, e.prototype.rippleOn = function(a, b) {
 														var c = g.getNewSize(a, b);
 														g.hasTransitionSupport() ? b.css({
 															"-ms-transform": "scale(" + c + ")",
 															"-moz-transform": "scale(" + c + ")",
 															"-webkit-transform": "scale(" + c + ")",
 															transform: "scale(" + c + ")"
 														}).addClass("ripple-on").data("animating", "on").data("mousedown", "on") : b.animate({
 															width: 2 * Math.max(a.outerWidth(), a.outerHeight()),
 															height: 2 * Math.max(a.outerWidth(), a.outerHeight()),
 															"margin-left": -1 * Math.max(a.outerWidth(), a.outerHeight()),
 															"margin-top": -1 * Math.max(a.outerWidth(), a.outerHeight()),
 															opacity: .2
 														}, 500, function() {
 															b.trigger("transitionend")
 														})
 													}, a.fn.ripples = function(b) {
 														return this.each(function() {
 															a.data(this, "plugin_" + f) || a.data(this, "plugin_" + f, new e(this, b))
 														})
 													}
 												}(jQuery, window, document);
 												//# sourceMappingURL=ripples.min.js.map

 												window.page = window.location.hash || "#about";

 												$(document).ready(function() {
 													if (window.page != "#about") {
 														$(".menu").find("li[data-target=" + window.page + "]").trigger("click");
 													}
 												});

 												$(window).on("resize", function() {
 													$("html, body").height($(window).height());
 													$(".main, .menu").height($(window).height() - $(".header-panel").outerHeight());
 													$(".pages").height($(window).height());
 												}).trigger("resize");

 												$(".menu li").click(function() {
 													// Menu
 													if (!$(this).data("target")) return;
 													if ($(this).is(".active")) return;
 													$(".menu li").not($(this)).removeClass("active");
 													$(".page").not(page).removeClass("active").hide();
 													window.page = $(this).data("target");
 													var page = $(window.page);
 													window.location.hash = window.page;
 													$(this).addClass("active");

 													page.show();

 													var totop = setInterval(function() {
 														$(".pages").animate({
 															scrollTop: 0
 														}, 0);
 													}, 1);

 													setTimeout(function() {
 														page.addClass("active");
 														setTimeout(function() {
 															clearInterval(totop);
 														}, 1000);
 													}, 100);
 												});

 												function cleanSource(html) {
 													var lines = html.split(/\n/);

 													lines.shift();
 													lines.splice(-1, 1);

 													var indentSize = lines[0].length - lines[0].trim().length,
 														re = new RegExp(" {" + indentSize + "}");

 													lines = lines.map(function(line) {
 														if (line.match(re)) {
 															line = line.substring(indentSize);
 														}

 														return line;
 													});

 													lines = lines.join("\n");

 													return lines;
 												}

 												$("#opensource").click(function() {
 													$.get(window.location.href, function(data) {
 														var html = $(data).find(window.page).html();
 														html = cleanSource(html);
 														$("#source-modal pre").text(html);
 														$("#source-modal").modal();
 													});
 												});

 												$(function() {
 													$.material.init();
 													$(".shor").noUiSlider({
 														start: 40,
 														connect: "lower",
 														range: {
 															min: 0,
 															max: 100
 														}
 													});

 													$(".svert").noUiSlider({
 														orientation: "vertical",
 														start: 40,
 														connect: "lower",
 														range: {
 															min: 0,
 															max: 100
 														}
 													});
 												});
              
            
!
999px

Console