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 includes JSX processing.

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

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

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

              
                <svg version="1.1" xmlns="http://www.w3.org/2000/svg" style="display:none;" shape-rendering="crispEdges">
    <symbol id="iMac" viewBox="0 0 361 293">
        <path class="device__drop-shadow shadow" d="M179.293,287c49.707,0,90,1.343,90,3
	s-40.293,3-90,3c-49.706,0-90-1.343-90-3S129.588,287,179.293,287z"/>
        <polygon class="device__stand case" points="121,290.094 121,286.681 134.01,284.965
	144.672,248 179.973,248 181,248 216.301,248 226.963,284.965 239.973,286.681 239.973,290.094 "/>
        <path class="device__base base" d="M0,215V8c0-4.418,3.582-8,8-8h345
	c4.418,0,8,3.582,8,8v207H0z"/>
        <path class="device__case case" d="M353,248H8c-4.418,0-8-3.582-8-8v-25h361v25
	C361,244.418,357.418,248,353,248z"/>
        <polygon class="device__case-shadow shadow" points="142.364,256 144.672,248
	179.973,248 181,248 216.301,248 218.608,256 "/>
        <circle class="device__logo apple-logo" cx="180.5" cy="229.989" r="7.14"/>
        <rect class="device__screen screen" x="14" y="14" width="333" height="187"/>
        <circle class="device__cam cam" cx="181" cy="6.974" r="1.707"/>
    </symbol>
    <symbol id="MacPro" viewBox="0 0 324 172">
        <ellipse class="device__drop-shadow" cx="162" cy="168" rx="162" ry="4"/>  
        <path class="device__base" d="M162,155H45V8c0-4.418,3.582-8,8-8h109h109
	c4.418,0,8,3.582,8,8v147H162z"/>
        <path class="device__case" d="M294,169H162H30c-7.948,0-14.448-6.183-14.963-14
	H162h146.963C308.448,162.817,301.947,169,294,169z"/>
        <path class="device__drop-shadow" d="M182.993,155c-0.463,2.282-2.48,4-4.899,4h-16
	l0,0H162l0,0h-16c-2.419,0-4.436-1.718-4.899-4H162l0,0h0.094l0,0H182.993z"/>
        <polygon class="device__screen" points="162,147 53,147 53,145 53,10 53,8
	162,8 271,8 271,10 271,145 271,147 "/>
        <circle class="device__cam" cx="162" cy="3.974" r="1.707"/>
    </symbol>
    <symbol id="iPad" viewBox="0 0 142.199 180">
        <ellipse class="device__drop-shadow" cx="71.1" cy="176" rx="71.1" ry="4"/>
        <path class="device__base" d="M14.1,0h114c5.522,0,10,4.478,10,10v156
	c0,5.522-4.478,10-10,10h-114c-5.523,0-10-4.478-10-10V10C4.1,4.478,8.576,0,14.1,0z"/>
        <circle class="device__homebutton" cx="71.1" cy="166.975" r="4.145"/>
        <rect class="device__screen" x="17.1" y="18" width="108" height="140"/>
        <circle class="device__cam" cx="64.1" cy="10" r="1"/>
        <path class="device__speaker" d="M69.1,9h10c0.553,0,1,0.447,1,1s-0.447,1-1,1
	h-10c-0.553,0-1-0.447-1-1S68.547,9,69.1,9z"/>
    </symbol>
    <symbol id="iPadMini" viewBox="616 290 93 141.842">
        <ellipse class="device__drop-shadow" cx="662.5" cy="427.921" rx="46" ry="3.921"/>
        <path class="device__base" d="M626,290h73c5.521,0,10,4.478,10,10v118c0,5.521-4.479,10-10,10h-73
	c-5.521,0-10-4.479-10-10V300C616,294.478,620.479,290,626,290z"/>
        <polygon class="device__screen" points="704,414 621,414 620,414 620,303 621,303 704,303 705,303 705,414 "/>
        <circle class="device__homebutton" cx="662.5" cy="420.975" r="4.145"/>
        <circle class="device__cam" cx="652" cy="297" r="1"/>
        <path class="device__speaker" d="M657,296h10c0.553,0,1,0.447,1,1s-0.447,1-1,1h-10c-0.553,0-1-0.447-1-1
	S656.447,296,657,296z"/>
    </symbol>
    <symbol id="iPhone" viewBox="571.5 325 69 127">
        <ellipse class="device__drop-shadow" cx="606" cy="449" rx="34.5" ry="3"/>
        <path class="device__base" d="M587,325h38c5.521,0,10,4.479,10,10v104c0,5.521-4.479,10-10,10h-38
	c-5.523,0-10-4.479-10-10V335C577,329.479,581.477,325,587,325z"/>
        <rect class="device__screen" x="581" y="343" width="50" height="88"/>
        <circle class="device__homebutton" cx="606" cy="439.975" r="4.145"/>
        <circle class="device__cam" cx="598" cy="335" r="1"/>
        <path class="device__speaker" d="M603,334h10c0.553,0,1,0.447,1,1s-0.447,1-1,1h-10c-0.553,0-1-0.447-1-1
	S602.447,334,603,334z"/>
    </symbol>
