cssAudio - ActiveCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - Activehtmlicon-personicon-teamoctocatspinnerstartv

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.

            
              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
Close

Asset uploading is a PRO feature.

As a PRO member, you can drag-and-drop upload files here to use as resources. Images, Libraries, JSON data... anything you want. You can even edit them anytime, like any other code on CodePen.

Go PRO

Loading ..................

Console