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 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.

              <div class="avatar-container">
              $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", {
  // 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 ..................