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.row-xGrid-yMiddle
    .row-xGrid.iso-standard
        button.ctrl-standard.typ-subhed.fx-bubbleDown Bubble down
        button.ctrl-standard.typ-subhed.fx-bubbleUp Bubble up
        button.ctrl-standard.typ-subhed.fx-sliderIn Slide In
    .row-xGrid.iso-standard
        button.ctrl-standard.is-reversed.typ-subhed.fx-bubbleDown Bubble down
        button.ctrl-standard.is-reversed.typ-subhed.fx-bubbleUp Bubble up
        button.ctrl-standard.is-reversed.typ-subhed.fx-sliderIn Slide In

            
          
!
            
              /* alternate colors */
$btn1 = #f0b81f
$btn2 = #9fA255
$btn3 = #81AAA4
$base = #231f20

/* corner values for bubble up and down */
$right-val1: 50%
$left-val1: 50%
$right-val2: 75%
$left-val2: 75%

/* remove background that shows on the site site and change a few things*/
body::before
   display: none

.typ-subhed
    font-family: 'Oswald', sans-serif
    font-size: 18px
    line-height: 20px
    letter-spacing: 0

/* lets create a container and put it in the middle */
.container
    height: 100%
    width: 50%
    margin: auto
    
    > *
        width: 100%
    

.ctrl-standard
    &.fx-bubbleDown
        color: $btn1
        border-color: $btn1
        
        &::after
            bottom: auto;
            border-radius: 0 0 $right-val2 $left-val2/0 0 $right-val1 $left-val1
            background: $btn1
            
        &.is-reversed
            &::after
                height: 300%
                
            &:hover
                color: $btn1
                
                &::after
                    height: 0
            
            

    &.fx-bubbleUp
        color: $btn2
        border-color: $btn2
        
        &::after
            top: auto
            border-radius: $right-val1 $left-val1 0 0/$right-val2 $left-al2 0 0
            background: $btn2
            
        &.is-reversed            
            &::after
                height: 300%
                
            &:hover
                color: $btn2
                
                &::after
                    height: 0
        
        
    &.fx-sliderIn
        color: $btn3
        border-color: $btn3
        
        &::after
            background: $btn3
        
        &.is-reversed            
            &::after
                width: 300%
                
            &:hover
                color: $btn3
                
                &::after
                    width: 0
            
[class*="ctrl-"]
  padding: 5ox 10px
  border-radius: 2px
  border: 1px solid $base

[class*="ctrl-"][class*="fx-"]
    &:hover,
    &.active
      color: $base
    
    &.is-reversed
        color: $base

@css {
    [class*="fx-"],
    [class*="fx-"]:hover {
      transition: color 0.5s  ease-in-out;
    }
    [class*="fx-"]:not(.fx-dyna) {
      position: relative;
      z-index: 1;
      transition-delay: 0.2s !important;
      overflow: hidden;
    }
    [class*="fx-"]:not(.fx-dyna)::after,
    [class*="fx-"]:not(.fx-dyna)::before {
      content: "";
      display: block;
      position: absolute;
      z-index: -1;
    }
    [class*="fx-bubble"]::after {
      transition: height 0.5s ease-in-out;
      top: 0;
      right: 0;
      bottom: 0;
      left: 0;
      height: 0;
      width: 100%;
    }
    [class*="fx-bubble"]:hover::after,
    [class*="fx-bubble"].active::after {
      transition: height 0.5s ease-in-out;
      height: 300%;
    }
    [class*="fx-bubble"]:disabled:hover::after {
      height: 0;
    }
    .fx-sliderIn::after {
      transition: width 0.5s ease-in-out;
      top: 0;
      right: 0;
      bottom: 0;
      left: 0;
      width: 0;
    }
    .fx-sliderIn:hover::after,
    .fx-sliderIn.active::after {
      transition: width 0.5s ease-in-out;
      width: 100%;
    }
    :checked + .fx-sliderIn::after,
    .fx-sliderIn.active::after {
      width: 300%;
    }
}
            
          
!
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