cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - 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.

Quick-add: + add another resource

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.

Quick-add: + add another resource

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.

            
              <div id="portfolio">
<div class="content">

<div class="project" >

    
<img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/265602/04.jpg" alt="" />
<img class="hidden" src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/265602/20.jpg" alt="" />
    <img class="hidden" src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/265602/seconds.jpg" alt="" />
    <img class="hidden" src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/265602/18.jpg" alt="" />
    <img class="hidden" src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/265602/061.jpg" alt="" />
    <img class="hidden" src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/265602/16.jpg" alt="" />
    <img class="hidden" src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/265602/06.jpg" alt="" />
    <img class="hidden" src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/265602/05.St_.jpg" alt="" />
    <img class="hidden" src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/265602/09.jpg" alt="" />
</div>



</div>
</div>
            
          
!
            
              

/* –––––––––––––––––– GLOBAL –––––––––––––––––– */

h1 {
 font-family: monospace;   
}

 html, body {width:100%;}

a {
	cursor: pointer;
	outline: none;
	text-decoration: none;
	color: black;
	border-bottom: 2px solid #0ff;
}

.clearfix:after {
    content: ".";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
}
* + html .clearfix {
    display: inline-block;
}
* html .clearfix {
	height: 1%;
}

html.touch a:hover {
	color: inherit;
}

.hidden, .project img.hidden, .news img.hidden {
	display: none;
}




div.pane { 
	overflow: hidden;
	clear: left;
	position: relative;
}

div.elements {
	width: 10000px;
}

#profile, #portfolio, #project {
   margin-left: 17%;
  margin-right: auto;
	overflow: hidden;
}

img {
	color: white;
	max-width: 100%;
}



/* –––––––––––––––––– PORTFOLIO OVERVIEW // NEWS OVERVIEW –––––––––––––––––– */

.project.flr, .news.flr {
	float: right;
}

.project, .news {
	float: left;
	margin: 0 25px 80px;
	text-align: center;
	/*width: 300px;
	height: 300px;*/
}

.project a, .news a, .project a:hover, .news a:hover {
	border: none;
}

.news a.news {
	margin: 0;
}

.project img {
	margin: 0 0 10px 0;
}

.news img {
	display: block;
	margin: 0 0 10px 0;
	border: 2px solid #ff00fe;
}

.project a, .project span {
	font: normal normal bold 12px/18px Arial, Helvetica, sans-serif;
	letter-spacing: 1px;
	text-decoration: none;
	border: none;
	color: #918758;
	display: block;
	margin: 0 0 5px;
}

.project a:first-child {
	display: block;
	overflow: hidden;
}

.news h1, .news p a, .news p {
	color: #ff00fe;
	text-decoration: none;
}

.news h1 {
	font: normal normal bold 12px/18px Arial, Helvetica, sans-serif;
	letter-spacing: 1px;
}

.news p {
	font: normal normal normal 14px/22px 'Tinos', Times, serif;
	letter-spacing: 1.5px;
}





/*RESPONSIVE*/

@media screen and (min-width:596px) and (max-width:1210px) {
	#profile .content .container {
		max-width: none;
		min-width: 0;
	}
	.bigCol {
		width: 330px;
	}
	.smallCol {
		margin: 0 45px 0 0;
	}
	.smallCol.rightCol {
		float: left;
		margin-right: 45px;
	}
	.smallCol.nextRow {
		clear: none;
	}
	#project {
		width: 100%;
	}
	.imgBox img {
		max-width: 100%;
	}
}

@media screen and (max-width:595px) {
	.bigCol {
		width: auto;
	}
	.smallCol {
		width: auto;
		margin: 0 auto 22px;
		float: none;
	}
	.smallCol.rightCol {
		float: none;
		width: auto;
	}
	#profile .content .container {
		max-width: none;
		min-width: 0;
		background: white;
	}
	#profile .bigCol p {
		font: 14px/20px 'Tinos',Times,serif;
		letter-spacing: 0;
	}
	#project {
		width: 100%;
	}
	.imgBox img {
		max-width: 100%;
	}
	.headline .blueBox {
		padding: 4px 10px 5px;
	}
	.headline .blueBox h1 {
		font: 18px/22px "Tinos",Times,serif;
		letter-spacing: 2px;
	}
	#project .textBox {
		width: auto !important;
	}
	#loader, #infscr-loading {
		width: 100px;
		height: 100px;
		background-size: 100px;
	}
	.backbutton {
		width: 6px;
		padding: 6px;
		font: normal 8px/12px "Courier New";
	}
}

@media screen and (-webkit-min-device-pixel-ratio:0){
	.headline .blueBox {
		padding-top: 5px;
	}
}
            
          
!
            
              (function () {
	"use strict";

	var todl, dec, curl, nurl, $paneTarget, $paneOptions, prof, proj, news, clients, posSave_v, handler, dataTitle, className, pics, actual, amountX, imgH, i, textWidth, path;

	/*__ CLONING MENUE ITEMS __*/
	function cloneBack(path) {
		$("#project a.backbutton").each(function (i) {
			if (i !== 0) {
				$(this).remove();
			}
		});
		todl = $(".imgBox div").length;
		$(".imgBox div").each(function (i) {
			imgH = $(this).children("img").height();
			if (imgH <= 20) {
				setTimeout(function () {
					cloneBack(path);
				}, 100);
				return false;
			}
			if (todl === (i + 1)) {
				dec = Math.round($(document).height() / $(window).height());
				for (i = 1; i < dec; i++) {
					$(path).append($("a.backbutton:first").clone(true).css("top", i * $(window).height()));
				}
			}
		});
	}

	$(function () {

	

		

	/*__ CLICK & ROLLOVER SMALL PROJECT OR NEWS __*/

		$("#portfolio .content, #project .content").on("click", "div.project a, div.news a", function () {
			if (!$(this).parent().hasClass("inProject")) {
				posSave_o();
			}
			scrollToProject(1000);
			path = $(this).attr('href');
			loadProject(path);
		
			//alert(window.pageYOffset);
		}).on("mousemove", ".project, .news", function (e) {
			if (!$("html").hasClass("touch")) {
				pics = $("img", $(this));
				actual = $(this);
				amountX = Math.floor((e.pageX - actual.offset().left) / (actual.width() / pics.length));
				pics.addClass("hidden").eq(amountX).removeClass("hidden");
			}
		}).on("mouseleave", ".project, .news", function () {
			if (!$("html").hasClass("touch")) {
				$("img", $(this)).addClass("hidden").eq(0).removeClass("hidden");
			}
		});
		
		
		
		


		
	
	});

	$(window).load(function () {
		cloneBack("#profile .content");
	});

})();

            
          
!
999px
Loading ..................

Console