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="iphone">
		<div class="iphone-header">
			<div class="iphone-camera"></div>
			<div class="iphone-speaker"></div>
		</div>
		<div class="iphone-screen">
			<div class="insta-header">
				<div class="arrow"></div>
				<div class="sun">
					<div class="sun-ray"></div>
					<div class="sun-ray-two"></div>
					<div class="sun-ray-three"></div>
				</div>
				<div class="next">Next</div>
			</div>
			<div class="screen-photograph">
				<input type="radio" name="radio-photograph" id="nofilter">
				<input type="radio" name="radio-photograph" id="Clarendon">
				<input type="radio" name="radio-photograph" id="Gingham">
				<input type="radio" name="radio-photograph" id="Toaster">
				<input type="radio" name="radio-photograph" id="Moon">
				<input type="radio" name="radio-photograph" id="Lark">
				<input type="radio" name="radio-photograph" id="n1977">
				<input type="radio" name="radio-photograph" id="aden">
				<input type="radio" name="radio-photograph" id="Brannan">
				<input type="radio" name="radio-photograph" id="Brooklyn">
				<input type="radio" name="radio-photograph" id="Nashville">
				<input type="radio" name="radio-photograph" id="X-pro">
				<div class="filter-photograph"></div>
				<img src="https://pbs.twimg.com/media/CXPTmbJWsAEQAyM.jpg" alt="">
				<div class="url-image">
					<fieldset>
						<input type="text" id="url-image" placeholder="Digite a url da imagem">
						<input type="submit" value="Enviar" id="enviar">
					</fieldset>	
				</div>
			</div>
			<div class="filters">
				<ul>
					<li><label for="nofilter"><img src="https://pbs.twimg.com/media/CXPTmbJWsAEQAyM.jpg" alt=""></label></li>
					<li><label for="Clarendon"><img src="https://pbs.twimg.com/media/CXPTmbJWsAEQAyM.jpg" alt=""></label></li>
					<li><label for="Gingham"><img src="https://pbs.twimg.com/media/CXPTmbJWsAEQAyM.jpg" alt=""></label></li>
					<li><label for="Toaster"><img src="https://pbs.twimg.com/media/CXPTmbJWsAEQAyM.jpg" alt=""></label></li>
					<li><label for="Moon"><img src="https://pbs.twimg.com/media/CXPTmbJWsAEQAyM.jpg" alt=""></label></li>
					<li><label for="n1977"><img src="https://pbs.twimg.com/media/CXPTmbJWsAEQAyM.jpg" alt=""></label></li>
					<li><label for="Nashville"><img src="https://pbs.twimg.com/media/CXPTmbJWsAEQAyM.jpg" alt=""></label></li>
					<li><label for="aden"><img src="https://pbs.twimg.com/media/CXPTmbJWsAEQAyM.jpg" alt=""></label></li>
					<li><label for="Brannan"><img src="https://pbs.twimg.com/media/CXPTmbJWsAEQAyM.jpg" alt=""></label></li>
					<li><label for="Brooklyn"><img src="https://pbs.twimg.com/media/CXPTmbJWsAEQAyM.jpg" alt=""></label></li>
					<li><label for="X-pro"><img src="https://pbs.twimg.com/media/CXPTmbJWsAEQAyM.jpg" alt=""></label></li>
				</ul>
			</div>
			<div class="btns">
				<div class="btn">Filter</div>
				<div class="btn">Edit</div>
			</div>
		</div>
		<div class="iphone-footer">
		</div>
	</div>
              
            
!

CSS

              
                @import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600,700');
