Pen Settings

HTML

CSS

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

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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

Behavior

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.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

HTML

            
              .tarot-card.front
  .three-of-swords
    .roman-numerals III
    .clouds
      span
      span
      span
      span
    .rain
    .stabbed-heart
      .heart
        span
        span
      .bottom-of-my-heart
      .swords
        .one
          .hilt
            .guard
          .blade
            span
        .two
          .hilt
            .guard
          .blade
            span
        .three
          .hilt
            .guard
          .blade
            span
      .blood
.tarot-card.back
  .insignia
    .wands
    .cups
    .swords
    .pentacles

            
          
!

CSS

            
              // PERFECT PURPLE
$light-purple: #e2a9e5;
$medium-purple: #632c65;
$dark-purple: #4b384c;

// VARIABLES
$white: #fff;
$black: #000;
$clear: transparent;

$heart: #ff5495; // Pink
$blood: darken($heart, 10%);
$steel: #e8ecf2; // Blue grey
$gold: #ffd85b; // Yellow
$paper: $medium-purple;
$clouds: lighten($paper, 10%);

// BASE STYLES
body {
  align-items: center;
  background: $light-purple;
  background: radial-gradient(
    ellipse at center,
    $light-purple 0%,
    darken($light-purple, 10%) 100%);
  display: flex;
  height: 100vh;
  justify-content: center;
  perspective: 1200px; // Thanks @quinlo!
}

span { display: inline-block; }

// TAROT CARD
.tarot-card {
  backface-visibility: hidden; // Hide when flipped
  -webkit-backface-visibility: hidden;
  border-radius: 10px;
  height: 500px;
  position: absolute;
  transition: transform 1s ease-in-out;
  width: 300px;

  &.front {
    background: $paper;
    background: repeating-linear-gradient(
      -45deg,
      $paper,
      $paper 10px,
      darken($paper, 1%) 10px,
      darken($paper, 1%) 20px
    );
    border: 20px solid $white;
    transform-origin: center;

    &:hover {
      // On hover flip the front
      transform: rotateY(180deg);

      ~ .back {
        // On hover flip the back
        transform: rotateY(0deg);
      }
    }
  }
 
  &.back {
    background: $dark-purple;
    background: radial-gradient(
      ellipse at center,
      lighten($dark-purple, 10%) 0%,
      $dark-purple 100%);
    border: 20px solid rgba($white, .9);
    transform: rotateY(-180deg);
    z-index: 1;
  }
}

@import url('https://fonts.googleapis.com/css?family=Special+Elite');

.roman-numerals {
  color: $white;
  font-family: 'Special Elite', serif;
  font-size: 28px;
  letter-spacing: -6px;
  padding: 20px 0;
  text-align: center;
  text-shadow: 0 0 1px $white;
}

.clouds {
  height: 200px;
  overflow: visible;
  position: relative;
  width: 300px;

  span {
    background: $clouds;
    border-radius: 100%;

    &:nth-of-type(1) {
      bottom: 0;
      height: 100px;
      left: 3px;
      position: absolute;
      width: 100px;
    }

    &:nth-of-type(2) {
      bottom: 0;
      height: 200px;
      left: 20%;
      position: absolute;
      width: 200px;
    }

    &:nth-of-type(3) {
      bottom: 0;
      height: 120px;
      position: absolute;
      right: 3px;
      width: 120px;
    }
  }
}

.stabbed-heart {
  top: 70%;
  transform: translatey(-30%);
}

.heart {
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
  width: 200px;

  span {
    background: $heart;
    border-radius: 100%;
    height: 100px;
    width: 100px;
  }
}

.bottom-of-my-heart {
  background: none;
  border: 90px solid $clear;
  border-radius: 0;
  border-top-color: $heart;
  left: 50%;
  margin-top: 80px;
  position: absolute;
  transform: translatex(-50%);
  width: 0;
  z-index: 99999;
}

