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 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.

            
              <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
Loading ..................

Console