Pen Settings

HTML

CSS

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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ add another resource

JavaScript

Babel includes JSX processing.

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.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

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.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <svg 
 xmlns="http://www.w3.org/2000/svg"
 xmlns:xlink="http://www.w3.org/1999/xlink"
 width="120px" height="120px" class="icon-browser">
<g class="icon-browser-grey">
	<path fill-rule="evenodd"  fill="rgb(240, 240, 240)"
 d="M60.000,0.000 C93.137,0.000 120.000,26.863 120.000,60.000 C120.000,93.137 93.137,120.000 60.000,120.000 C26.863,120.000 0.000,93.137 0.000,60.000 C0.000,26.863 26.863,0.000 60.000,0.000 Z"/>
	<path fill-rule="evenodd"  stroke-width="1px" stroke="rgb(183, 183, 183)" fill="rgb(255, 255, 255)"
	 d="M90.000,45.000 C90.000,45.000 90.000,84.333 90.000,84.333 C90.000,86.911 87.911,89.000 85.334,89.000 C85.334,89.000 34.667,89.000 34.667,89.000 C32.090,89.000 30.000,86.911 30.000,84.333 C30.000,84.333 30.000,45.000 30.000,45.000 C30.000,45.000 90.000,45.000 90.000,45.000 Z"/>
	<path fill-rule="evenodd"  fill="rgb(210, 210, 210)"
	 d="M59.000,84.000 C59.000,84.000 59.000,81.000 59.000,81.000 C59.000,81.000 83.000,81.000 83.000,81.000 C83.000,81.000 83.000,84.000 83.000,84.000 C83.000,84.000 59.000,84.000 59.000,84.000 ZM59.000,71.000 C59.000,71.000 83.000,71.000 83.000,71.000 C83.000,71.000 83.000,74.000 83.000,74.000 C83.000,74.000 59.000,74.000 59.000,74.000 C59.000,74.000 59.000,71.000 59.000,71.000 ZM77.000,79.000 C77.000,79.000 59.000,79.000 59.000,79.000 C59.000,79.000 59.000,76.000 59.000,76.000 C59.000,76.000 77.000,76.000 77.000,76.000 C77.000,76.000 77.000,79.000 77.000,79.000 Z"/>
	<path fill-rule="evenodd"  fill="rgb(210, 210, 210)"
	 d="M35.000,71.000 C35.000,71.000 55.000,71.000 55.000,71.000 C55.000,71.000 55.000,84.000 55.000,84.000 C55.000,84.000 35.000,84.000 35.000,84.000 C35.000,84.000 35.000,71.000 35.000,71.000 Z"/>
	<path fill-rule="evenodd"  fill="rgb(210, 210, 210)"
	 d="M35.000,50.000 C35.000,50.000 83.000,50.000 83.000,50.000 C83.000,50.000 83.000,68.000 83.000,68.000 C83.000,68.000 35.000,68.000 35.000,68.000 C35.000,68.000 35.000,50.000 35.000,50.000 Z"/>
	<path fill-rule="evenodd"  stroke-width="1px" stroke="rgb(61, 61, 61)" fill="rgb(96, 96, 96)"
	 d="M35.000,31.000 C35.000,31.000 85.000,31.000 85.000,31.000 C87.761,31.000 90.000,33.239 90.000,36.000 C90.000,36.000 90.000,46.000 90.000,46.000 C90.000,46.000 30.000,46.000 30.000,46.000 C30.000,46.000 30.000,36.000 30.000,36.000 C30.000,33.239 32.239,31.000 35.000,31.000 Z"/>
	<path fill-rule="evenodd"  fill="rgb(255, 255, 255)"
	 d="M51.500,42.000 C50.120,42.000 49.000,40.881 49.000,39.500 C49.000,38.119 50.120,37.000 51.500,37.000 C52.881,37.000 54.000,38.119 54.000,39.500 C54.000,40.881 52.881,42.000 51.500,42.000 ZM44.500,42.000 C43.119,42.000 42.000,40.881 42.000,39.500 C42.000,38.119 43.119,37.000 44.500,37.000 C45.881,37.000 47.000,38.119 47.000,39.500 C47.000,40.881 45.881,42.000 44.500,42.000 ZM37.500,42.000 C36.119,42.000 35.000,40.881 35.000,39.500 C35.000,38.119 36.119,37.000 37.500,37.000 C38.881,37.000 40.000,38.119 40.000,39.500 C40.000,40.881 38.881,42.000 37.500,42.000 Z"/>
</g>
<g class="icon-browser-color"> <path fill-rule="evenodd" class="icon-browser-bg" fill="rgb(147, 214, 235)"
 d="M60.000,0.000 C93.137,0.000 120.000,26.863 120.000,60.000 C120.000,93.137 93.137,120.000 60.000,120.000 C26.863,120.000 0.000,93.137 0.000,60.000 C0.000,26.863 26.863,0.000 60.000,0.000 Z"/>
<path fill-rule="evenodd" class="icon-browser-body"  stroke-width="1px" stroke="rgb(183, 183, 183)" fill="rgb(255, 255, 255)"
 d="M90.000,45.000 C90.000,45.000 90.000,84.333 90.000,84.333 C90.000,86.911 87.911,89.000 85.334,89.000 C85.334,89.000 34.667,89.000 34.667,89.000 C32.090,89.000 30.000,86.911 30.000,84.333 C30.000,84.333 30.000,45.000 30.000,45.000 C30.000,45.000 90.000,45.000 90.000,45.000 Z"/>
