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 class="frame">
  <div class="panel">
    <div class="header">
			<div class="menu-icon">
				<div class="dash-top"></div>
				<div class="dash-bottom"></div>
				<div class="circle"></div>
			</div>
			<span class="title">Notifications</span>
			<input type="text" class="search-input" placeholder="Search ...">
			<div class="fa fa-search search-icon"></div>
		</div>
		
		<div class="notifications clearfix">
			<div class="line"></div>
			<div class="notification">
				<div class="circle"></div>
				<span class="time">9:24 AM</span>
				<p><b>John Walker</b> posted a photo on your wall.</p>
			</div>
			<div class="notification">
				<div class="circle"></div>
				<span class="time">8:19 AM</span>
				<p><b>Alice Parker</b> commented your last post.</p>
			</div>
			<div class="notification">
				<div class="circle"></div>
				<span class="time">Yesterday</span>
				<p><b>Luke Wayne</b> added you as friend.</p>
			</div>
		</div>
  </div>
	
	<div class="menu">
		<ul>
			<li><span class="fa fa-dashboard"></span>Dashboard</li>
			<li><span class="fa fa-user"></span>Profile</li>
			<li><span class="fa fa-bell"></span>Notifications</li>
			<li><span class="fa fa-comments"></span>Messages</li>
			<li><span class="fa fa-gear"></span>Settings</li>
		</ul>
	</div>
	
</div>
            
          
!
            
              @import url(https://fonts.googleapis.com/css?family=Open+Sans:600,400);

$blue: #5F98CD;
$blue-dark: #264057;
$blue-light: #B2DAFF;

.frame {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 400px;
  height: 400px;
  margin-top: -200px;
  margin-left: -200px;
  border-radius: 2px;
  box-shadow: 1px 2px 10px 0px rgba(0,0,0,0.3);
  background: $blue-dark;
  color: #666666;
	font-family: 'Open Sans', Helvetica, sans-serif;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow: hidden;
}

.panel {
  position: absolute;
	z-index: 2;
	height: 300px;
	width: 300px;
  top: 50px;
  left: 50px;
	background: #fff;
	border-radius: 3px;
	overflow: hidden;
	box-shadow: 10px 10px 15px 0 rgba(0,0,0,0.3);
	transition: all .5s ease-in-out;
	
	&.show-menu {
		transform: translate3d(150px,0,0);
	}
	
	.header {
		height: 60px;
		width: 100%;
		background: $blue;
		
		.menu-icon {
			position: absolute;
			width: 29px;
			height: 15px;
			top: 23px;
			left: 20px;
			cursor: pointer;
			
			&:hover {
				.dash-top, 
				.dash-bottom,
				.circle {
					background: #fff;
				}
			}
			
			.dash-top {
				position: absolute;
				width: 20px;
				height: 3px;
				top: 0;
				left: 0;
				background: $blue-light;
				border-radius: 3px;
				transition: all .2s ease-in-out;
			}
			
			.dash-bottom {
				@extend .dash-top;
				width: 29px;
				top: auto;
				bottom: 0;
			}
			
			.circle {
				position: absolute;
				height: 7px;
				width: 7px;
				border-radius: 4px;
				top: -2px;
				right: 0;
				background: $blue-light;
				transition: all .2s ease-in-out;
			}
			
		}
		
		.title {
			display: block;
			text-align: center;
			line-height: 60px;
			color: #fff;
			font-weight: 600;
			font-size: 15px;
		}
		
		.search-input {
			box-sizing: border-box;
			position: absolute;
			top: 13px;
			right: 55px;
			width: 230px;
			height: 34px;
			border-radius: 17px;
			border: none;
			background: #fff;
			padding: 0 17px;
			font-size: 13px;
			color: #666;
			transition: all .3s ease-in-out;
			transform: translateX(15px);
			opacity: 0;
			pointer-events: none;
			
			&:focus {
				outline:none;
			}
			
			&.active {
				transform: translateX(0);
				opacity: 1;
				pointer-events: all;
			}
			
		}
		
		.search-icon {
			position: absolute;
			z-index: 2;
			font-size: 21px;
			color: $blue-light;
			top: 18px;
			right: 20px;
			transition: all .3s ease;
			cursor: pointer;
			
			&:hover {
				color: #fff;
			}
			
		}
		
	}
	
	.notifications {
		position: relative;
		height: 100%;
		overflow: hidden;
		
		.line {
			position: absolute;
			top: 0;
			left: 27px;
			bottom: 0;
			width: 3px;
			background: #EBEBEB;
		}
		
		.notification {
			position: relative;
			z-index: 2;
			margin: 25px 20px 25px 43px;
			
			@for $i from 2 through 4 {
				&:nth-child(#{$i}) {
					animation: here-am-i .5s ease-out ($i/5 + s);
					animation-fill-mode: both;
				}
			}
			
			&:hover {
				color: $blue;
				cursor: pointer;
			}
			
			.circle {
				box-sizing: border-box;
				position: absolute;
				height: 11px;
				width: 11px;
				background: #fff;
				border: 2px solid $blue;
				box-shadow: 0 0 0 3px #fff;
				border-radius: 6px;
				top: 0;
				left: -20px;
			}
			
			.time {
				display: block;
				font-size: 11px;
				line-height: 11px;
				margin-bottom: 2px;
			}
			
			p {
				font-size: 15px;
				line-height: 20px;
				margin: 0;
				
				b {
					font-weight: 600;
				}
			}
			
		}
		
	}
	
}

.menu {
	position: absolute;
	width: 170px;
	height: 270px;
	top: 65px;
	left: 50px;
	background: #43627D;
	border-radius: 3px;
	transition: all .5s ease-in-out;
	transform: translate3d(20px,0,0);
	
	&.active {
		box-shadow: 5px 5px 8px 0 rgba(0,0,0,0.2);
		transform: translate3d(0,0,0);
	}
	
	ul {
		margin: 0;
		padding: 10px 0;
	}
	
	li {
		color: #93B2CD;
		margin: 0;
		padding: 18px 17px;
		list-style: none;
		font-size: 14px;
		line-height: 14px;
		cursor: pointer;
		transition: all .3s ease-in-out;
		
		&:hover {
			color: #fff;
			background: #385269;
		}
		
		span {
			display: block;
			float: left;
			margin-right: 8px;
			margin-top: -1px;
		}
		
		.fa-gear, .fa-user, .fa-bell {
			margin-top: 0;
		}
	}
}

@keyframes here-am-i {
	from {
		transform: translate3d(0,50px,0);
		opacity: 0;
	}
	to {
		transform: translate3d(0,0,0);
		opacity: 1;
	}
}


            
          
!
            
              $('.search-icon').bind('click', function() {
    $('.search-input').toggleClass('active');
});

$('.menu-icon').bind('click', function() {
    $('.panel').toggleClass('show-menu');
    $('.menu').toggleClass('active');
});
            
          
!
999px
Loading ..................

Console