cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - Activehtmlicon-personicon-teamoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

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="circle"></div>
	<div class="line left"></div>
	<div class="line right"></div>
	<div class="bracket left"></div>
	<div class="bracket right"></div>
	<div class="small top">collect</div>
	<div class="big">moments</div>
	<div class="small bottom">not things</div>
	<div class="hide top"></div>
	<div class="hide bottom"></div>
</div>
            
          
!
            
              @import url(https://fonts.googleapis.com/css?family=Open+Sans:800,300);

.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);
	overflow: hidden;
  background: #E16D6C;
  color: #fff;
	font-family: 'Open Sans', Helvetica, sans-serif;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.circle {
	position: absolute;
	z-index: 10;
	height: 50px;
	width: 50px;
	top: 175px;
	left: 175px;
	background: #fff;
	border-radius: 50%;
	animation: circle 1s ease-in-out;
	animation-fill-mode: forwards;
}

.line {
	position: absolute;
	z-index: 10;
	width: 150px;
	height: 4px;
	top: 198px;
	background: #fff;
	transform: scaleX(0);
	
	&.left {
		left: 50px;
		transform-origin: 100% 50%;
		animation: lines 1s ease-in-out .8s, line-left 1s steps(1) .8s;
	}
	
	&.right {
		right: 50px;
		transform-origin: 0% 50%;
		animation: lines 1s ease-in-out .8s, line-right 1s steps(1) .8s;
	}
	
}

.bracket {
	position: absolute;
	z-index: 10;
	height: 70px;
	width: 4px;
	top: 165px;
	background: #fff;
	animation: bracket .4s ease-out 1.7s;
	animation-fill-mode: both;
	
	&:before, &:after {
		position: absolute;
		display: block;
		content: '';
		width: 25px;
		height: 4px;
		background: #fff;
	}
	
	&.left {
		left: 50px;
		
		&:before {
			top: 0;
			left: 0;
			transform-origin: 0% 50%;
			animation: bracket-line .2s ease-out 2.1s;
			animation-fill-mode: both;
		}
		
		&:after {
			bottom: 0;
			left: 0;
			transform-origin: 0% 50%;
			animation: bracket-line .2s ease-out 2.1s;
			animation-fill-mode: both;
		}
		
	}
	
	&.right {
		right: 50px;
		
		&:before {
			top: 0;
			right: 0;
			transform-origin: 100% 50%;
			animation: bracket-line .2s ease-out 2.1s;
			animation-fill-mode: both;
		}
		
		&:after {
			bottom: 0;
			right: 0;
			transform-origin: 100% 50%;
			animation: bracket-line .2s ease-out 2.1s;
			animation-fill-mode: both;
		}
		
	}
	
}

.big {
	position: absolute;
	z-index: 5;
	top: 173px;
	width: 400px;
	text-align: center;
	font-weight: 800;
	font-size: 50px;
	color: #FFFFFF;
	line-height: 50px;
	text-transform: uppercase;
}

.hide {
	position: absolute;
	z-index: 7;
	width: 400px;
	height: 50px;
	background: #E16D6C;
	left: 0;
	animation: reveal .4s ease-out 1.7s;
	animation-fill-mode: both;
	
	&.top {
		bottom: 49%;
		transform-origin: 50% 0%;
	}
	
	&.bottom {
		top: 49%;
		transform-origin: 50% 100%;
	}
	
}

.small {
	position: absolute;
	z-index: 10;
	width: 400px;
	text-align: center;
	left: 0;
	font-weight: 300;
	font-size: 30px;
	color: #FFFFFF;
	line-height: 30px;
	text-transform: uppercase;
	
	&.top {
		top: 140px;
		animation: small-top .5s ease-out 2.2s;
		animation-fill-mode: both;
	}
	
	&.bottom {
		bottom: 140px;
		animation: small-bottom .5s ease-out 2.2s;
		animation-fill-mode: both;
	}
	
}

@keyframes circle {
	0% {
		transform: scale(1);
	}
	50% {
		transform: scale(1.2);
	}
	90%, 100% {
		transform: scale(0);
	}
}

@keyframes lines {
	0% {
		transform: scaleX(0);
	}
	50% {
		transform: scaleX(1);
	}
	100% {
		transform: scaleX(0);
	}
}

@keyframes line-left {
	0% {
		transform-origin: 100% 50%;
	}
	50%, 100% {
		transform-origin: 0% 50%;
	}
}

@keyframes line-right {
	0% {
		transform-origin: 0% 50%;
	}
	50%, 100% {
		transform-origin: 100% 50%;
	}
}

@keyframes bracket {
	0% {
		transform: scaleY(0);
	}
	100% {
		transform: scaleY(1);
	}
}

@keyframes bracket-line {
	0% {
		transform: scaleX(0);
	}
	100% {
		transform: scaleX(1);
	}
}

@keyframes reveal {
	0% {
		transform: scaleY(1);
	}
	100% {
		transform: scaleY(0);
	}
}

@keyframes small-top {
	0% {
		transform: translateX(-20px);
		opacity: 0;
	}
	100% {
		transform: translateX(0);
		opacity: 1;
	}
}

@keyframes small-bottom {
	0% {
		transform: translateX(20px);
		opacity: 0;
	}
	100% {
		transform: translateX(0);
		opacity: 1;
	}
}
            
          
!
999px
Close

Asset uploading is a PRO feature.

As a PRO member, you can drag-and-drop upload files here to use as resources. Images, Libraries, JSON data... anything you want. You can even edit them anytime, like any other code on CodePen.

Go PRO

Loading ..................

Console