Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ 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

Auto Save

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="mail-container">
    <div class="mail-wrapper">
        <div class="mail-content">
            <div class="profile-wrapper">
                <div class="profile-header profile-same">
                    <div class="profile-avatar">
                        <img src="https://assets.codepen.io/1088895/internal/avatars/users/default.png">
                    </div>
                    <h1>John Doe</h1>
                    <h2>Front-End Developer</h2>
                </div>
                <div class="profile-bio profile-same">
                    <p class="short-description">Hi! My name is Chun and I'm a Web Developer. I build and design fast...</p>
                    <div id="profile-bio-wrapper">
                        <div id="show-more-icon" class="no-select">
                            <i class="fa fa-chevron-circle-up" aria-hidden="true"></i>
                        </div>
                        <div class="social-list">
                            <ul>
                                <li class="bio-item paper-button"><a href="https://stackoverflow.com/" title="Stack Overflow PT" target="_blank"><i class="fa fa-fw fa-stack-overflow" aria-hidden="true"></i></a></li>
                                <li class="bio-item paper-button"><a href="https://codepen.io/csspens" title="CodePen" target="_blank"><i class="fa fa-fw fa-codepen" aria-hidden="true"></i></a></li>
                                <li class="bio-item paper-button"><a title="Twitter" target="_blank"><i class="fa fa-fw fa-twitter" aria-hidden="true"></i></a></li>
                                <li class="bio-item paper-button"><a href="mailto:test@email.com?Subject=Website%20development" target="_top"><i class="fa fa-fw fa-envelope" aria-hidden="true"></i></a></li>
                            </ul>
                        </div>
                        <div class="bio-extra">
                            <p>Hi, my name is Chun and I'm a Front-end Web Developer.</p>
                            <p>I mostly live on the <a title="User Interface Development" href="https://www.google.com/search?q=ui+development&amp;oq=ui+development" target="_blank">UI Development</a> 
                                making the Web faster, prettier and user friendly. Both for the eyes and for people to interact with.
                            </p>
                            
                            <p>I love code and tech in general. Even if I'm not working on my own projects I always 
                                <a href="https://stackoverflow.com/" target="_blank">find myself helping other people solve their code related problems.</a>
                            </p>
                            <p>If you want to get in touch, try <a target="_top">email</a> or 
                                <a target="_blank">Twitter</a>.
                            </p>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<div class="bottom-ball-fill"></div>
              
            
!

CSS

              
                
*{box-sizing:border-box;}
html {
	width: 100%;
	height: 100%;
}
body {
	margin: 0;
	padding: 0;
	font: 400 16px/24px Roboto,sans-serif;
	-moz-osx-font-smoothing: grayscale;
	-webkit-font-smoothing: antialiased;
	color: #212121;
	text-align: left;
}
a, a:active, a:link, a:visited {
	text-decoration: none;
	color: #039BE5;
	transition: color .25s linear;
}
h1, h2 {
	font-weight: 500;
	margin: 0;
}
h1 {font-size: 24px;}
h2 {font-size: 16px;}
p {margin: 0px;}
.hidden{
	opacity:0;
	visivility: hidden;
}
.no-select {
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}



.profile-wrapper {
	position: relative;
	overflow: hidden;
	border-radius: 10px;
}

.profile-header {
	background-color: #263238;
	padding: 10px;
	color: #fff;
	text-align:center;
}
.profile-bio {
	padding: 20px;
	overflow: hidden;
	background-color: #FAFAFA;
}
.profile-avatar {
	display: inline-block;
	text-align: center;
	position: relative;
	height: 160px;
	width: 160px;
	overflow: hidden;
	margin: 15px 30px 15px 30px;
	border-radius: 50%;
	border: 10px solid rgba(0, 0, 0, 0.2);
	transition: box-shadow 0.3s ease;
}
.profile-avatar:hover {
	box-shadow: 0px 0px 0px 12px rgba(0, 0, 0, 0.1);
}
.profile-avatar:after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
}
.profile-avatar img {
	width: 120%;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%,-50%);
	transition: width 0.3s ease;
}
.profile-avatar:hover img {
	width: 130%;
}

#profile-bio-wrapper {
	position: absolute;
	top: 88%;
	left: 0;
	right: 0;
	bottom: 0;
	height: 100%;
	width: 100%;
	background-color: #FFFFFF;
	box-shadow: 0px -2px 6px rgba(0, 0, 0, 0.1), 0px -1px 6px rgba(0, 0, 0, 0.12);
	transition: transform .4s cubic-bezier(0.4,0.0,0.2,1);
}
.show-more-info {
	transform: translateY(-80%);
}