</svg>

<div class="ui-wrapper" id="welcome">
	<div class="ui-block">
		<div class="ui-block__headline"><h1>Responsive Design Preview</h1></div>
		<form class="ui-block enter-url">
			<div class="ui-input ui-input--wrapsButton">
				<input class="ui-input__input" type="url" id="welcome-url" placeholder="Type URL and hit enter.">
				<button class="ui-input__button ui-input__button--sticksRight button button--hasIcon" type="submit">
					<i class="button__icon fa fa-arrow-right"></i>
				</button>
			</div>
		</form>
		</div>
</div> 

<div class="ui-wrapper" id="settings"> 
	<input class="ui-input__checkbox ui-input--isHidden" id="toggle-settings" type="checkbox">
	<label class="ui-input__label ui-label--isButton ui-label--hasSettingsBackground" for="toggle-settings">
		<span class="ui-label__button button button--hasIcon">
			<i class="button__icon fa fa-cogs"></i>
		</span>
		<span class="ui-label__text"><h2>Settings</h2></span>
	</label>
	<div class="ui-container">
		<form class="ui-block enter-url">
			<div class="ui-input ui-input--wrapsButton">
				<label class="ui-input__label" for="url"><h4 class="ui-block__heading">Website:</h4></label>
				<input class="ui-input__input" type="url" id="url" placeholder="http://some.url">
				<button class="ui-input__button ui-input__button--sticksRight button button--hasIcon" type="submit">
					<i class="button__icon fa fa-arrow-right"></i>
				</button>
			</div>
		</form>
		<div class="ui-block" id="choose-layout">
			<h4 class="ui-block__heading">Devices:</h4>
			<div class="ui-input">
				<input class="ui-input__radio ui-input--isHidden" id="devices-layout--all" type="radio" name="devices-layout" value="layout-1" checked>
				<label class="ui-input__label ui-label--isButton" for="devices-layout--all">
					<span class="ui-label__button button button--hasIcon">
						<i class="button__icon fa fa-asterisk"></i>
					</span>
					<span class="ui-label__text">Show<br>All</span>
				</label>
			</div>
			<div class="ui-input">
				<input class="ui-input__radio ui-input--isHidden" id="devices-layout--mobile" type="radio" name="devices-layout" value="layout-3">
				<label class="ui-input__label ui-label--isButton" for="devices-layout--mobile">
					<span class="ui-label__button button button--hasIcon">
						<i class="button__icon fa fa-tablet"></i>
					</span>
					<span class="ui-label__text">Only<br>Mobile</span>
				</label>
			</div>
			<div class="ui-input">
				<input class="ui-input__radio ui-input--isHidden" id="devices-layout--desktop" type="radio" name="devices-layout" value="layout-2">
				<label class="ui-input__label ui-label--isButton" for="devices-layout--desktop">
					<span class="ui-label__button button button--hasIcon">
						<i class="button__icon fa fa-desktop"></i>
					</span>
					<span class="ui-label__text">Only<br>Desktop</span>
				</label>
			</div>
		</div>
		<div class="ui-block" id="zoom">
			<div class="ui-input ui-input--wrapsButton ui-input--wrapsTwoButtons">
				<label class="ui-input__label" for="zoom-in-out"><h4 class="ui-block__heading">Zoom:</h4></label>
				<input class="ui-input__input" id="zoom-in-out" type="text" value="100%">
				<button class="ui-input__button ui-input__button--sticksLeft button button--hasIcon" id="zoom-out" type="submit">
					<i class="button__icon fa fa-minus"></i>
				</button>
				<button class="ui-input__button ui-input__button--sticksRight button button--hasIcon" id="zoom-in" type="submit">
					<i class="button__icon fa fa-plus"></i>
				</button>
			</div>
		</div>
		<div class="ui-block" id="other">
			<h4 class="ui-block__heading">Other:</h4>
			<div class="ui-input">
				<input class="ui-input__checkbox ui-input--isHidden" id="toggle-background" type="checkbox" checked>
				<label class="ui-input__label ui-label--isButton ui-label--isToggable" for="toggle-background">
					<span class="ui-label__button button button--hasIcon">
						<i class="button__icon fa fa-image"></i>
					</span>
					<span class="ui-label__text">Toggle<br>Background</span>
				</label>
			</div>
			<div class="ui-input">
				<input class="ui-input__checkbox ui-input--isHidden" id="toggle-scaling" type="checkbox">
				<label class="ui-input__label ui-label--isButton ui-label--isToggable" for="toggle-scaling">
					<span class="ui-label__button button button--hasIcon">
						<i class="button__icon fa fa-compress"></i>
					</span>
					<span class="ui-label__text">Simulate<br>Scaling</span>
				</label>
			</div>
		</div>
	</div>
