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="container">
  <div class="material">
    Click circles to expand
    <div class="background background1"></div>
    <div class="background background2"
    <div class="background background3"></div>
              @import "compass/css3";

@import url(https://fonts.googleapis.com/css?Roboto);

*, *::before, *::after {
  @include box-sizing(border-box);

html, body {
  background: #f1f1f1;
  font-family: Roboto, Helvetica, sans-serif;

.container {
  @extend .centered;

$blue: #2196F3;
$red:  #F44336;
$teal: #009688;

.material {
  width: 300px;
  height: 300px;
  padding: 1em;
  background: white;
  position: relative;
  text-align: center;
  color: lighten(black, 30%);
  @include box-shadow(0 0 4px 2px rgba(80,80,80, 0.1));
  overflow: hidden;
  @include transition(box-shadow 0.3s ease);
  &:hover {
    @include box-shadow(0 2px 4px 4px rgba(80,80,80, 0.2));
  $time: 0.3s;

  .background {
    position: absolute;
    top: 75%;
    left: 50%;
    @include transform(translateX(-50%));
    width: 3em; height: 3em;
    @include transition(width $time ease, height $time ease, border-radius 0.4s ease, top $time ease, left 0.3s ease);
    border-radius: 50%;
    cursor: pointer;
    z-index: 2;
    background-position: center center;
    background-size: cover;
    @include box-shadow(0 2px 4px 0px rgba(40,40,40,0.4))
  .background.active {
      width: 145%; height: 145%;
      left: 50%; top: -20%;
      z-index: 9;
  .background1 {
    background: $blue;
    left: 30%;
  .background2 {
    background: $red;
  .background3 {
    background: $teal;
    left: 70%;

.centered {
  position: absolute;
  top: 50%; left: 50%;
  @include transform(translate(-50%, -50%));
  $(".background").on("click", function(){
Loading ..................