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.

              $CONTAINER_SIZE: 300px
$BUBBLE_COLOR: rgba(#fff, 0.9)

html, body
  height: 100%
  align-items: center
  background: #333
  display: flex
  justify-content: center
  margin: 0
  background: tomato
  border-radius: 8px
  position: relative
    background: rgba(#000, 0.1)
    content: ''
    height: 3px
    position: absolute
    left: 0
    right: 0

  animation: swivel 6s ease-in-out alternate infinite
  display: flex
  flex-direction: row-reverse
  height: $BUBBLE_SIZE
  position: absolute
  right: -$BUBBLE_SIZE
  top: $CONTAINER_SIZE/2 - $BUBBLE_SIZE/2 - 12px
  transform: translate(-$BUBBLE_SIZE/2, 0)
  background: $BUBBLE_COLOR
  flex-grow: 0
  flex-shrink: 0
  font-size: 24px
  height: 100%
  line-height: $BUBBLE_SIZE
  text-align: center
  width: $BUBBLE_SIZE
    $CIRCLE_SIZE: 8px
    background: rgba(#000, 0.33)
    border-radius: 50%
    content: ''
    height: $CIRCLE_SIZE
    left: ($BUBBLE_SIZE - $CIRCLE_SIZE)/2
    position: absolute
    bottom: -$CIRCLE_SIZE/2 - 12px - 1.5px
    width: $CIRCLE_SIZE
    display: block
    border-left: 6px solid transparent
    border-right: 6px solid transparent
    border-top: 12px solid $BUBBLE_COLOR
    content: ''
    height: 0
    left: $BUBBLE_SIZE/2 - 6px
    position: absolute
    top: 100%
    width: 0
  &::before, &::after
    content: ''
    height: 100%
    width: $BUBBLE_SIZE/2

    flex-shrink: 1
    min-width: $BUBBLE_SIZE/2
    flex-grow: 0
    flex-shrink: 999999999999999 // lol
@keyframes swivel
    left: 6px
    left: $CONTAINER_SIZE - 6px

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