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.

              <div class="avatar-container">
  <div id="avatar" class="avatar"></div>
              $avatar-size: 9rem

  background-color: #bf9de0
  margin-left: -1 * $avatar-size / 2
  margin-top: -1 * $avatar-size / 2
  width: $avatar-size
  height: $avatar-size
  border-radius: 50%
  border: $avatar-size/15 solid #7c5cd1
  position: absolute
  top: 50%
  left: 50%
  cursor: pointer
  color: red
  width: $avatar-size
  height: $avatar-size
  border-radius: 50%
  overflow: hidden
  background: url(https://i.imgur.com/kOTbAwq.png) center center no-repeat, url(https://i.imgur.com/87g6qvW.png) left 100% no-repeat
  background-size: $avatar-size/2, 100% 0%
  overflow: hidden
    width: 100%
    height: 100%
    border-radius: 50%

// loop through each step in the progress percentage
// and update the position of bottom background image.
// 100 % wide, by i % high
@for $i from 1 through 100
  $percentage: 100 / 100 * $i
    background-size: $avatar-size/2, 100% ($percentage * 1%)

              new Shubox("#avatar", {
  // image transform queue
  transformName: 'avatar-demo',
  // do not use built-in previewsContainer
  previewsContainer: false,
  // on success - insert the image w/a flip-in
  // animate.css classname
  success: function(file) {
    img = new Image();
    img.onload = function() {
        '<img src="' + file.s3url + '" class="animated flipInY" />'
    img.src = file.s3url
Loading ..................