Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource

JavaScript

Babel includes JSX processing.

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

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Auto Save

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.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

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

Visit your global Editor Settings.

HTML

              
                main
     section.section.space--huge.flexy__item.flexy--column.flexy--items-center
          header.header
               h2 Bars Chart
          article.flexy__item.flexy--column.flexy--items-center
               header.space--huge
                    h3 A liquid & 'light-weight' 3D CSS Chart.
               .chart
                    .bar(role='progress' valuemin='0' valuemax='355' valuenow='100')
                         .bar__cover(role='tooltip' data-tooltip-content='100')
                    .bar(role='progress' valuemin='0' valuemax='355' valuenow='80')
                         .bar__cover(role='tooltip' data-tooltip-content='80')
                    .bar(role='progress' valuemin='0' valuemax='355' valuenow='60')
                         .bar__cover(role='tooltip' data-tooltip-content='60')
                    .bar(role='progress' valuemin='0' valuemax='355' valuenow='40')
                         .bar__cover(role='tooltip' data-tooltip-content='40')
                    .bar(role='progress' valuemin='0' valuemax='355' valuenow='20')
                         .bar__cover(role='tooltip' data-tooltip-content='20')
                    .bar(role='progress' valuemin='0' valuemax='355' valuenow='10')
                         .bar__cover(role='tooltip' data-tooltip-content='10')
     header.header
          h1
               a(href='http://tadaima.studio' title='Go to Tadaima')
                 svg.logo-tadaima.fill--white(xmlns='http://www.w3.org/2000/svg' xml:space='preserve' viewBox='0 0 80 80')
                   title Tadaima Studio.
                   desc A group of digital interface crafters.
                   g
                     rect.st5(y='0', width='80', height='80')
                   lineargradient#SVGID_1_(gradientunits='userSpaceOnUse', x1='27.7468', y1='18.248', x2='52.244', y2='42.7452')
                     stop(offset='0', style='stop-color:#FF5572')
                     stop(offset='1', style='stop-color:#FF7555')
                   polyline.logo-tadaima--animated(style='fill:none;stroke:url(#SVGID_1_);stroke-width:2;stroke-miterlimit:10;', points='52,27 25,27 25,23 55,23 55,31                                 40,31 40,54 ')
                   lineargradient#SVGID_2_(gradientunits='userSpaceOnUse', x1='23.9948', y1='30.0043', x2='48.4901', y2='54.4996')
                     stop(offset='0', style='stop-color:#FF5572')
                     stop(offset='1', style='stop-color:#FF7555')
                   polyline.logo-tadaima--animated(style='fill:none;stroke:url(#SVGID_2_);stroke-width:2;stroke-miterlimit:10;', points='24,31 36,31 36,57 44,57 44,34 ')

svg.svg-bg(xmlns='http://www.w3.org/2000/svg')
  defs
    circle#a(cx='1468', cy='133', r='35')
    mask#h(x='0', y='0', width='70', height='70', fill='#fff')
      use(xmlns:xlink='http://www.w3.org/1999/xlink', xlink:href='#a')
    circle#b(cx='236.5', cy='732.5', r='23.5')
    mask#i(x='0', y='0', width='47', height='47', fill='#fff')
      use(xmlns:xlink='http://www.w3.org/1999/xlink', xlink:href='#b')
    circle#c(cx='1120.5', cy='945.5', r='28.5')
    mask#j(x='0', y='0', width='57', height='57', fill='#fff')
      use(xmlns:xlink='http://www.w3.org/1999/xlink', xlink:href='#c')
    path#d(d='M1193.375 302.875l44.6 77.25h-89.2z')
    mask#k(x='0', y='0', width='89.201', height='77.25', fill='#fff')
      use(xmlns:xlink='http://www.w3.org/1999/xlink', xlink:href='#d')
    path#e(d='M1610.8 513.3l34.14 59.128h-68.278z')
    mask#l(x='0', y='0', width='68.277', height='59.13', fill='#fff')
      use(xmlns:xlink='http://www.w3.org/1999/xlink', xlink:href='#e')
    path#f(d='M51.045 967.864l38.314 66.362H12.73z')
    mask#m(x='0', y='0', width='76.629', height='66.362', fill='#fff')
      use(xmlns:xlink='http://www.w3.org/1999/xlink', xlink:href='#f')
    path#g(d='M46.045 311.097l26.5 45.897H19.546z')
    mask#n(x='0', y='0', width='52.997', height='45.897', fill='#fff')
      use(xmlns:xlink='http://www.w3.org/1999/xlink', xlink:href='#g')
  g(style='mix-blend-mode:overlay', fill='none', fill-rule='evenodd', opacity='.35', stroke='#FFF')
    use.svg-bg_element(mask='url(#h)', stroke-width='6', xmlns:xlink='http://www.w3.org/1999/xlink', xlink:href='#a')
    use.svg-bg_element(mask='url(#i)', stroke-width='6', xmlns:xlink='http://www.w3.org/1999/xlink', xlink:href='#b')
    use.svg-bg_element.opacity-anim(mask='url(#j)', stroke-width='6', xmlns:xlink='http://www.w3.org/1999/xlink', xlink:href='#c')
    path.stroke-anim(d='M657.5 848.5l46 46', stroke-width='3', stroke-linecap='square')
    path(d='M1360.5 1206.5l89-89M761.5 42.5l42-42', stroke-width='3', stroke-linecap='square')
    use.svg-bg_element(mask='url(#k)', stroke-width='6', transform='rotate(90 1193.375 341.5)', xmlns:xlink='http://www.w3.org/1999/xlink', xlink:href='#d')
    use.svg-bg_element(mask='url(#l)', stroke-width='6', transform='rotate(45 1610.8 542.863)', xmlns:xlink='http://www.w3.org/1999/xlink', xlink:href='#e')
    use.svg-bg_element.rotate-anim(mask='url(#m)', stroke-width='6', transform='rotate(45 51.045 1001.045)', xmlns:xlink='http://www.w3.org/1999/xlink', xlink:href='#f')
    use.svg-bg_element(mask='url(#n)', stroke-width='6', transform='rotate(20 46.045 334.045)', xmlns:xlink='http://www.w3.org/1999/xlink', xlink:href='#g')
              
            
