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

              
                <body>
<div class="ACon">
<div class="Profile">
<div class="Img">
    <div class="overlay">
      <span><img /></span>
    </div>
</div>
<div class="PopUp">Open Profile</div>
<div class="clickPopUp">
<h4><a class="username" href="">Profile Name</a></h4>
<h5 class="buttons"><a class="username" href="">Profile</a></h5>
<h5 class="buttons"><a class="username" href="">Activity</a></h5>
<h5 class="buttons"><a class="username" href="">Portfolio</a></h5>
<h5 class="buttons b"><a class="username" href="">Favorites</a></h5>
<div class="Social">
<svg viewBox="0 0 512 512" id="logo" class="codepen"><path class="box" d="M427 201.9c-0.6-4.2-2.9-8-6.4-10.3L264.2 87.3c-4.9-3.3-11.4-3.3-16.3 0L91.4 191.6c-4 2.7-6.5 7.4-6.5 12.2v104.3c0 4.8 2.5 9.6 6.5 12.2l156.4 104.3c4.9 3.3 11.4 3.3 16.3 0L420.6 320.4c4-2.6 6.6-7.4 6.6-12.2V203.9C427.1 203.2 427.1 202.6 427 201.9 427 201.7 427.1 202.6 427 201.9zM270.7 127.1l115.2 76.8 -51.5 34.4 -63.8-42.7V127.1zM241.3 127.1v68.6l-63.8 42.7 -51.5-34.4L241.3 127.1zM114.3 231.4l36.8 24.6 -36.8 24.6V231.4zM241.3 384.9L126.1 308.1l51.5-34.4 63.8 42.6V384.9zM256 290.8l-52-34.8 52-34.8 52 34.8L256 290.8zM270.7 384.9V316.3l63.8-42.6 51.5 34.4L270.7 384.9zM397.7 280.6l-36.8-24.6 36.8-24.6V280.6z"/></svg>
<svg viewBox="0 0 512 512" id="logo"><path class="box" d="M211.9 197.4h-36.7v59.9h36.7V433.1h70.5V256.5h49.2l5.2-59.1h-54.4c0 0 0-22.1 0-33.7 0-13.9 2.8-19.5 16.3-19.5 10.9 0 38.2 0 38.2 0V82.9c0 0-40.2 0-48.8 0 -52.5 0-76.1 23.1-76.1 67.3C211.9 188.8 211.9 197.4 211.9 197.4z"/></svg>
<svg viewBox="0 0 512 512" id="logo"><path d="M422.6 193.6c-5.3-45.3-23.3-51.6-59-54 -50.8-3.5-164.3-3.5-215.1 0 -35.7 2.4-53.7 8.7-59 54 -4 33.6-4 91.1 0 124.8 5.3 45.3 23.3 51.6 59 54 50.9 3.5 164.3 3.5 215.1 0 35.7-2.4 53.7-8.7 59-54C426.6 284.8 426.6 227.3 422.6 193.6zM222.2 303.4v-94.6l90.7 47.3L222.2 303.4z"/></svg>
</div>
</div>
</div>
</div>
</body>
              
            
!