</div>

<div class="devices-wrapper isBlurred--NOT"> 
	<div class="devices-background">		
	    <iframe class="bg-iframe" src="" frameborder="0"></iframe>
	</div>
	<div class="devices-container layout-1"> 
      <div class="device device-iMac device-desktop">
          <div class="device-content">
              <div class="device-img">
                  <svg width="361" height="293">
                      <use xlink:href="#iMac"></use>
                  </svg>
              </div>
              <iframe class="device-iframe" src="" width="1920" height="1080" frameborder="0"></iframe>
          </div>
      </div>
      <div class="device device-MacPro device-desktop">
          <div class="device-content">
              <div class="device-img">
                  <svg width="342" height="172">
                      <use xlink:href="#MacPro"></use>
                  </svg>
              </div>
              <iframe class="device-iframe" src="" width="1280" height="816" frameborder="0"></iframe>
          </div>
      </div>
      <div class="device device-iPad device-mobile">
          <div class="device-content">
              <div class="device-img">
                  <svg width="142" height="180">
                      <use xlink:href="#iPad"></use>
                  </svg>
              </div>
              <iframe class="device-iframe" src="" width="786" height="1019" frameborder="0"></iframe>
          </div>
      </div>
      <div class="device device-iPadMini device-mobile">
          <div class="device-content">
              <div class="device-img">
                  <svg width="94" height="142">
                      <use xlink:href="#iPadMini"></use>
                  </svg>
              </div>
              <iframe class="device-iframe" src="" width="786" height="1026" frameborder="0"></iframe>
          </div>
      </div>
      <div class="device device-iPhone device-mobile">
          <div class="device-content">
              <div class="device-img">
                  <svg width="69" height="127">
                      <use xlink:href="#iPhone"></use>
                  </svg>
              </div>
              <iframe class="device-iframe" src="" width="320" height="563" frameborder="0"></iframe>
          </div>
      </div>
  </div>
	</div>
</div>
              
            
!

CSS

              
                ///// Variables
/// Colors
$color-base: powderblue;
$color-base-lightest: adjust-color($color-base, $lightness: + 15%);
$color-base-lighter: adjust-color($color-base, $lightness: + 10%);
$color-base-light: adjust-color($color-base, $lightness: + 5%);
$color-base-dark: adjust-color($color-base, $lightness: - 5%);
$color-base-darker: adjust-color($color-base, $lightness: - 10%);
$color-base-darkest: adjust-color($color-base, $lightness: - 15%);
$color-complementary: complement($color-base);
/// Spacing
$padding-base: .625rem;
$margin-base: .625rem;
$gutter-base: 1.25rem;
/// Type
$font-size-base: 16px;

///// Mixins
/// Helper 
@mixin clearfix {
	&:after {
		content: '';
		display: table;
		clear: both;
	}
}

