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.

+ add another resource

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

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.

            
              <head>
 <link href='https://fonts.googleapis.com/css?family=Amatic+SC' rel='stylesheet' type='text/css'> 
</head>
<body>
 
<div id="box">
<div class="bg-img">
  <ul class="text">Sunday Adventure</ul>
  <div id="overlay">
  <span id="plus">Polaroid</span>
  </div>
  </div>
</div>
  </body>
            
          
!
            
              /* Background behind polaroid, remove if desired ---------- */
body {
  background: -webkit-gradient(linear, left top, left bottom, color-stop(50%,rgba(82,255,255, .32)), color-stop(100%,rgba(189,162,103, .64))), url(http://source.unsplash.com/2000x1500/?map) no-repeat 0 0;
  background-repeat: no-repeat;
  background-position: center;
  background-position: fixed;
  background-size: 1570px 1100px; 
}
/* END Background behind polaroid, remove if desired ---------- */


#box{
  padding-top:50px; /* padding above polaroid */
}


/* Start Polaroid frame and frame texture ---------- */
.bg-img {
  border: 30px solid #eeeeee;
  border-bottom: 135px solid #eeeeee;
  border-width:100%;
  
  border-image: url("http://www.designbolts.com/wp-content/uploads/2013/02/Noise-Light-Grey-Tileable-Pattern-For-Website-Background.jpg") 30 30 95 30 repeat !important;
   z-index: 9.0;
  -webkit-box-shadow: 15px 15px 15px #777;
  -moz-box-shadow: 13px 13px 13px #777;
  box-shadow: 10px 8px 50px #000;
}

/* Start Polaroid body ---------- */
html, body {
  width: 400px;
  height: 400px;
	align-content: center;
	margin-top:10px;
	margin-bottom:300px; 
  margin:auto;
}

/* The image in your polaroid ---------- */
.bg-img {
  width: 400px;
  height: 400px;
  background: url("http://source.unsplash.com/1000x1000/?polaroid") center center no-repeat; 
  background-size: cover;
	margin:auto;
	align-content: center;

  &:before {
    content: "";
		position: absolute;
		top: 30px;
		right: -60px;
		bottom:0;
		left: 0;
		background-image: linear-gradient(to bottom right, teal, #f4f4f4);
    z-index:3;
		opacity: .4; 
	  width: 400px;
    height: 400px;
	  margin:auto;
	  align-content: center;
	  margin-top: 50px;
   -moz-box-shadow:    inset 0 0 10px #4C4C4C;
   -webkit-box-shadow: inset 0 0 10px #4C4C4C;
   box-shadow:         inset 0 0 10px #4C4C4C;	    
  }
}

/* Handwritten Text at the bottom of your polaroid ---------- */
.text{
  font-family: 'Amatic SC', cursive;
  font-size:65px;
  color:#000;
  margin-top:420px;
  padding:auto;
}


/* Start Polaroid Hover text and effect */
#overlay    {  
  background:rgba(189,162,103, .4);
  z-index: 900;
  text-align:center;
  padding:45px 0 66px 0;
  opacity:0;
  height:290px;
  width:400px;
  margin-top:-566px;
  -webkit-transition: opacity 2.25s ease;
  -moz-transition: opacity 10.25s ease;}

#box:hover #overlay {
  opacity:1;
  width:400px;
}
/* End Polaroid Hover Effect ---------- */


/* Start Polaroid Hover Effect Font settings ---------- */
#plus{  
  font-family:Helvetica;
  font-weight:900;
  color:rgba(255,255,255, 100%) !important;
  z-index:2000;
  font-size:96px;
  position: absolute center;
  display: inline-block;
  vertical-align: middle;
  text-align:center;
  padding-top: 23%;
  margin: 0;
  top: 50%;
  bottom: 50%;
  left: 28.5px;
  width: 100%;
  max-width:100%;
  min-width:400px;
  max-height:400px;
  min-height:21%;              
}





            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................

Console