CSS

              
                body{
	margin: 0 0 0 0;
	background:url(https://i.imgur.com/hqEzvRn.jpg);
	background-size:cover;
	}
.click{
	  background: url('https://cdn2.digitalartsonline.co.uk/cmsdata/slideshow/3513552/polybreno_1500.jpg');
	  background-size:contain;
	  position: relative;
	    -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  border-radius: 50%;
	  	  					-webkit-transition:cubic-bezier(.34,.43,0,1.02) 0.5s;
		-moz-transition:cubic-bezier(.34,.43,0,1.02) 0.5s;
		transition:cubic-bezier(.34,.43,0,1.02) 0.5s;
			  box-shadow: 0px 0px 0px 2pt transparent;
	  border: 0px solid #FFF;
	  margin: auto;
  cursor: pointer;
	  	width:120px;
	height:120px;
	}
.Profile{
	margin-left:auto;
	  z-index: 9999;
	margin-right:auto;
	text-align:center;
		  	  					-webkit-transition:cubic-bezier(.34,.43,0,1.02) 0.5s;
		-moz-transition:cubic-bezier(.34,.43,0,1.02) 0.5s;
		transition:cubic-bezier(.34,.43,0,1.02) 0.5s;
	width:300px;
	height:200px;
		  border-radius:50%;
	margin-top:34vh;
	}
	.clickProfile{
	margin-left:auto;
		border-top-left-radius:20px;
	border-top-right-radius:20px;
	margin-right:auto;
	background:#191919;
	text-align:center;
	padding:20px 0px 20px 0px;
		  	  					-webkit-transition:cubic-bezier(.34,.43,0,1.02) 0.5s;
		-moz-transition:cubic-bezier(.34,.43,0,1.02) 0.5s;
		transition:cubic-bezier(.34,.43,0,1.02) 0.5s;
			width:300px;
	height:120px;
	margin-top:24vh;
	}
.Img{
	  background: url('https://cdn2.digitalartsonline.co.uk/cmsdata/slideshow/3513552/polybreno_1500.jpg');
	  background-size:contain;
	  	  z-index: 9999;
	  position: relative;
	    -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  border-radius: 50%;
	  	  					-webkit-transition:cubic-bezier(.34,.43,0,1.02) 0.2s;
		-moz-transition:cubic-bezier(.34,.43,0,1.02) 0.2s;
		transition:cubic-bezier(.34,.43,0,1.02) 0.2s;
			  box-shadow: 0px 0px 0px 2pt transparent;
	  border: 0px solid #FFF;
	  margin: auto;
  cursor: pointer;
	  	width:200px;
	height:200px;
	}
		.clickPopUp{
			position: relative;
	background: #e74c3c;
	display:none;
		opacity:1;
		width:300px;
					  	  					-webkit-transition:cubic-bezier(.34,.43,0,1.02) 0.4s;
		-moz-transition:cubic-bezier(.34,.43,0,1.02) 0.4s;
		transition:cubic-bezier(.34,.43,0,1.02) 0.4s;
	margin-top:20px;
	border-bottom-left-radius:20px;
	border-bottom-right-radius:20px;
	padding: 13px 0px 10px 0px;
	font-size:18px;
		}
.PopUp {
	position: relative;
	background: #e74c3c;
		width:300px;
		opacity:0;
				font-family: 'Helvetica Neue', Arial, Helvetica, 'Nimbus Sans L', sans-serif;
	font-weight: 700;
	text-decoration:none;
	text-transform:uppercase;
	color:#FFF;
			  	  					-webkit-transition:cubic-bezier(.34,.43,0,1.02) 0.4s;
		-moz-transition:cubic-bezier(.34,.43,0,1.02) 0.4s;
		transition:cubic-bezier(.34,.43,0,1.02) 0.4s;
	margin-top:20px;
	border-radius:20px;
	padding: 13px 0px 10px 0px;
	font-size:18px;
}
.PopUp:after, .clickPopUp:after {
	bottom: 100%;
	left: 50%;
	border: solid transparent;
	content: " ";
	height: 0;
	width: 0;
	position: absolute;
	pointer-events: none;
	border-color: rgba(231, 76, 60, 0);
	border-bottom-color: #e74c3c;
	border-width: 10px;
	margin-left: -10px;
	
}
.PopUp a, .clickPopUp a{
		font-family: 'Helvetica Neue', Arial, Helvetica, 'Nimbus Sans L', sans-serif;
	font-weight: 700;
	text-decoration:none;
	text-transform:uppercase;
	color:#FFF;
	}
.overlay{
  background: rgba(0,0,0,.5);
  position: absolute;
  margin: auto;
  width: 0px;
  height: 0px;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  border-radius: 50%;
  opacity: 0;
  -webkit-transition: .3s ease;
  transition: .3s ease;
}

.Img:hover .overlay, .click:hover .overlay{
  opacity: 1;
  width: 100%;
  height: 100%;
}

.overlay span{
  color: #fff;
  font-family: 'Open Sans', sans-serif;
  text-align: center;
  position: absolute;
  margin: auto;
  width: 160px;
  height: 30px;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  opacity: 0;
}

.Img:hover .overlay span{
  opacity: 1;
  -webkit-transition: 1.3s ease;
  transition: 1.3s ease;
}
.content{
	padding-left: 15px; padding-right: 15px;
	color:#FFF;
	font-family: 'Open Sans', sans-serif;
	}
#logo {
  width: 40px; /* required to center */
  height: 40px;
  	border-radius:50%;
	margin-top:15px;
		 margin-left:20px;
		 margin-right:20px;
  			  	  					-webkit-transition:cubic-bezier(.34,.43,0,1.02) 0.4s;
		-moz-transition:cubic-bezier(.34,.43,0,1.02) 0.4s;
		transition:cubic-bezier(.34,.43,0,1.02) 0.4s;
    fill: white;
}
#logo:hover{
	background:#191919;
	border-radius:50%;
	 fill: #e74c3c;;
	}
	.clickPopUp h4{
		margin-top:10px;
		}
		.buttons{
			background:transprent;
			padding:20px;
			margin:0;
			  			  	  					-webkit-transition:cubic-bezier(.34,.43,0,1.02) 0.4s;
		-moz-transition:cubic-bezier(.34,.43,0,1.02) 0.4s;
		transition:cubic-bezier(.34,.43,0,1.02) 0.4s;
		border-top: 1px solid #891d1d;
		border-left: 0px solid #891d1d;
				}
				.b{
					border-bottom: 1px solid #891d1d;
					}
			.buttons:hover{
				background:#FF7364;
				border-left: 3px solid #891d1d;
				box-shadow: inset 0px 0px 8px rgba(0,0,0,0.2);
				}
              
            
!

JS

              
                $(document).ready(function(){
	var $Menu = $('.Img');
	$('.Img').mouseenter(function() {
        $('.PopUp').css('opacity', '1');
		$('.PopUp').css('margin-top', '20px');
    });
		$('.Img').mouseleave(function() {
        $('.PopUp').css('opacity', '0');
		$('.PopUp').css('margin-top', '0px');
    });
	$('.Img').on('click', function() {
		if($Menu.hasClass('Img')){
				$('.Img').addClass('click');
		$('.Img').removeClass('Img');
				$('.Profile').addClass('clickProfile');
				$('.Profile').removeClass('Profile');
				$('.clickPopUp').css('display', 'block');
				$('.PopUp').css('display', 'none');
		}else{
		$('.click').addClass('Img');
		$('.click').removeClass('click');
				$('.clickProfile').addClass('Profile');
				$('.clickProfile').removeClass('clickProfile');
								$('.clickPopUp').css('display', 'none');
				$('.PopUp').css('display', 'block');
			}
		});
	});
              
            
!
999px

Console