/// Typography
@mixin fontStyleHeading {
	font-size: 1em;
	font-weight: 400;
}

@mixin fontStyleSmall {
	font-size: .675em;
	text-transform: uppercase;
}

///// Base Styling
*, *:before, *:after { box-sizing: border-box; }
html {
	overflow-x: hidden;
	font-size: $font-size-base; 
}
body { font-family: 'Cabin', sans-serif;line-height: 1.333; }

///// UI-Components
/// Mixins
@mixin customFocus {	
	
	&:focus {
		outline: 0;
		box-shadow: 0 0 10px $color-complementary;
	}
}

/// Styling
.ui-wrapper {
	width: 240px;
	margin: $margin-base*2;
	@include clearfix;
	overflow: hidden;
	position: absolute;
	top: 0;
	z-index: 1000;
}

.ui-container {
	@include clearfix;
	opacity: 0;
	transform: translateY(-1000px);
	transition: opacity 150ms ease-in, 
					transform 10ms linear 150ms;
	
	:checked ~ & {
		opacity: 1;
		transform: translateY(0);
		transition: opacity 150ms ease-in;
	}
}

/// UI-Block
.ui-block {
	width: 100%;
	padding: 0 $padding-base;
	border-top: 1px solid $color-base-lighter;
	margin-bottom: $margin-base*2;
	float: left;
	
	&__heading {
		margin: $margin-base 0;
		@include fontStyleHeading;
		text-align: center;
	}
}

.ui-input {
	width: 100%;
	float:left;
	
	&__label {
		width: 100%;
		display: inline-block;
	}
	
	&--isHidden {
		position: absolute;
		top: -2000px;
	}
	
	&--wrapsButton {
		position: relative;
		
		.ui-input__input {
			padding-right: 2.5em;
		}
		
		.ui-input__button {
			position: absolute;
			bottom: .188rem;
			
			&--sticksLeft {
				left: .188rem;
			}
			
			&--sticksRight {
				right: .188rem;
			}
		}
	}
	
	&--wrapsTwoButtons {		
		
		.ui-input__input {
			padding-left: 2.5em;
			text-align: center;
		}
	}
	
	#choose-layout & {
		width: 33.3%;
	}
	
	#other & {
		width: 50%;
	}
}

/// UI-Label looks like Button and has Text 
.ui-label {
	
	&--isButton {
		text-align: center;
		cursor: pointer;
	}
	
	&__button {
		margin-bottom: $margin-base/2;
		display: inline-block;
	}
	
	&__text {
		width: 100%;
		display: inline-block;
		@include fontStyleSmall;
	}
	
	&--isToggable {
		
		.ui-label__button {
			position: relative;
			margin-left: -12.5%;
			
			&:after {
				content: '';
				@extend %text-input-base;
				width: 150% !important;
				padding: 0;
				display: block;
				position: absolute;
				z-index: -1;
				top: - .188rem;
				left: - .188rem;
			}			
		}
		
		:checked + & {
			
			.ui-label__button {
				margin-left: 6.25%;
			
				&:after {
					left: auto;
					right: - .188rem;
				}
			}
		}
	}
	
	&--hasSettingsBackground {
		margin-left: $margin-base;
		text-align: left;
			
		.ui-label__button {
			position: relative;
			text-align: center;
			
			&:after {
				content: '';
				width: 100%;
				height: 100%;
				border-radius: 100%;
				display: block;
				background: $color-base-lightest;
				position: absolute;
				z-index: -2;
				top: 0; left: 0;
				transition: transform 150ms ease-in-out;
			}
		}
		
		.ui-label__text {
			width: auto;
		}
		
		:checked + & {
			
			.ui-label__button {
				
				&:after {
					transform: scale(50);
				}
			}
		}
	}
}

///// Buttons
/// Base
%button-base {
	width: 2rem;
	height: 2rem;
	padding: 0;
	border: 0px solid $color-base-dark;
	border-radius: 2rem;
	background: $color-base;
	color: $color-base-lightest;
	line-height: 2rem;
	text-shadow: 0 1px 1px $color-base-darkest;
	
	@include customFocus;
	
	&:hover, &:focus, :checked ~ label & {
		color: white;
		background: $color-base-darker;
	}
}

.button {
	@extend %button-base;
}

