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.

Quick-add: + add another resource

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.

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.

            
              html, body { height: 100%; }
body {
  margin: 0;
  display: flex;
  font-size: 1vmin;
  background: linear-gradient(to bottom right, white 50%, #eee 50%);
}

$orange: orange;
$green: darken(lime, 5%);
$pink: mix(darken(pink, 10%), red, 50%);

.tiger {
  position: relative;
  margin: auto;
  height: 50em;
  width: 50em;
  transform: translateY(-8em);
  border-radius: 50%;
  background-repeat: no-repeat;
  border: 0.75em solid black;
  background:

    // begin: Left Eye
    radial-gradient(50% 50%, rgba(white, 0.25) 2.5em, rgba(white, 0) 0) 10em -3em,
    radial-gradient(50% 50%, rgba(white, 0.5) 4em, rgba(white, 0) 0) 7em -7em,
    radial-gradient(20% 90%, black 1.25em, rgba(black, 0) 0) 10em -4em,
    radial-gradient(50% 50%, $green 6.5em, rgba($green, 0) 0) 10em -4em,
    radial-gradient(50% 50%, darken($green,10%) 7em, rgba($green, 0) 0) 10em -4em,
    radial-gradient(50% 50%, white 8em, rgba(white, 0) 0) 10em -4em,
    radial-gradient(50% 50%, black 8.5em, rgba(black, 0) 0) 10em -4em,
    // end: Left Eye
    
    // begin: Right Eye
    radial-gradient(50% 50%, rgba(white, 0.25) 2.5em, rgba(white, 0) 0) -10em -3em,
    radial-gradient(50% 50%, rgba(white, 0.5) 4em, rgba(white, 0) 0) -13em -7em,
    radial-gradient(20% 90%, black 1.25em, rgba(black, 0) 0) -10em -4em,
    radial-gradient(50% 50%, $green 6.5em, rgba($green, 0) 0) -10em -4em,
    radial-gradient(50% 50%, darken($green,10%) 7em, rgba($green, 0) 0) -10em -4em,
    radial-gradient(50% 50%, white 8em, rgba(white, 0) 0) -10em -4em,
    radial-gradient(50% 50%, black 8.5em, rgba(black, 0) 0) -10em -4em,
    // end: Right Eye
    
    // begin: Stripes
    radial-gradient(10% 100%, black 2em, rgba(black, 0) 0) 10em -35em,
    radial-gradient(10% 100%, black 2em, rgba(black, 0) 0) -10em -35em,
    radial-gradient(10% 100%, black 2em, rgba(black, 0) 0) 0 -30em,
    //end: Stripes
    radial-gradient(50% 50%, $orange 24em, rgba($orange, 0) 0) -2em -1em no-repeat,
    darken($orange, 10%)
  ;
  
  box-shadow:
    -17em -17em 0 -19em $orange,
    17em -17em 0 -19em $orange,
    -18em -18em 0 -18em black,
    18em -18em 0 -18em black,
    inset 1em -1em black,
    inset -1em -1em black
  ;
}

.tiger::before,
.tiger::after {
  content: '';
  display: block;
  position: absolute;
}

.tiger::before {
  top: calc(50% + 0.75em);
  right: calc(50% + 0.75em);
  height: 30em;
  width: 30em;
  border-radius: 50%;
  background-color: white;
  box-shadow:
    
    inset -0.75em -0.75em 0 0.75em #ddd,
    0 0 0 0.75em black,
    
    // begin: Left Cheek
    30em -0.75em 0 -1em white,
    30.75em 0 0 0 #ddd,
    30.75em 0 0 0.75em black,
    // end: Left Cheek

    // begin: Nose
    16.375em -7em 0 -6.75em $pink,
    15.375em -7em 0 -5.75em pink,
    15.375em -7em 0 -5em black,
    // end: Nose
    
    // begin: Mouth
    15.375em 9em 0 -9em black,
    15.375em 10em 0 -9em #ddd,
    14.375em 14em 0 -3.75em white,
    15.375em 14em 0 -2.75em #ddd,
    15.375em 14em 0 -2em black
    // end: Mouth
    ;
}

.tiger::after {
  height: 0.5em;
  width: 30em;
  background: #888;
  top: 40em;
  left: -25em;
  box-shadow:
    5em -5em #888,
    5em 5em #888,
    64.25em -5em #888,
    5em 5em #888,
    64.25em 5em #888,
    69.25em 0 #888
  ;
}
            
          
!
999px
Loading ..................

Console