.swords {
  left: 50%;
  position: relative;
  transform: translateX(-50%);
  width: 200px;

  .one,
  .two,
  .three {
    display: inline-block;
    transform-origin: left;
    width: 55px;

    .hilt {
      background: $gold;
      height: 60px;
      left: 50%;
      position: relative;
      transform: translateX(-50%);
      width: 20px;

      &::after {
        background: $gold;
        border: 2px solid darken($gold, 10%);
        border-radius: 20px;
        content: '';
        height: 10px;
        left: 50%;
        position: absolute;
        top: 0;
        transform: translatex(-50%);
        width: 50px;
      }
    }

    .guard {
      background: $gold;
      bottom: 0;
      height: 20px;
      left: 50%;
      position: absolute;
      transform: translatex(-50%);
      width: 60px;

      &::before {
        background: $gold;
        border: 2px solid darken($gold, 10%);
        border-radius: 100%;
        content: '';
        height: 26px;
        left: -7px;
        position: absolute;
        top: 50%;
        transform: translatey(-50%);
        width: 15px;
      }

      &::after {
        background: $gold;
        border: 2px solid darken($gold, 10%);
        border-radius: 100%;
        content: '';
        height: 26px;
        position: absolute;
        right: -7px;
        top: 50%;
        transform: translatey(-50%);
        width: 15px;
      }
    }

    .blade {
      background: $steel;
      border-left: 1px solid rgba($paper, .2);
      border-right: 1px solid rgba($paper, .2);
      height: 200px;
      left: 50%;
      position: relative;
      transform: translateX(-50%);
      width: 20px;

      &::after {
        background: darken($steel, 10%);
        content: '';
        height: 190px;
        left: 50%;
        position: absolute;
        transform: translate(-50%, 10px);
        width: 1px;
      }

      span {
        border: 11px solid $clear;
        border-top: 20px solid $steel;
        bottom: -30px;
        left: -1px;
        position: absolute;
      }
    }
  }

  .one {
    transform: rotate(30deg) translate(70px, -80px);
  }

  .two {
    transform: rotate(0deg) translate(14px, -50px);
  }

  .three {
    transform: rotate(-30deg) translate(-50px, -30px);
  }
}

.blood {
  background: $blood;
  border-radius: 100%;
  height: 20px;
  left: 50%;
  position: absolute;
  transform: translatex(-50%);
  width: 20px;

  &::before {
    background: $blood;
    border-radius: 100%;
    content: '';
    height: 5px;
    left: 50%;
    position: absolute;
    top: -25px;
    transform: translatex(-50%);
    width: 5px;
  }

  &::after {
    border: 10px solid transparent;
    border-bottom: 20px solid $blood;
    content: '';
    position: absolute;
    top: -22px;
  }
}

.insignia {
  height: 200px;
  left: 50%;
  position: relative;
  top: 50%;
  transform: translate(-50%, -50%);

  .wands {
    background: darken($gold, 10%);
    height: 200px;
    left: 50%;
    position: absolute;
    transform: rotate(45deg) translateX(-50%);
    transform-origin: left;
    width: 5px;
  }

  .swords {
    background: darken($gold, 10%);
    height: 200px;
    left: 50%;
    position: absolute;
    transform: rotate(-45deg) translateX(-50%);
    transform-origin: left;
    width: 5px;

    &::after {
      background: darken($gold, 10%);
      bottom: 25%;
      content: '';
      height: 5px;
      left: 50%;
      position: absolute;
      transform: translatex(-50%);
      width: 30px;
    }
  }

  .pentacles {
    border: 5px solid darken($gold, 10%);
    border-radius: 100%;
    bottom: -20px;
    height: 40px;
    left: 50%;
    position: absolute;
    transform: translatex(-50%);
    width: 40px;
  }

  .cups {
    border: 5px solid darken($gold, 10%);
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
    border-top: 0;
    height: 40px;
    left: 50%;
    position: absolute;
    top: -20px;
    transform: translatex(-50%);
    width: 40px;
  }
}

            
          
!

JS

            
              // Inpired by the Rider Waite tarot deck
            
          
!
999px

Console