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.

            
              <figure class="A"></figure>
<figure class="B"></figure>
<figure class="C"></figure>
<figure class="D"></figure>
<figure class="E"></figure>
<figure class="F"></figure>

<a target="_blank" href="https://bennettfeely.com/gradients">
  <header>
    <span>
      <h2>CSS</h2>
      <h1>Christmas</h1>
      <h2>Wrapping Paper</h2>
    </span>
  </header>
  
</a>
            
          
!
            
              @import url(https://fonts.googleapis.com/css?family=Playfair+Display+SC:400,400italic,700,900);

$transition: .2s;

* { margin: 0; padding: 0; border: 0; line-height: 1; }
body {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

a {
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  transition: $transition;
  text-decoration: none;
}

header {
  display: flex;
  font-size: 8vmin;
  text-align: center;
  color: snow;
  justify-content: center;
  transition: $transition*5;
  align-items: center;
  width: 75vmin;
  height: 75vmin;
  background: rgba(black, .9);
  clip-path: polygon(50% 0%, 83% 12%, 100% 43%, 94% 78%, 68% 100%, 32% 100%, 6% 78%, 0% 43%, 17% 12%);
  
  h1 {
    text-transform: uppercase;
    font-family: playfair display sc;
    font-size: 12vmin;
    font: bold 10vmin Playfair Display SC, georgia;
    color: wheat;
  }
 
  h2 {
    font: italic 5vmin Playfair Display SC;
  }  
}

figure {
  flex: 1 0 300px;
  height: 33.333vmin;
  background: rgba(black, 0.05);
}


.A {
  background-color: beige;
  background-image:
	repeating-linear-gradient(
		-45deg,
		transparent,
		transparent 20px,
		forestgreen 0,
		forestgreen 40px
	),
	repeating-linear-gradient(
		45deg,
		transparent,
		transparent 20px,
		crimson 0,
		crimson 40px
	);

  background-blend-mode: multiply;
}

.B {
  background-image:
	repeating-linear-gradient(
   45deg,
    black,
    black 5px,
    crimson 5px,
    crimson 25px,
    forestgreen 25px,
    forestgreen 30px
	),
  repeating-linear-gradient(
    -45deg,
    black,
    black 5px,
    black 5px,
    black 35px,
    forestgreen 35px,
    forestgreen 42px
  );
	background-blend-mode: screen;  
}

.C {
  background-image:
    repeating-linear-gradient(
      90deg,
      firebrick,
      firebrick 20px,
      beige 20px,
      beige 25px,
      forestgreen 25px,
      forestgreen 35px,
      gold 35px,
      gold 40px,
      crimson 40px,
      crimson 60px
    ),
    repeating-linear-gradient(
      firebrick,
      firebrick 20px,
      beige 20px,
      beige 25px,
      forestgreen 25px,
      forestgreen 35px,
      gold 35px,
      gold 40px,
      crimson 40px,
      crimson 60px
    );
  background-blend-mode: multiply;
}

.D {
  background:
    radial-gradient(
      transparent 0,
      transparent 20px,
      crimson 20px,
      crimson 25px,
      transparent 25px,
      transparent 100%
    ),
    radial-gradient(
      transparent 0,
      transparent 20px,
      crimson 20px,
      crimson 25px,
      transparent 25px,
      transparent 100%
    ),
    radial-gradient(
      transparent 0,
      transparent 20px,
      mediumseagreen 20px,
      mediumseagreen 25px,
      transparent 25px,
      transparent 100%
    ),
    radial-gradient(
      transparent 0,
      transparent 20px,
      mediumseagreen 20px,
      mediumseagreen 25px,
      transparent 25px,
      transparent 100%
    ), linen;

  background-blend-mode: multiply;
  background-size: 5em 5em;
  background-position:
    40px 40px,
    40px 0,
    0 0,
    0 40px;
  background-blend-mode: multiply;    
}

.E {
  background:
	repeating-linear-gradient(
		to top left,
		wheat 0,
		wheat 20px,
		transparent 20px,
		transparent 40px,
		forestgreen 40px,
		forestgreen 60px
	),
	repeating-linear-gradient(
		to left,
		crimson 0,
		crimson 20px,
		wheat 20px,
		wheat 40px,
		forestgreen 40px,
		forestgreen 60px
	), beige;
  
  background-blend-mode: multiply;
}

.F {
  background-image:
	repeating-linear-gradient(
		45deg,
		transparent,
		transparent 1em,
		darkseagreen 0,
		darkseagreen 2em,
		transparent 0,
		transparent 3em,
		beige 0,
		beige 4em,
		transparent 0,
		transparent 5em,
		lightcoral 0,
		lightcoral 6em,
		transparent 0,
		transparent 7em,
		beige 0,
		beige 8em
	),
	repeating-linear-gradient(
		-45deg,
		transparent,
		transparent 1em,
		snow 0,
		snow 2em,
		transparent 0,
		transparent 3em,
		wheat 0,
		wheat 4em,
		transparent 0,
		transparent 5em,
		wheat 0,
		wheat 6em
	);

background-blend-mode: multiply;
}
            
          
!
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