///// Inputs
/// Base
%text-input-base {
	width: 100%;
	height: 2.375rem;
	padding: $padding-base/4 $padding-base;
	border: 1px solid $color-base-lighter;
	border-radius: 2rem;
	background: white;
	
	@include customFocus;
}

input {
	
	&[type=text],
	&[type=url] {
		@extend %text-input-base;
	}
}

///// Icons
.fa-arrow-right {
	transform: translateX(.063em);
}

///// Devices
/// Layout

.device-img {
	@include clearfix;
}

.device-iframe {	
	left: 50%;
}

.devices-container {  
	//max-width: 960px;
	width: 100vw;
	height: 100vh;
	padding-top: $padding-base*2;
	margin: 0 auto; 
	margin-top: $margin-base*10;
	position: relative;
	transform-origin: center 0;
	//transform: scale(1.75);
}

.device {
	@include clearfix;
    position: absolute;
	top: 0;
	left: 50%;
	transform: translate(-50%,0);
    
    &.device-iPhone {
      
      .layout-1 &, .layout--allDevices & {
        transform: translate(264px,236px);
      }
      
      .layout-2 &, .layout--onlyDesktop & {
        display:none;
      }
      
      .layout-3 &, .layout--onlyMobile & {
        transform: translate(-151px,172px);
      }
      
    }
    
    &.device-iPadMini  {
      
      .layout-1 & {
        transform: translate(316px,211px);
      }
      
      .layout-2 & {
        display:none;
      }
      
      .layout-3 & {
        transform: translate(82px,158px);
      }
      
    }
    
    &.device-iPad {
      
      .layout-1 & {
        transform: translate(153px,173px);
      }
      
      .layout-2 & {
        display:none;
      }
      
      .layout-3 & {
        display: inline-block;
        position: relative;
        transform: translate(-50%,100px);
      }
      
    } 
    
    &.device-MacPro {
      
      .layout-1 & {
        transform: translate(-440px,180px);
      }
      
      .layout-2 & {
        display: inline-block; 
		position:relative;
        transform: translate(-100%,0);
      }
      
      .layout-3 & {
        display:none; 
      }
    }
    
    &.device-iMac {
      
      .layout-1 & {
        position: relative;
        display: inline-block;
      }
      
      .layout-2 & {
		  position:relative;
		  display: inline-block;
		  transform: translateX(-100%);	  
      }
      
      .layout-3 & {
        display:none; 
      }
      
    }
}

.device-iframe {
    position:absolute;
    transform-origin:0 0;
      
      .device-iPhone & {
        top:18px;
  
        .layout-1 &,
        .layout-2 &,
        .layout-3 & {
            display:inline-block;
            transform:scale(0.15625) translateX(-50%);
        }
        
        &.isScaledTo960 {
            width:960px; height:1689px;
            transform:scale(0.052083) translateX(-50%);
        }
        
      }
      
      .device-iPadMini & {
        top:13px;
        
        .layout-1 &,
        .layout-2 &,
        .layout-3 &  {
            display:inline-block;
            transform:scale(0.10814318) translateX(-50%);
            }
        
          &.isScaledTo960 {
              width:960px; height:1253px;
              transform:scale(0.0885416667) translateX(-50%);
          }
        
        }
      
      .device-iPad & {
        top:18px;
        
        .layout-1 &,
        .layout-2 &,
        .layout-3 &  {
            display:inline-block;
            transform:scale(0.13741927) translateX(-50%);
            }
        
        &.isScaledTo960 {
            width:960px; height:1244px;
            transform:scale(0.1125) translateX(-50%);
        }
        
        }
      
      .device-MacPro & {
        top:8px;
        
        .layout-1 &,
        .layout-2 &,
        .layout-3 &  { 
            display:inline-block;
            transform:scale(0.17) translateX(-50%);
            }
        }
      
      .device-iMac & {
        top:14px; left:14px;   
        transform:scale(0.17343045);
        }
}

/// Devices Default Theme
// config
$device-base-color: #474e5d;
$device-case-color: #e6ebf0;
$device-button-color: white;
$device-gadget-color: #a5adbd;
$device-shadow-color: transparentize(black, .9);