input[name="radio-photograph"]{
    display: none;
}
body{
	background-color: #FFF;
}
.iphone{
	width: 260px;
    height: 529px;
    position: absolute;
    top: calc(50% - 264px);
    left: calc(50% - 130px);
    box-sizing: border-box;
    border-radius: 35px;
    background-color: #FFF;
    border: 4px solid #d4d4d4;
}
.iphone-header{
	width: 100%;
	height: 55px;
	float: left;
	position: relative;
}
.iphone-camera{
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background-color: #90b1d5;
	border: 1px solid #000;
	position: absolute;
	left: 75px;
    top: 21px;
}
.iphone-speaker{
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background-color: #000;
	position: absolute;
	left: calc(50% - 4px);
	top: 11px;
}
.iphone-speaker:after{
	content: '';
    width: 40px;
    height: 3px;
    background-color: #000;
    position: absolute;
    left: -16px;
    top: 15px;
}
.iphone-screen{
	width: 230px;
    height: 409px;
    float: left;
    background-color: #FFF;
    margin-left: 11px;
    box-sizing: border-box;
    border: 1px solid #ccc;
}
.iphone-footer{
	width: 100%;
	height: 57px;
	float: left;
	position: relative;
}
.iphone-footer:before{
	content: "";
	width: 45px;
	height: 45px;
	position: absolute;
	top: calc(50% - 22px);
	left: calc(50% - 22px);
	transform: rotate(38deg);
	border-radius: 50%;
	background: -webkit-linear-gradient(top,  #818181 0%,#f1f1f1 43%,#f1f1f1 55%,#acacac 91%);
}
.iphone-footer:after{
	content: "";
	width: 40px;
	height: 40px;
	position: absolute;
	top: calc(50% - 20px);
	left: calc(50% - 20px);
	border-radius: 50%;
	background-color: #FFF;
}
.insta-header{
	width: 100%;
	height: 35px;
	float: left;
	background-color: #FFF;
	position: relative;
}
.arrow {
    width: 17px;
    height: 2px;
    position: absolute;
    background: #000;
    top: 47%;
    left: 14px;
}
.arrow:before {
	content: "";
    width: 10px;
    height: 2px;
    position: absolute;
    background: #000;
    top: -4px;
    transform: rotate(-45deg);
    left: 0px;
}
.arrow:after {
	content: "";
    width: 10px;
    height: 2px;
    position: absolute;
    background: #000;
    top: 4px;
    transform: rotate(45deg);
    left: 0px;
}
.sun {
    width: 10px;
    height: 10px;
    position: absolute;
    border: 2px solid #000;
    border-radius: 50%;
    left: calc(50% - 5px);
    top: 10px;
    transform: scale(.8);
}
.sun:after {
	content: "";
    width: 8px;
    height: 8px;
    position: absolute;
    border-radius: 50%;
    top: 1px;
    left: 2px;
    background: -webkit-linear-gradient(top, #000 0%,#000 50%,#FFF 50%,#FFF 100%);
    transform: rotate(-88deg);
}
.sun-ray {
    width: 5px;
    height: 2px;
    position: absolute;
    top: -7px;
    left: 2px;
    background-color: #000;
    transform: rotate(87deg);
}
.sun-ray:before {
	content: "";
    width: 5px;
    height: 2px;
    position: absolute;
    top: -9px;
    right: -3px;
    background-color: #000;
    transform: rotate(42deg);
}
.sun-ray:after {
	content: "";
    width: 5px;
    height: 2px;
    position: absolute;
    top: -12px;
    right: -11px;
    background-color: #000;
    transform: rotate(93deg);
}
.sun-ray-two {
    width: 5px;
    height: 2px;
    position: absolute;
    bottom: -7px;
    left: 2px;
    background-color: #000;
    transform: rotate(87deg);
}
.sun-ray-two:before {
	content: "";
    width: 5px;
    height: 2px;
    position: absolute;
    bottom: 9px;
    right: 3px;
    background-color: #000;
    transform: rotate(-42deg);
}
.sun-ray-two:after {
	content: "";
    width: 5px;
    height: 2px;
    position: absolute;
    bottom: -9px;
    left: -4px;
    background-color: #000;
    transform: rotate(42deg);
}
.sun-ray-three {
    width: 5px;
    height: 2px;
    position: absolute;
    bottom: 4px;
    left: -9px;
    background-color: #000;
    transform: rotate(-3deg);
}
.sun-ray-three:before {
	content: "";
    width: 5px;
    height: 2px;
    position: absolute;
    top: -7px;
    left: 3px;
    background-color: #000;
    transform: rotate(42deg);
}
.next{
	width: auto;
	height: 35px;
	position: absolute;
	top: 0;
	right: 11px;
	line-height: 35px;
	font-family: 'Open Sans', sans-serif;
	font-size: 1em;
	color: #348cda;
	font-weight: 700;
}
.screen-photograph {
    width: 100%;
    height: 245px;
    float: left;
    position: relative;
}
.filter-photograph{
    width: 100%;
    height: 245px;
    float: left;
    position: absolute;
    top: 0;
    left: 0;
}
#n1977:checked ~ .filter-photograph{
    background-color: rgba(161,44,199,.31);
    mix-blend-mode: lighten;
}
#Aden:checked ~ .filter-photograph{
    background: -webkit-linear-gradient(left,rgba(66,10,14,.2),transparent);
    background: linear-gradient(to right,rgba(66,10,14,.2),transparent);
    mix-blend-mode: darken;
}
#Brannan:checked ~ .filter-photograph{
    background-color: rgba(161,44,199,.31);
    mix-blend-mode: lighten;
}
#Brooklyn:checked ~ .filter-photograph{
    background: -webkit-radial-gradient(circle,rgba(168,223,193,.4) 70%,#c4b7c8);
    background: radial-gradient(circle,rgba(168,223,193,.4) 70%,#c4b7c8);
    mix-blend-mode: overlay;
}
#Clarendon:checked ~ .filter-photograph{
    background: rgba(127,187,227,.2);
    mix-blend-mode: overlay;
}
#Gingham:checked ~ .filter-photograph{
    background: #FFF;
    mix-blend-mode: soft-light;
}
#Moon:checked ~ .filter-photograph{
    background-color: #000;
    mix-blend-mode: hue;
}
#Moon:checked ~ .filter-photograph{
    background-color: #000;
    mix-blend-mode: hue;
}
#Lark:checked ~ .filter-photograph{
    background-color: #000;
    mix-blend-mode: hue;
}
#Nashville:checked ~ .filter-photograph{
    background: rgba(0,70,150,.4);
    mix-blend-mode: lighten;
}
#Toaster:checked ~ .filter-photograph{
    background: -webkit-radial-gradient(circle,#804e0f,#3b003b);
    background: radial-gradient(circle,#804e0f,#3b003b);
    mix-blend-mode: screen;
}
#X-pro:checked ~ .filter-photograph{
    background: -webkit-radial-gradient(circle,#e6e7e0 40%,rgba(43,42,161,.6) 110%);
    background: radial-gradient(circle,#e6e7e0 40%,rgba(43,42,161,.6) 110%);
    mix-blend-mode: color-burn;
}
.screen-photograph img {
    width: 100%;
    max-height: 245px;
    display: none;
}
.filters{
	width: 100%;
    height: auto;
    float: left;
    margin-top: 11px;
    overflow-x: scroll;
}
.filters::-webkit-scrollbar {
    width: 100%;
    background: #FFF;
    height: 6px;
    margin-left: 1%;
    border: 1px solid #ccc;
    border-radius: 5px;
}
.filters::-moz-scrollbar {
    width: 100%;
    background: #FFF;
    height: 6px;
    margin-left: 1%;
    border: 1px solid #ccc;
    border-radius: 5px;
}
.filters::-o-scrollbar {
    width: 100%;
    background: #FFF;
    height: 6px;
    margin-left: 1%;
    border: 1px solid #ccc;
    border-radius: 5px;
}
.filters::scrollbar {
    width: 100%;
    background: #FFF;
    height: 6px;
    margin-left: 1%;
    border: 1px solid #ccc;
    border-radius: 5px;
}
.filters::-webkit-scrollbar-thumb {
	background-color: #348cda;
    border-radius: 5px;
}
.filters::-moz-scrollbar-thumb {
	background-color: #348cda;
    border-radius: 5px;
}
.filters::-o-scrollbar-thumb {
	background-color: #348cda;
    border-radius: 5px;
}
.filters::-ms-scrollbar-thumb {
	background-color: #348cda;
    border-radius: 5px;
}
.filters::scrollbar-thumb {
	background-color: #348cda;
    border-radius: 5px;
}
.filters ul{
	width: 721px;
	height: auto;
	float: left;
	list-style: none;
	padding: 0 0 5px;
	margin: 0;
}
.filters li{
	margin-left: 5px;
}
.filters li,
.filters label{
	width: 60px;
    height: auto;
    float: left;
    cursor: pointer;
    position: relative;
}
.filters label:before{
    content: attr(for);
    width: 100%;
    height: auto;
    float: left;
    font-family: 'Open Sans', sans-serif;
    font-size: .7em;
    color: #000;
    font-weight: 600;
    text-align: center;
}
.filters label:after{
    content: "";
    width: 60px;
    height: 60px;
    position: absolute;
    top: 12px;
    left: 0;
}
.filters label[for="1977"]:after{
    background-color: rgba(161,44,199,.31);
    mix-blend-mode: lighten;
}
.filters label[for="Aden"]:after{
    background: -webkit-linear-gradient(left,rgba(66,10,14,.2),transparent);
    background: linear-gradient(to right,rgba(66,10,14,.2),transparent);
    mix-blend-mode: darken;
}
.filters label[for="Brannan"]:after{
    background-color: rgba(161,44,199,.31);
    mix-blend-mode: lighten;
}
.filters label[for="Brooklyn"]:after{
    background: -webkit-radial-gradient(circle,rgba(168,223,193,.4) 70%,#c4b7c8);
    background: radial-gradient(circle,rgba(168,223,193,.4) 70%,#c4b7c8);
    mix-blend-mode: overlay;
}
.filters label[for="Clarendon"]:after{
    background: rgba(127,187,227,.2);
    mix-blend-mode: overlay;
}
.filters label[for="Gingham"]:after{
    background: #FFF;
    mix-blend-mode: soft-light;
}
.filters label[for="Moon"]:after{
    background-color: #000;
    mix-blend-mode: hue;
}
.filters label[for="Moon"]:after{
    background-color: #000;
    mix-blend-mode: hue;
}
.filters label[for="Lark"]:after{
    background-color: #000;
    mix-blend-mode: hue;
}
.filters label[for="Nashville"]:after{
    background: rgba(0,70,150,.4);
    mix-blend-mode: lighten;
}
.filters label[for="Toaster"]:after{
    background: -webkit-radial-gradient(circle,#804e0f,#3b003b);
    background: radial-gradient(circle,#804e0f,#3b003b);
    mix-blend-mode: screen;
}
.filters label[for="X-pro"]:after{
    background: -webkit-radial-gradient(circle,#e6e7e0 40%,rgba(43,42,161,.6) 110%);
    background: radial-gradient(circle,#e6e7e0 40%,rgba(43,42,161,.6) 110%);
    mix-blend-mode: color-burn;
}
.filters li img{
	width: 60px;
    height: 60px;
    float: left;
}
.btns{
	width: 100%;
    height: auto;
    float: left;
    margin-top: 11px;
}
.btn{
	width: 50%;
	height: auto;
	float: left;
	font-family: 'Open Sans', sans-serif;
	font-size: .7em;
    color: #000;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
}
.url-image{
    width: 100%;
    height: auto;
    position: absolute;
    left: 0;
    top: calc(50% - 47px);
}
.url-image fieldset{
    width: 100%;
    height: auto;
    float: left;
    border: 0;
    padding: 0;
    margin: 0;
}
.url-image fieldset input{
    width: 100%;
    height: 40px;
    float: left;
    border: 0px;
    border-bottom: 2px solid #ccc;
    font-family: 'Open Sans', sans-serif;
    font-size: 1em;
    color: #348cda;
    font-weight: 700;
    text-align: center;
    outline: 1px solid transparent;
}
.url-image fieldset input[type="submit"]{
    width: 100%;
    height: 40px;
    float: left;
    margin-top: 10px;
    border: 0;
    background-color: #000;
    font-family: 'Open Sans', sans-serif;
    font-size: 1em;
    color: #FFF;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: background-color .25s ease-in-out;
}
.url-image fieldset input[type="submit"]:hover{
    background-color: #348cda;
}
              
            
!

JS

              
                var url;
$('#enviar').on('click', function(event) {
	event.preventDefault();
	url = $('#url-image').val();
	if(url != ''){
		$.each($('.iphone img'), function(index, val) {
			$(val).attr('src', url);
		});
		$('.url-image').fadeOut();
		$('.screen-photograph img').fadeIn();		
	}
});
              
            
!
999px

Console