!

CSS

              
                $values: 100;

$animDuration: $slowDuration;
$boxSize: 2em;
$boxMaxHeight: $boxSize * 10;
$minValue: $boxMaxHeight / $values;

$minColor: $red;
$maxColor: complement($orange);

body {
    background-image: none;
    background-color: #424242;
}

.chart {
    font-size: 1em;
    display: flex;
    transform-style: preserve-3d;
    transition: all $slowDuration ease-in-out;
    margin-top: $boxSize*10;
    padding: $boxSize;
    background-color: $white;
    z-index: 1;
    position: relative;
    transform: rotateX(60deg) rotate(45deg);
    box-shadow: .05em .05em 0 darken($white, 20),
                .1em .1em 0 darken($white, 20),
                .15em .15em 0 darken($white, 20),
                .2em .2em 0 darken($white, 20),
                .25em .25em 0 darken($white, 20),
                1.5em 1.5em 2em -.25em rgba(black, .2);
}

.bar {
    position: relative;
    transform-style: preserve-3d;
    width: $boxSize;
    height: $boxSize;
    margin: 0 ($boxSize / 4);
    &:after,
    &:before {
        width: $boxSize;
        height: $boxMaxHeight;
        content: '';
        position: absolute;
        line-height: 1em;
        bottom: 0;
        left: 0;
        transform-origin: 50% 100%;
    }
    &:after {
        transform: rotateX(-90deg) rotateY(90deg) translate(($boxSize / 2), 0) translateZ(($boxSize / 2));
    }
    &:before {
        transform: rotateX(-90deg) translateZ(0);
    }
    &__cover {
        width: $boxSize;
        height: $boxSize;
        transform: translateZ($boxMaxHeight);
        transform-style: preserve-3d;
    }
    @for $i from 1 through $values {
        $thisValue: $minValue * $i;
        $thisColor: mix($maxColor, $minColor, $i);
        &[valuenow='#{$i}'] {
            &:after,
            &:before {
                height: $thisValue;
            }
            &:after {
                background-color: darken($thisColor, 06);
            }
            &:before {
                background-color: darken($thisColor, 12);
            }
            .bar__cover {
                transform: translateZ($thisValue);
                background-color: $thisColor;
            }
            [role='tooltip']:before {
                color: darken($thisColor, 20);
                transform: rotateX(-90deg) translate(0,$thisValue) translateZ(.1em);
            }
        }
    }
    &:hover {
        z-index: 10;
        [role='tooltip']:before {
            opacity: 1;
            transform: rotateX(-90deg) translate(0,0) translateZ(.1em);
        }
    }
}

[role='tooltip'] {
    &:before {
        color: $gray;
        pointer-events: none;
        content: attr(data-tooltip-content);
        position: absolute;
        bottom: 0;
        right: 100%;
        line-height: 1em;
        padding: .5em 1em .5em .5em;
        transform-origin: 100% 100%;
        transform: rotateX(-90deg) translateZ(.1em);
        background-image:   linear-gradient(-90deg, transparent .5em, $white .5em, $white),
                            linear-gradient(-125deg, transparent 1.25em, $white 1.25em);
        background-position: right bottom;
        opacity: 0;
        transition: all $normalDuration ease-out;
    }
}


              
            
!

JS

              
                // ¯\_(ツ)_/¯ 
              
            
!
999px

Console