.device {
	
	&__base {
    	fill: $device-base-color;
	}
	
	&__screen {
    	fill: $device-base-color;
	}
	
	&__case,
	&__stand {
    	fill: $device-case-color;
	}
	
	&__drop-shadow,
	&__case-shadow {
    	fill: $device-shadow-color;
	}
	
	&__cam,
	&__speaker {
    	fill: $device-gadget-color;
	}
	
	&__homebutton,
	&__logo {
    	fill: $device-button-color;
	}
}

///// Background
.bg-iframe {
	width: 100%; 
	height: 100%;
	position: absolute; 
	top:0; 	
	right:0; 
	z-index:-1;
	opacity:.5;
	filter: blur(25px);
	transition: opacity .2s ease;
	pointer-events: none;
}

.invisible {
	opacity: 0;
}

/// Welcome Message
#welcome {
	width: 600px;
	height: 150px;
	margin: auto;
	top: 0;
	bottom: -250px;
	left: 0;
	right: 0;
	opacity: 1;
	transform: translate(0,0);
	transition: 
		transform 450ms cubic-bezier(0.68,-.55,.265,1.55),
		opacity 450ms cubic-bezier(0.68,-.55,.265,1.55);
	
	&.popOut {
		opacity: 0;
		transform: translate(0,-25px);		
	}
	
	.ui-block {
		border: 0;
	}
	
	.ui-block__headline {
		text-align: center;
	}
	
	.ui-input__input {
		text-align: center;
	}
	
	.ui-input__button {
		//display: none;
	}
	
	.enter-url {
		font-size: 20px;
		
	}
	
	~ .devices-wrapper {
	}
}

.isBlurred {
	filter: blur(15px);
	transition: filter 600ms ease;
}

#settings {
	opacity: 0;
	transform: translateY(-200px);
	transition: 
		transform 300ms cubic-bezier(0.68,-.55,.265,1.55),
		opacity 300ms cubic-bezier(0.68,-.55,.265,1.55);
	
	&.popIn {		
		opacity: 1;
		transform: translateY(0);
	}
}










              
            
!

JS

              
                // Url to iframes
$('.enter-url').submit(function(e) {
    e.preventDefault();
    var url = $(this).find('input').val();
	var iframes = $('iframe');
	$('.device-iframe').css('background', 'white');
	$(iframes).attr('src', url);
	$(iframes[0]).on('load', function() {
		for (i = 0; i < iframes.length; i++) {
			$(iframes[i]).ready(function() {
				console.log('iframe-' + [i] + ' is ready');
			});			
		}
		console.log('all ready');
		$('#welcome').addClass('popOut');
		$('#settings').delay(600).addClass('popIn');
		$('.devices-wrapper').delay(600).removeClass('isBlurred');
	});
});

// Change Layout
$('[name=devices-layout]').change(function() {
  var layout = $(this).val();
  $('.devices-container').removeClass('layout-1 layout-2 layout-3').addClass(layout);
});

// Zoom
var zoomInput = $('#zoom-in-out');

function getZoomValue() {
	var zoomValue = parseInt($(zoomInput).val());
	return zoomValue;
}

function zoomInOut(zoomFactor) {
  var zoomValue = zoomFactor / 100;	
  $('.devices-container').css('transform', 'scale(' + zoomValue + ')');
	$('symbol *').css('transform', 'scale(1)');
}

$('#zoom-out').click(function() {
	var zoomValue = getZoomValue() - 10;
	parseInt($(zoomInput).val(zoomValue + '%'));
	zoomInOut(zoomValue);
});

$('#zoom-in').click(function() {
	var zoomValue = getZoomValue() + 10;
	parseInt($(zoomInput).val(zoomValue + '%'));
	zoomInOut(zoomValue);
});

$('#zoom-in-out').change(function() {
	var zoomValue = getZoomValue();
	zoomInOut(zoomValue);
});

// Scaling
$('#toggle-scaling').change(function() {
  $('.device-iPhone iframe' ).toggleClass('isScaledTo960');
  $('.device-iPadMini iframe' ).toggleClass('isScaledTo960');
  $('.device-iPad iframe' ).toggleClass('isScaledTo960');
});

// Toggle Background 
$('#toggle-background').change(function() {
  $('.bg-iframe').toggleClass('invisible');
});
              
            
!
999px

Console