p.short-description {
	margin-bottom: 57px;
}
#show-more-icon {
	display: inline-block;
	text-align: center;
	font-size: 50px;
	color: #263238;
	position: absolute;
	top: -25px;
	left: 50%;
	z-index: 3;
	transform: translateX(-50%);
	background-color: #fff;
	border-radius: 50%;
	cursor: pointer;
	box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.16), 0px 3px 6px rgba(0, 0, 0, 0.23);
	height: 48px;
	width: 49px;
}
.show-more-info #show-more-icon .fa {
	transform: rotate(180deg);
}

#show-more-icon .fa {
	line-height: 48px;
	transition: transform .4s ease-in-out;
}

.social-list {
	background-color: #eee;
	border-bottom: 2px solid #eee;
}

.social-list ul {
	padding: 0;
	margin: 0;
	list-style: none;
	display: table;
	width: 100%;
	text-align: center;
}
li.bio-item {
	display: table-cell;
}
li.bio-item:hover {
	background-color: #E0E0E0;
}
li.bio-item:nth-child(2) {
	padding-right: 0px;
	border-right: 10px solid transparent;
}
li.bio-item:nth-child(3) {
	border-left: 10px solid transparent;
}

.paper-button {
	cursor: pointer;
}

li.bio-item a {
	color: #616161;
	display: block;
	padding: 12px 0;
}

.bio-extra {
	padding: 20px;
	overflow: auto;
	height: 81%;
}
.bio-extra a {
	background-color: #ffff00;
	color: #000;
}

.bio-extra p {
	margin-bottom: 15px;
}


/* #####################################
ALL THE REST ############################
######################################## */

.mail-wrapper {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translateX(-50%) translateY(-50%);
	margin-top: 35px;
	height: 50px;
	width: 50px;
	overflow: hidden;
	border-radius: 50%;
	background-color: #607D8B;
	box-shadow: 0 -2px 25px 0 rgba(0, 0, 0, 0.15), 0 13px 25px 0 rgba(0, 0, 0, 0.3);
	opacity:0;
	z-index: -1;
	animation: init 0.5s cubic-bezier(0.55, 0.055, 0.675, 0.19) forwards, moveDown 1s cubic-bezier(0.6, -0.28, 0.735, 0.045) forwards, moveUp 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards, materia 0.4s ease-in-out forwards;
	animation-delay: 0s, 0.7s, 1.7s, 2.4s;
	will-change: auto;
}

.mail-content{
	opacity:0;
	box-sizing: border-box;
	color: #000;
	animation: moveInCenter 0.6s ease forwards;
	animation-delay: 2.7s;
}

.bottom-ball-fill{
	position: fixed;
	left: 50%;
	top: 100%;
	transform: translate(-50%,-50%);
	height:0px;
	width:0px;
	border-radius: 50%;
	background-color: #607D8B;
	z-index:0;
	animation: puff 0.5s cubic-bezier(0.55, 0.055, 0.675, 0.19) forwards, borderRadius 0.2s linear forwards;
	animation-delay: 1.8s, 2.3s;
}



/* Animations */
@keyframes init {
	0% {
		width: 0px;
		height: 0px;
		margin-top: 35px;
	}
	100% {
		width: 56px;
		height: 56px;
		opacity: 1;
		z-index:2;
	}
}
@keyframes moveDown {
	0% {
		top: 50%;
	}
	50% {
		top: 40%;
	}
	100% {
		top: 100%;
		margin-top: 0;
	}
}
@keyframes moveUp {
	0% {
		top: 100%;
		background: #607D8B;
	}
	50% {
		top: 40%;
	}
	100% {
		top: 50%;
		background: #fff;
	}
}
@keyframes materia {
	0% {
		background: #fff;
	}
	100% {
		width: 300px;
		height: 410px;
		background: #fff;
		border-radius: 10px;
	}
}

@keyframes puff {
	0% {
		top: 100%;
		height:50px;
		width:50px;
		transform:translate(-50%,-50%) scale(0);
	}
	100% {
		top: 50%;
		height:50px;
		width:50px;
		transform:translate(-50%,-50%) scale(50);
		z-index: 1;

	}
}
@keyframes borderRadius {
	0% {
		border-radius: 50%;
	}
	100% {
		border-radius: 0px;
	}
}


@keyframes moveInCenter {
	0% {
		opacity:0;
	}
	100% {
		opacity: 1;
	}
}
.bio-extra::-webkit-scrollbar-track {
	background-color: #F4F4F4;
}
.bio-extra::-webkit-scrollbar {
	width: 6px;
	background: #F4F4F4;
}
.bio-extra::-webkit-scrollbar-thumb {
	background: #dad7d7;
}

              
            
!

JS

              
                var bioShowMore = document.getElementById('show-more-icon');
var bioMoreWrap = document.getElementById('profile-bio-wrapper');

if (typeof(bioShowMore) != 'undefined' && bioShowMore != null){
	bioShowMore.addEventListener('click', function(){
		bioMoreWrap.classList.toggle('show-more-info');
	});
}
              
            
!
999px

Console