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.

            
              <div class="wrapper">
	    		
	    	<section class="beer">
	    		<h1>On Hops.</h1>
					<p>Many professed brewers are particularly attached to the colour of the hops, that is, they are partial to those of a fine green colour; these are certainly to be prefered, if they were ripe when gathered:—to prove their goodness, rub them between your fingers, if they are in full condition they will stick to your fingers, will have a good strong scent, and the seeds will appear full and yellow.</p>
					<p>Brown spots are frequently to be seen on hops; these are, in general, hops that came to a full ripeness before they were gathered. High winds and rain frequently happen about the middle or latter end of the hop season, which will disfigure them in their colour in a few hours, so that the colour is not at all times to direct you as to their goodness.</p>
					<p>In the hop countries most hop-planters keep those hops which are most disfigured in their quality, separate and apart, when picking, from those of a brighter colour; those which are of an inferior colour are kept for their own use, and disposed of to their neighbours, it being their opinion that they answer the purpose in brewing nearly as well as those of a brighter colour, provided they are in full condition, that is, if they are full of seeds; for in the seeds is the virtue and strength of the hop.</p>
					<p>The quantity of hops used in brewing is generally half a pound to a bushel of malt, and so in proportion to a greater quantity; if mild ale, for present drinking, a lesser quantity will do; but this must be left to the discretion of the brewer, or master of a family, as some are more partial to the taste of the hop than others.</p>
					<p>Hops are found to be of such excellent utility in the bittering of beer, that common brewers and innkeepers are forbidden by law to use any other bitter ingredient whatever in brewing of beer and ale. I have taken the liberty to insert this as a caution to the unwary.</p>
					<p>As to the quantity of beer each bushel of malt should produce, it must rest on the option or circumstances of the brewer, or the head of a family. A bushel of malt will produce ten gallons of good ale; but the greater the quantity of malt, brewed at one time, the better will be your beer.</p>
	    	</section>
  <svg class="corona" version="1.1" preserveAspectRatio="none" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
		<style type="text/css">
			<![CDATA[
				#corona{
					mask :url(#mask_corona);			
				}
			]]>
		</style>
		
		<symbol  id="img_corona">
			<image width="840" height="400" xlink:href="https://s3-us-west-2.amazonaws.com/s.cdpn.io/100347/corona.jpg" />
		</symbol>

		<mask id="mask_corona">
			<use xlink:href="#img_corona" width="840" height="400" x="-420" y="0" style="overflow:hidden;"/>
		</mask>
		
		<use id="corona"  width="420" height="400" xlink:href="#img_corona" style="overflow:hidden;"/> 
</svg>
	    </div>
            
          
!
            
              @import "compass/css3";

*{
  margin: 0;
  padding: 0;
}

.wrapper{
  position: absolute;
  width: 100%;
  height: 100%;
  min-width: 500px;
  overflow: hidden;
  padding: 2em;
  box-sizing: border-box;
  perspective: 700px;
  transform: translateZ(0);
}

.corona{
  width: 420px;
  height: 400px;
  position: absolute;
  left: 20%;
  top: 10%;
  z-index: 100;
  -webkit-transform: translateZ(0);
  -moz-transform: translateZ(0);
}

.beer{
  position: absolute;
  top: 0;
  z-index: 0;
  color: #69542C;
  font: 1.3em/1.3 Georgia, "Times New Roman", Times, serif;
  transform: rotateX(35deg) translateZ(200px);
}

h1{
  font-size: 2em;
  text-align: center;
}

p{
  margin-bottom: 0.4em;
}
            
          
!
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