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="section1">
<div class="woman">
	<h1 contenteditable data-heading="Create.">Create.</h1>
</div>

<div class="content">
	<h2>Suscipit velit commodi</h2>
	<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Impedit nemo id dolorem quaerat placeat delectus explicabo similique consectetur vero illum sequi enim, beatae? Quas excepturi dolor eum illo velit, deserunt!</p>
</div>
</div>




            
          
!
            
               html,
 body {
	 height: 100%;
	 background: #000;
 }
 
 .section1 {	 
	 background: #fff;
	 min-height: 100%;
	 
	 &:before,
	 &:after {
	   	content: "";
	   	width: 50%;
		top: 0;
	   	position: absolute;
  	}
	 
  	&:before {
   		background: grey;
		height: 60%;
		
		@media screen and (min-width: 600px ) {
			height: 70%;
		}
  	}
	 
	 &:after {
		width: 0;
		height: 0;
		border-style: solid;
		border-width: 250px 400px 0 0;
		border-color: #000 transparent transparent transparent; 
	 }
 }

 .woman {
 	position: relative;
 	margin: 0 auto;
 	background: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/209981/magazine.png) no-repeat center center;
 	height: 494px;
 	width: 218px;
	z-index: 2;
	 
	 @media screen and (min-width: 786px) {
		background-size: 300px 680px;
		height: 680px;
		width: 300px;	 
	 }
 }
 
 h1 {
 	display: flex;
 	align-items: center;
 	font-size: 7vw;
 	margin: 0;
 	height: 100%;
 	position: absolute;
 	color: black;
 	width: 100%;
 	text-align: center;
 	font-family: 'Satisfy', cursive;
	 
	 &:focus {
		 outline: none;
		 
	 }
	 
 	&:before {
  		content: attr(data-heading);
  		overflow: hidden;
  		position: absolute;
  		display: flex;
  		align-items: center;
  		left: 0;
  		top: 0;
  		width: 100%;
  		height: 100%;
  		color: #fff;
  		clip-path: polygon(72% 19%, 76% 23%, 79% 27%, 78% 29%, 78% 32%, 82% 36%, 86% 40%, 85% 46%, 86% 51%, 86% 56%, 83% 61%, 79% 63%, 49% 65%, 41% 62%, 36% 60%, 31% 57%, 24% 54%, 18% 49%, 12% 43%, 9% 36%, 8% 31%, 11% 27%, 16% 27%, 22% 27%, 24% 24%, 31% 23%, 35% 18%, 45% 18%, 56% 17%, 65% 15%);
	}
}
 
.content {
	max-width: 90%;
	position: relative;
	font-family: 'Playfair Display', serif;
	margin: 0 auto;
	padding-bottom: 20px;
	
	@media screen and (min-width: 600px) {
		left: 64%;	
		max-width: 300px;
		width: 30%;
		top: 50%;	
		position: absolute;
	}
	
	&:before {
		content: "";
		height: 10px;
		background: #000;
		width: 100%;
		position: absolute;
		top: -1.5rem;
	}
}

h2 {
	font-size: 1.3rem;
}

p {
	font-size: .8rem;
	line-height: 1.6;
	letter-spacing: 0.05rem;
}
            
          
!
            
              
// JS is to make the text editable fot demo purpose, not required for the effect. Thanks for the suggestion @chriscoyier! 
var h1 = document.querySelector("h1");

h1.addEventListener("input", function() {
    this.setAttribute("data-heading", this.innerText);
});
            
          
!
999px
Loading ..................

Console