<g fill-rule="evenodd" fill="rgb(210, 210, 210)" class="icon-browser-content">
	<path class="icon-browser-content-text" 
 d="M59.000,84.000 C59.000,84.000 59.000,81.000 59.000,81.000 C59.000,81.000 83.000,81.000 83.000,81.000 C83.000,81.000 83.000,84.000 83.000,84.000 C83.000,84.000 59.000,84.000 59.000,84.000 ZM59.000,71.000 C59.000,71.000 83.000,71.000 83.000,71.000 C83.000,71.000 83.000,74.000 83.000,74.000 C83.000,74.000 59.000,74.000 59.000,74.000 C59.000,74.000 59.000,71.000 59.000,71.000 ZM77.000,79.000 C77.000,79.000 59.000,79.000 59.000,79.000 C59.000,79.000 59.000,76.000 59.000,76.000 C59.000,76.000 77.000,76.000 77.000,76.000 C77.000,76.000 77.000,79.000 77.000,79.000 Z"/>
 	<path class="icon-browser-content-image-right"
 d="M35.000,71.000 C35.000,71.000 55.000,71.000 55.000,71.000 C55.000,71.000 55.000,84.000 55.000,84.000 C55.000,84.000 35.000,84.000 35.000,84.000 C35.000,84.000 35.000,71.000 35.000,71.000 Z"/>
 <path class="icon-browser-content-image-left"
 d="M35.000,50.000 C35.000,50.000 83.000,50.000 83.000,50.000 C83.000,50.000 83.000,68.000 83.000,68.000 C83.000,68.000 35.000,68.000 35.000,68.000 C35.000,68.000 35.000,50.000 35.000,50.000 Z"/>
</g>
<path fill-rule="evenodd"  stroke-width="1px" stroke="rgb(3, 37, 45)" fill="rgb(76, 83, 94)" class="icon-browser-toolbar"
 d="M35.000,31.000 C35.000,31.000 85.000,31.000 85.000,31.000 C87.761,31.000 90.000,33.239 90.000,36.000 C90.000,36.000 90.000,46.000 90.000,46.000 C90.000,46.000 30.000,46.000 30.000,46.000 C30.000,46.000 30.000,36.000 30.000,36.000 C30.000,33.239 32.239,31.000 35.000,31.000 Z"/>
<path fill-rule="evenodd"  fill="rgb(222, 78, 93)" class="icon-browser-toolbar-close icon-browser-toolbar-btn"
 d="M37.500,37.000 C38.881,37.000 40.000,38.119 40.000,39.500 C40.000,40.881 38.881,42.000 37.500,42.000 C36.119,42.000 35.000,40.881 35.000,39.500 C35.000,38.119 36.119,37.000 37.500,37.000 Z"/>
<path fill-rule="evenodd"  fill="rgb(247, 195, 75)" class="icon-browser-toolbar-max icon-browser-toolbar-btn"
 d="M44.500,37.000 C45.881,37.000 47.000,38.119 47.000,39.500 C47.000,40.881 45.881,42.000 44.500,42.000 C43.119,42.000 42.000,40.881 42.000,39.500 C42.000,38.119 43.119,37.000 44.500,37.000 Z"/>
<path fill-rule="evenodd"  fill="rgb(150, 200, 92)" class="icon-browser-toolbar-min icon-browser-toolbar-btn"
 d="M51.500,37.000 C52.881,37.000 54.000,38.119 54.000,39.500 C54.000,40.881 52.881,42.000 51.500,42.000 C50.120,42.000 49.000,40.881 49.000,39.500 C49.000,38.119 50.120,37.000 51.500,37.000 Z"/></g>
</svg>
              
            
!

CSS

              
                @import "bourbon";

$main-color: #d7132b;

$light-grey: #ededed;
$dark-grey: #4c4c4c;

@mixin hover($name) {
	.icon-#{$name}:hover & {
		@content;
	}
}

.icon-browser {
	cursor: pointer;
	$main-delay: .2s;
	
	* {
		transform-origin: center center; // @todo fix for firefox
		transition: all .3s ease $main-delay;
	}
	
	&-bg {
		transform-origin: 60px 60px;
		transform: scale(0);		
		transition-delay: .7s;
		
		@include hover(browser) {
			transform: scale(1);
			transition-delay: 0;
		}
		
		&-grey {
			fill: $light-grey;
		}
	}
	
	&-body {
		transform: scale(0);
		transform-origin: 60px 48px;
		transition-delay: $main-delay+.2s;
		
		@include hover(browser) {
			transform: scale(1);
		}
	}
	
	&-content {
		* {
			transition-delay: $main-delay;
      
       @include hover(browser) {
         transition-delay: $main-delay+.7s;
       }
		}
		
		&-image-left {
			transform-origin: center right;
			transform: scaleX(0);
			
			@include hover(browser) {
				transform: scaleX(1);
			}
		}
		
		&-image-right {
			transform-origin: center left;
			transform: scaleX(0);
			
			@include hover(browser) {
				transform: scaleX(1);
			}
		}
		
		&-text {
			transform-origin: center left;
			transform: scaleX(0);
			
			@include hover(browser) {
				transform: scaleX(1);
			}
		}
	}
	
	&-toolbar {
		transform-origin: 60px 32px;
		transform: scale(0);
		
		@include hover(browser) {
			transform: scale(1);
		}
		
		&-btn {
			transform: scale(0);
			
			@include hover(browser) {
				transform: scale(1);
			}
		}
		
		&-close {
			transition-delay: $main-delay+.3s;
		}
		
		&-max {
			transition-delay: $main-delay+.4s;
		}
		
		&-min {
			transition-delay: $main-delay+.5s;
		}
	}
}

body {
  position: absolute;
  left: 0; right: 0; top: 0; bottom: 0;
  margin: auto;
  
  width: 120px;
  height: 120px;
}
              
            
!

JS

              
                
              
            
!
999px

Console